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 ItemInteractionResultCauldronInteraction.emptyBucket(Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack, BlockState state, SoundEvent emptySound) static ItemInteractionResultCauldronInteraction.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 ItemInteractionResultItemInteractionResult.sidedSuccess(boolean clientSide) static ItemInteractionResultReturns 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 ItemInteractionResultJukeboxPlayable.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 ItemInteractionResultAbstractCauldronBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultBeehiveBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultCakeBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultCampfireBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultCandleBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultCandleCakeBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultCeilingHangingSignBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultChiseledBookShelfBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultComposterBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultDecoratedPotBlock.useItemOn(ItemStack p_316569_, BlockState p_316562_, Level p_316177_, BlockPos p_316898_, Player p_316632_, InteractionHand p_316424_, BlockHitResult p_316345_) protected ItemInteractionResultFenceBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultFlowerPotBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultJukeboxBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultLecternBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultNoteBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultPumpkinBlock.useItemOn(ItemStack p_316383_, BlockState p_316676_, Level p_316272_, BlockPos p_316484_, Player p_316367_, InteractionHand p_316216_, BlockHitResult p_316827_) protected ItemInteractionResultRedStoneOreBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultRespawnAnchorBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultSignBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultSweetBerryBushBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultTntBlock.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 ItemInteractionResultWallHangingSignBlock.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 ItemInteractionResultBlockBehaviour.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 ItemInteractionResultUseItemOnBlockEvent.cancellationResultMethods in net.neoforged.neoforge.event.entity.player that return ItemInteractionResultMethods in net.neoforged.neoforge.event.entity.player with parameters of type ItemInteractionResultModifier and TypeMethodDescriptionvoidUseItemOnBlockEvent.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.voidUseItemOnBlockEvent.setCancellationResult(ItemInteractionResult result) Set theItemInteractionResultthat will be returned to vanilla if the event is cancelled, instead of calling the relevant method of the event.