Uses of Enum Class
net.minecraft.world.ItemInteractionResult
Packages that use ItemInteractionResult
Package
Description
-
Uses of ItemInteractionResult in net.minecraft.core.cauldron
Methods in net.minecraft.core.cauldron that return ItemInteractionResultModifier and TypeMethodDescriptionstatic ItemInteractionResult
CauldronInteraction.emptyBucket
(Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack, BlockState state, SoundEvent emptySound) static ItemInteractionResult
CauldronInteraction.fillBucket
(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack emptyStack, ItemStack filledStack, Predicate<BlockState> statePredicate, SoundEvent fillSound) CauldronInteraction.interact
(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) -
Uses of ItemInteractionResult in net.minecraft.world
Methods in net.minecraft.world that return ItemInteractionResultModifier and TypeMethodDescriptionstatic ItemInteractionResult
ItemInteractionResult.sidedSuccess
(boolean clientSide) static ItemInteractionResult
Returns the enum constant of this class with the specified name.static ItemInteractionResult[]
ItemInteractionResult.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of ItemInteractionResult in net.minecraft.world.item
Methods in net.minecraft.world.item that return ItemInteractionResultModifier and TypeMethodDescriptionstatic ItemInteractionResult
JukeboxPlayable.tryInsertIntoJukebox
(Level level, BlockPos pos, ItemStack stack, Player player) -
Uses of ItemInteractionResult in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block that return ItemInteractionResultModifier and TypeMethodDescriptionprotected ItemInteractionResult
AbstractCauldronBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
BeehiveBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
CakeBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
CampfireBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
CandleBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
CandleCakeBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
CeilingHangingSignBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
ChiseledBookShelfBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
ComposterBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
DecoratedPotBlock.useItemOn
(ItemStack p_316569_, BlockState p_316562_, Level p_316177_, BlockPos p_316898_, Player p_316632_, InteractionHand p_316424_, BlockHitResult p_316345_) protected ItemInteractionResult
FenceBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
FlowerPotBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
JukeboxBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
LecternBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
NoteBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
PumpkinBlock.useItemOn
(ItemStack p_316383_, BlockState p_316676_, Level p_316272_, BlockPos p_316484_, Player p_316367_, InteractionHand p_316216_, BlockHitResult p_316827_) protected ItemInteractionResult
RedStoneOreBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
RespawnAnchorBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
SignBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
SweetBerryBushBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
TntBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) VaultBlock.useItemOn
(ItemStack p_324161_, BlockState p_323816_, Level p_324403_, BlockPos p_324623_, Player p_324219_, InteractionHand p_324416_, BlockHitResult p_324261_) protected ItemInteractionResult
WallHangingSignBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) -
Uses of ItemInteractionResult in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state that return ItemInteractionResultModifier and TypeMethodDescriptionBlockBehaviour.BlockStateBase.useItemOn
(ItemStack stack, Level level, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResult
BlockBehaviour.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) -
Uses of ItemInteractionResult in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as ItemInteractionResultModifier and TypeFieldDescriptionprivate ItemInteractionResult
UseItemOnBlockEvent.cancellationResult
Methods in net.neoforged.neoforge.event.entity.player that return ItemInteractionResultMethods in net.neoforged.neoforge.event.entity.player with parameters of type ItemInteractionResultModifier and TypeMethodDescriptionvoid
UseItemOnBlockEvent.cancelWithResult
(ItemInteractionResult result) Cancels the use interaction (preventing the block or item's use behavior from running) and provides the specified result to the interaction logic instead.void
UseItemOnBlockEvent.setCancellationResult
(ItemInteractionResult result) Set theItemInteractionResult
that will be returned to vanilla if the event is cancelled, instead of calling the relevant method of the event.