Package net.minecraft.item
Class BoneMealItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BoneMealItem
- All Implemented Interfaces:
ItemConvertible
public class BoneMealItem extends Item
-
Nested Class Summary
-
Field Summary
Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group, RANDOM -
Constructor Summary
Constructors Constructor Description BoneMealItem(Item.Settings settings) -
Method Summary
Modifier and Type Method Description static voidcreateParticles(WorldAccess world, BlockPos pos, int count)ActionResultuseOnBlock(ItemUsageContext context)static booleanuseOnFertilizable(ItemStack stack, World world, BlockPos pos)static booleanuseOnGround(ItemStack stack, World world, BlockPos blockPos, Direction facing)Methods inherited from class net.minecraft.item.Item
appendStacks, appendTooltip, asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDrinkSound, getEatSound, getEnchantability, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, use, useOnEntity
-
Constructor Details
-
Method Details
-
useOnBlock
- Overrides:
useOnBlockin classItem
-
useOnFertilizable
-
useOnGround
-
createParticles
@Environment(CLIENT) public static void createParticles(WorldAccess world, BlockPos pos, int count)
-