public class ItemFood extends Item
Item.ToolMaterialIForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>| Modifier and Type | Field and Description |
|---|---|
int |
itemUseDuration |
ATTACK_DAMAGE_MODIFIER, ATTACK_SPEED_MODIFIER, bFull3D, canRepair, hasSubtypes, itemRand, maxStackSize, REGISTRYdelegate| 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) |
ActionResult<ItemStack> |
onItemRightClick(ItemStack itemStackIn,
World worldIn,
EntityPlayer playerIn,
EnumHand hand) |
ItemStack |
onItemUseFinish(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving) |
ItemFood |
setAlwaysEdible() |
ItemFood |
setPotionEffect(PotionEffect p_185070_1_,
float p_185070_2_) |
addInformation, addPropertyOverride, canHarvestBlock, canHarvestBlock, canItemEditBlocks, createEntity, doesSneakBypassUse, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getByNameOrId, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHarvestLevel, getHarvestLevel, getHasSubtypes, getHighlightTip, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getMaxDamage, getMaxDamage, getMetadata, getMetadata, getNBTShareTag, getPropertyGetter, getRarity, getShareTag, getSmeltingExperience, getStrVsBlock, getSubItems, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasCustomProperties, hasEffect, hitEntity, initCapabilities, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUse, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, rayTrace, registerItemBlock, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setUnlocalizedName, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, shouldRotateAroundWhenRendering, showDurabilityBar, updateItemStackNBTgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNamepublic ItemFood(int amount,
float saturation,
boolean isWolfFood)
public ItemFood(int amount,
boolean isWolfFood)
@Nullable public ItemStack onItemUseFinish(ItemStack stack, World worldIn, EntityLivingBase entityLiving)
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 ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand)
onItemRightClick in class Itempublic int getHealAmount(ItemStack stack)
public float getSaturationModifier(ItemStack stack)
public boolean isWolfsFavoriteMeat()
public ItemFood setPotionEffect(PotionEffect p_185070_1_, float p_185070_2_)
public ItemFood setAlwaysEdible()