Uses of Class
net.minecraft.item.ItemUsageContext
-
Uses of ItemUsageContext in net.minecraft.item
Modifier and TypeFieldDescriptionprotected static final Map<Block,
com.mojang.datafixers.util.Pair<Predicate<ItemUsageContext>, Consumer<ItemUsageContext>>> HoeItem.TILLING_ACTIONS
A map of input blocks to predicate-consumer action pairs.protected static final Map<Block,
com.mojang.datafixers.util.Pair<Predicate<ItemUsageContext>, Consumer<ItemUsageContext>>> HoeItem.TILLING_ACTIONS
A map of input blocks to predicate-consumer action pairs.Modifier and TypeMethodDescriptionstatic Consumer<ItemUsageContext>
HoeItem.createTillAction
(BlockState result) Returns a tilling action that sets a block state.static Consumer<ItemUsageContext>
HoeItem.createTillAndDropAction
(BlockState result, ItemConvertible droppedItem) Returns a tilling action that sets a block state and drops an item.Modifier and TypeMethodDescriptionstatic boolean
HoeItem.canTillFarmland
(ItemUsageContext context) Returns whether the used block can be tilled into farmland.ArmorStandItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.AxeItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.BlockItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.BoneMealItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.CompassItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.DebugStickItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.DecorationItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.EndCrystalItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.EnderEyeItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.FilledMapItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.FireChargeItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.FireworkRocketItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.FlintAndSteelItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.HoeItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.HoneycombItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.Item.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.ItemStack.useOnBlock
(ItemUsageContext context) LeadItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.LilyPadItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.MinecartItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.MusicDiscItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.PowderSnowBucketItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.ShearsItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.ShovelItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.SpawnEggItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.WritableBookItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.WrittenBookItem.useOnBlock
(ItemUsageContext context) Called when an item is used on a block.