Uses of Class
net.minecraft.world.item.context.UseOnContext
Packages that use UseOnContext
Package
Description
-
Uses of UseOnContext in net.minecraft.world.item
Fields in net.minecraft.world.item with type parameters of type UseOnContextModifier and TypeFieldDescriptionprotected static final Map<Block,
com.mojang.datafixers.util.Pair<Predicate<UseOnContext>, Consumer<UseOnContext>>> HoeItem.TILLABLES
Deprecated.Forge: This map is patched out of vanilla code.protected static final Map<Block,
com.mojang.datafixers.util.Pair<Predicate<UseOnContext>, Consumer<UseOnContext>>> HoeItem.TILLABLES
Deprecated.Forge: This map is patched out of vanilla code.Methods in net.minecraft.world.item that return types with arguments of type UseOnContextModifier and TypeMethodDescriptionstatic Consumer<UseOnContext>
HoeItem.changeIntoState
(BlockState p_150859_) static Consumer<UseOnContext>
HoeItem.changeIntoStateAndDropItem
(BlockState p_150850_, ItemLike p_150851_) Methods in net.minecraft.world.item with parameters of type UseOnContextModifier and TypeMethodDescriptionprivate InteractionResult
ItemStack.onItemUse
(UseOnContext p_41662_, Function<UseOnContext, InteractionResult> callback) ItemStack.onItemUseFirst
(UseOnContext p_41662_) static boolean
HoeItem.onlyIfAirAbove
(UseOnContext p_150857_) ArmorStandItem.useOn
(UseOnContext p_40510_) AxeItem.useOn
(UseOnContext p_40529_) BlockItem.useOn
(UseOnContext p_40581_) BoneMealItem.useOn
(UseOnContext p_40637_) CompassItem.useOn
(UseOnContext p_40726_) DebugStickItem.useOn
(UseOnContext p_40960_) EndCrystalItem.useOn
(UseOnContext p_41176_) EnderEyeItem.useOn
(UseOnContext p_41182_) FireChargeItem.useOn
(UseOnContext p_41204_) FireworkRocketItem.useOn
(UseOnContext p_41216_) FlintAndSteelItem.useOn
(UseOnContext p_41297_) HangingEntityItem.useOn
(UseOnContext p_41331_) HoeItem.useOn
(UseOnContext p_41341_) HoneycombItem.useOn
(UseOnContext p_150869_) Item.useOn
(UseOnContext p_41427_) ItemStack.useOn
(UseOnContext p_41662_) LeadItem.useOn
(UseOnContext p_42834_) MapItem.useOn
(UseOnContext p_42885_) MinecartItem.useOn
(UseOnContext p_42943_) RecordItem.useOn
(UseOnContext p_43048_) ShearsItem.useOn
(UseOnContext p_186371_) ShovelItem.useOn
(UseOnContext p_43119_) SolidBucketItem.useOn
(UseOnContext p_151197_) SpawnEggItem.useOn
(UseOnContext p_43223_) WaterLilyBlockItem.useOn
(UseOnContext p_43439_) WritableBookItem.useOn
(UseOnContext p_43447_) WrittenBookItem.useOn
(UseOnContext p_43466_) Method parameters in net.minecraft.world.item with type arguments of type UseOnContextModifier and TypeMethodDescriptionprivate InteractionResult
ItemStack.onItemUse
(UseOnContext p_41662_, Function<UseOnContext, InteractionResult> callback) -
Uses of UseOnContext in net.minecraft.world.item.context
Subclasses of UseOnContext in net.minecraft.world.item.contextConstructors in net.minecraft.world.item.context with parameters of type UseOnContext -
Uses of UseOnContext in net.minecraftforge.common
Methods in net.minecraftforge.common with parameters of type UseOnContextModifier and TypeMethodDescriptionstatic InteractionResult
ForgeHooks.onPlaceItemIntoWorld
(UseOnContext context) -
Uses of UseOnContext in net.minecraftforge.common.extensions
Methods in net.minecraftforge.common.extensions with parameters of type UseOnContextModifier and TypeMethodDescriptiondefault BlockState
IForgeBlock.getToolModifiedState
(BlockState state, UseOnContext context, ToolAction toolAction, boolean simulate) Returns the state that this block should transform into when right-clicked by a tool.default BlockState
IForgeBlockState.getToolModifiedState
(UseOnContext context, ToolAction toolAction, boolean simulate) Returns the state that this block should transform into when right-clicked by a tool.default InteractionResult
IForgeItem.onItemUseFirst
(ItemStack stack, UseOnContext context) This is called when the item is used, before the block is activated.default InteractionResult
IForgeItemStack.onItemUseFirst
(UseOnContext context) -
Uses of UseOnContext in net.minecraftforge.event
Methods in net.minecraftforge.event with parameters of type UseOnContextModifier and TypeMethodDescriptionstatic int
ForgeEventFactory.onHoeUse
(UseOnContext context) Deprecated, for removal: This API element is subject to removal in a future version.static BlockState
ForgeEventFactory.onToolUse
(BlockState originalState, UseOnContext context, ToolAction toolAction, boolean simulate) -
Uses of UseOnContext in net.minecraftforge.event.entity.player
Fields in net.minecraftforge.event.entity.player declared as UseOnContextModifier and TypeFieldDescriptionprivate final UseOnContext
UseHoeEvent.context
Deprecated, for removal: This API element is subject to removal in a future version.Methods in net.minecraftforge.event.entity.player that return UseOnContextModifier and TypeMethodDescriptionUseHoeEvent.getContext()
Deprecated, for removal: This API element is subject to removal in a future version.Constructors in net.minecraftforge.event.entity.player with parameters of type UseOnContextModifierConstructorDescriptionUseHoeEvent
(UseOnContext context) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of UseOnContext in net.minecraftforge.event.world
Fields in net.minecraftforge.event.world declared as UseOnContextModifier and TypeFieldDescriptionprivate final UseOnContext
BlockEvent.BlockToolModificationEvent.context
Methods in net.minecraftforge.event.world that return UseOnContextModifier and TypeMethodDescriptionBlockEvent.BlockToolModificationEvent.getContext()
Returns the nullable use on context that this event was performed in.Constructors in net.minecraftforge.event.world with parameters of type UseOnContextModifierConstructorDescriptionBlockToolInteractEvent
(BlockState originalState, UseOnContext context, ToolAction toolAction) Deprecated, for removal: This API element is subject to removal in a future version.BlockToolModificationEvent
(BlockState originalState, UseOnContext context, ToolAction toolAction, boolean simulate)