public class ItemFood extends Item
Item.ToolMaterial| Modifier and Type | Field and Description |
|---|---|
int |
itemUseDuration |
bFull3D, canRepair, delegate, hasSubtypes, itemModifierUUID, itemRand, itemRegistry, maxStackSize| Constructor and Description |
|---|
ItemFood(int amount,
boolean isWolfFood) |
ItemFood(int amount,
float saturation,
boolean isWolfFood) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHealAmount(ItemStack stack) |
EnumAction |
getItemUseAction(ItemStack stack) |
int |
getMaxItemUseDuration(ItemStack stack) |
float |
getSaturationModifier(ItemStack stack) |
boolean |
isWolfsFavoriteMeat() |
protected void |
onFoodEaten(ItemStack stack,
World worldIn,
EntityPlayer player) |
ItemStack |
onItemRightClick(ItemStack itemStackIn,
World worldIn,
EntityPlayer playerIn) |
ItemStack |
onItemUseFinish(ItemStack stack,
World worldIn,
EntityPlayer playerIn) |
ItemFood |
setAlwaysEdible() |
ItemFood |
setPotionEffect(int id,
int duration,
int amplifier,
float probability) |
addInformation, canHarvestBlock, canHarvestBlock, canItemEditBlocks, createEntity, doesSneakBypassUse, getArmorModel, getArmorTexture, getAttributeModifiers, getByNameOrId, getChestGenBase, getColorFromItemStack, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDigSpeed, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getMaxDamage, getMaxDamage, getMetadata, getMetadata, getModel, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getShareTag, getSmeltingExperience, getStrVsBlock, getSubItems, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasEffect, hitEntity, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUse, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, registerItemBlock, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setUnlocalizedName, shouldRotateAroundWhenRendering, showDurabilityBar, updateItemStackNBTpublic ItemFood(int amount,
float saturation,
boolean isWolfFood)
public ItemFood(int amount,
boolean isWolfFood)
public ItemStack onItemUseFinish(ItemStack stack, World worldIn, EntityPlayer playerIn)
onItemUseFinish in class Itemprotected void onFoodEaten(ItemStack stack, World worldIn, EntityPlayer player)
public int getMaxItemUseDuration(ItemStack stack)
getMaxItemUseDuration in class Itempublic EnumAction getItemUseAction(ItemStack stack)
getItemUseAction in class Itempublic ItemStack onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn)
onItemRightClick in class Itempublic int getHealAmount(ItemStack stack)
public float getSaturationModifier(ItemStack stack)
public boolean isWolfsFavoriteMeat()
public ItemFood setPotionEffect(int id, int duration, int amplifier, float probability)
public ItemFood setAlwaysEdible()