public class ItemSeedFood extends ItemFood
Item.ToolMaterial| Modifier and Type | Field and Description |
|---|---|
private Block |
crops |
private Block |
soilId
Block ID of the soil this seed food should be planted on.
|
itemUseDurationbFull3D, hasSubtypes, itemModifierUUID, itemRand, itemRegistry, maxStackSize| Constructor and Description |
|---|
ItemSeedFood(int healAmount,
float saturation,
Block crops,
Block soil) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onItemUse(ItemStack stack,
EntityPlayer playerIn,
World worldIn,
BlockPos pos,
EnumFacing side,
float hitX,
float hitY,
float hitZ)
Called when a Block is right-clicked with this Item
|
getHealAmount, getItemUseAction, getMaxItemUseDuration, getSaturationModifier, isWolfsFavoriteMeat, onFoodEaten, onItemRightClick, onItemUseFinish, setAlwaysEdible, setPotionEffectaddInformation, canHarvestBlock, canItemEditBlocks, getByNameOrId, getColorFromItemStack, getContainerItem, getCreativeTab, getHasSubtypes, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getMaxDamage, getMetadata, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getShareTag, getStrVsBlock, getSubItems, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasEffect, hitEntity, isDamageable, isFull3D, isItemTool, isMap, isPotionIngredient, itemInteractionForEntity, onBlockDestroyed, onCreated, onPlayerStoppedUsing, onUpdate, registerItemBlock, registerItems, setContainerItem, setCreativeTab, setFull3D, setHasSubtypes, setMaxDamage, setMaxStackSize, setPotionEffect, setUnlocalizedName, shouldRotateAroundWhenRendering, updateItemStackNBTprivate Block crops
private Block soilId
public boolean onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ)