Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ShadoTECH.Items;
- import ShadoTECH.Reference;
- import ShadoTECH.Entity.entityItemIngotObsidian;
- import cpw.mods.fml.relauncher.Side;
- import cpw.mods.fml.relauncher.SideOnly;
- import net.minecraft.client.renderer.texture.IIconRegister;
- import net.minecraft.entity.Entity;
- import net.minecraft.item.Item;
- import net.minecraft.item.ItemStack;
- import net.minecraft.world.World;
- public class itemIngotObsidian extends Item
- {
- public itemIngotObsidian()
- {
- super();
- this.setMaxStackSize(64);
- }
- @Override
- @SideOnly(Side.CLIENT)
- public void registerIcons(IIconRegister iconRegister)
- {
- this.itemIcon = iconRegister.registerIcon(Reference.MODID.toLowerCase() + ":" + (this.getUnlocalizedName().substring(5)));
- }
- public boolean hasCustomEntity(ItemStack itemStack)
- {
- return true;
- }
- public Entity createEntity(World world, Entity location, ItemStack itemStack)
- {
- return new entityItemIngotObsidian(world, location.posX, location.posY, location.posZ, itemStack);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement