mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-26 06:52:58 +00:00
[ci skip] spotlessApply with the new settings
This commit is contained in:
1 parent
83698cb73c
commit
84c2239244
561 files changed
+8872
-9300
No files matched your search
@@ -1,21 +1,24 @@
|
||||
package tconstruct.world.items;
|
||||
|
||||
import cpw.mods.fml.relauncher.*;
|
||||
import java.util.List;
|
||||
|
||||
import mantle.items.abstracts.CraftingItem;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.item.EntityXPOrb;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import tconstruct.library.TConstructRegistry;
|
||||
import cpw.mods.fml.relauncher.*;
|
||||
|
||||
public class OreBerries extends CraftingItem {
|
||||
static String[] names = new String[] {"iron", "gold", "copper", "tin", "aluminum", "essence"};
|
||||
static String[] tex = new String[] {
|
||||
"oreberry_iron", "oreberry_gold", "oreberry_copper", "oreberry_tin", "oreberry_aluminum", "oreberry_essence"
|
||||
};
|
||||
|
||||
static String[] names = new String[] { "iron", "gold", "copper", "tin", "aluminum", "essence" };
|
||||
static String[] tex = new String[] { "oreberry_iron", "oreberry_gold", "oreberry_copper", "oreberry_tin",
|
||||
"oreberry_aluminum", "oreberry_essence" };
|
||||
|
||||
public OreBerries() {
|
||||
super(names, tex, "oreberries/", "tinker", TConstructRegistry.materialTab);
|
||||
@@ -49,8 +52,12 @@ public class OreBerries extends CraftingItem {
|
||||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
|
||||
if (stack.getItemDamage() == 5) {
|
||||
EntityXPOrb entity =
|
||||
new EntityXPOrb(world, player.posX, player.posY + 1, player.posZ, itemRand.nextInt(14) + 6);
|
||||
EntityXPOrb entity = new EntityXPOrb(
|
||||
world,
|
||||
player.posX,
|
||||
player.posY + 1,
|
||||
player.posZ,
|
||||
itemRand.nextInt(14) + 6);
|
||||
spawnEntity(player.posX, player.posY + 1, player.posZ, entity, world, player);
|
||||
if (!player.capabilities.isCreativeMode) stack.stackSize--;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user