Uses of Class
net.minecraft.item.ItemUsageContext
-
Uses of ItemUsageContext in net.minecraft.item
Modifier and TypeFieldDescriptionprotected static Map<Block,com.mojang.datafixers.util.Pair<Predicate<ItemUsageContext>,Consumer<ItemUsageContext>>>
HoeItem.TILLED_BLOCKS
protected static Map<Block,com.mojang.datafixers.util.Pair<Predicate<ItemUsageContext>,Consumer<ItemUsageContext>>>
HoeItem.TILLED_BLOCKS
Modifier and TypeMethodDescriptionstatic Consumer<ItemUsageContext>
HoeItem.getTillingConsumer(BlockState state)
static Consumer<ItemUsageContext>
HoeItem.getTillingConsumer(BlockState state, ItemConvertible dropItem)
Modifier and TypeMethodDescriptionstatic boolean
HoeItem.usagePredicate(ItemUsageContext context)
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.FireworkItem.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.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.