Class ItemMonsterPlacer

java.lang.Object
net.minecraft.src.Item
net.minecraft.src.ItemMonsterPlacer

public class ItemMonsterPlacer extends Item
  • Constructor Details

    • ItemMonsterPlacer

      public ItemMonsterPlacer(int par1)
  • Method Details

    • getItemDisplayName

      public String getItemDisplayName(ItemStack par1ItemStack)
      Overrides:
      getItemDisplayName in class Item
    • getColorFromItemStack

      public int getColorFromItemStack(ItemStack par1ItemStack, int par2)
      Overrides:
      getColorFromItemStack in class Item
    • requiresMultipleRenderPasses

      public boolean requiresMultipleRenderPasses()
      Overrides:
      requiresMultipleRenderPasses in class Item
    • getIconFromDamageForRenderPass

      public Icon getIconFromDamageForRenderPass(int par1, int par2)
      Gets an icon index based on an item's damage value and the given render pass
      Overrides:
      getIconFromDamageForRenderPass in class Item
    • onItemUse

      public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
      Callback for item usage. If the item does something special on right clicking, he will have one of those. Return True if something happen and false if it don't. This is for ITEMS, not BLOCKS
      Overrides:
      onItemUse in class Item
    • onItemRightClick

      public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
      Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer
      Overrides:
      onItemRightClick in class Item
    • spawnCreature

      public static Entity spawnCreature(World par0World, int par1, double par2, double par4, double par6)
      Spawns the creature specified by the egg's type in the location specified by the last three parameters. Parameters: world, entityID, x, y, z.
    • getSubItems

      public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List)
      returns a list of items with the same ID, but different meta (eg: dye returns 16 items)
      Overrides:
      getSubItems in class Item
    • registerIcons

      public void registerIcons(IconRegister par1IconRegister)
      Overrides:
      registerIcons in class Item