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 p_175619_, BlockPos p_175620_, Player p_175621_, InteractionHand p_175622_, ItemStack p_175623_, BlockState p_175624_, SoundEvent p_175625_) static ItemInteractionResultCauldronInteraction.fillBucket(BlockState p_175636_, Level p_175637_, BlockPos p_175638_, Player p_175639_, InteractionHand p_175640_, ItemStack p_175641_, ItemStack p_175642_, Predicate<BlockState> p_175643_, SoundEvent p_175644_) CauldronInteraction.interact(BlockState p_175711_, Level p_175712_, BlockPos p_175713_, Player p_175714_, InteractionHand p_175715_, ItemStack p_175716_) -
Uses of ItemInteractionResult in net.minecraft.world
Methods in net.minecraft.world that return ItemInteractionResultModifier and TypeMethodDescriptionstatic ItemInteractionResultItemInteractionResult.sidedSuccess(boolean p_316407_) 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.level.block
Methods in net.minecraft.world.level.block that return ItemInteractionResultModifier and TypeMethodDescriptionprotected ItemInteractionResultAbstractCauldronBlock.useItemOn(ItemStack p_316791_, BlockState p_316287_, Level p_316530_, BlockPos p_316585_, Player p_316671_, InteractionHand p_316186_, BlockHitResult p_316294_) protected ItemInteractionResultBeehiveBlock.useItemOn(ItemStack p_316844_, BlockState p_316365_, Level p_316306_, BlockPos p_316497_, Player p_316824_, InteractionHand p_316436_, BlockHitResult p_316125_) protected ItemInteractionResultCakeBlock.useItemOn(ItemStack p_316238_, BlockState p_316837_, Level p_316766_, BlockPos p_316227_, Player p_316853_, InteractionHand p_316422_, BlockHitResult p_316869_) protected ItemInteractionResultCampfireBlock.useItemOn(ItemStack p_316347_, BlockState p_51274_, Level p_51275_, BlockPos p_51276_, Player p_51277_, InteractionHand p_51278_, BlockHitResult p_51279_) protected ItemInteractionResultCandleBlock.useItemOn(ItemStack p_316279_, BlockState p_316163_, Level p_316881_, BlockPos p_316480_, Player p_316191_, InteractionHand p_316669_, BlockHitResult p_316641_) protected ItemInteractionResultCandleCakeBlock.useItemOn(ItemStack p_316571_, BlockState p_316514_, Level p_316171_, BlockPos p_316112_, Player p_316172_, InteractionHand p_316257_, BlockHitResult p_316286_) protected ItemInteractionResultCeilingHangingSignBlock.useItemOn(ItemStack p_316602_, BlockState p_316839_, Level p_316805_, BlockPos p_316894_, Player p_316202_, InteractionHand p_316538_, BlockHitResult p_316895_) protected ItemInteractionResultChiseledBookShelfBlock.useItemOn(ItemStack p_316457_, BlockState p_316201_, Level p_316747_, BlockPos p_316462_, Player p_316228_, InteractionHand p_316721_, BlockHitResult p_316464_) protected ItemInteractionResultComposterBlock.useItemOn(ItemStack p_316332_, BlockState p_316118_, Level p_316624_, BlockPos p_316660_, Player p_316715_, InteractionHand p_316472_, BlockHitResult p_316606_) 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 p_316871_, BlockState p_316305_, Level p_316763_, BlockPos p_316504_, Player p_316364_, InteractionHand p_316507_, BlockHitResult p_316760_) protected ItemInteractionResultFlowerPotBlock.useItemOn(ItemStack p_316610_, BlockState p_316240_, Level p_316456_, BlockPos p_316502_, Player p_316491_, InteractionHand p_316444_, BlockHitResult p_316826_) protected ItemInteractionResultLecternBlock.useItemOn(ItemStack p_316392_, BlockState p_316600_, Level p_316640_, BlockPos p_316673_, Player p_316670_, InteractionHand p_316384_, BlockHitResult p_316419_) protected ItemInteractionResultNoteBlock.useItemOn(ItemStack p_316716_, BlockState p_316688_, Level p_316672_, BlockPos p_316355_, Player p_316822_, InteractionHand p_316505_, BlockHitResult p_316667_) 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 p_316235_, BlockState p_316208_, Level p_316432_, BlockPos p_316592_, Player p_316564_, InteractionHand p_316389_, BlockHitResult p_316390_) protected ItemInteractionResultRespawnAnchorBlock.useItemOn(ItemStack p_316531_, BlockState p_316665_, Level p_316165_, BlockPos p_316402_, Player p_316556_, InteractionHand p_316586_, BlockHitResult p_316326_) protected ItemInteractionResultSignBlock.useItemOn(ItemStack p_316116_, BlockState p_316899_, Level p_316692_, BlockPos p_316578_, Player p_316244_, InteractionHand p_316196_, BlockHitResult p_316744_) protected ItemInteractionResultSweetBerryBushBlock.useItemOn(ItemStack p_316636_, BlockState p_316295_, Level p_316812_, BlockPos p_316380_, Player p_316731_, InteractionHand p_316188_, BlockHitResult p_316626_) protected ItemInteractionResultTntBlock.useItemOn(ItemStack p_316149_, BlockState p_316217_, Level p_316520_, BlockPos p_316601_, Player p_316770_, InteractionHand p_316393_, BlockHitResult p_316532_) 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 p_316420_, BlockState p_316885_, Level p_316114_, BlockPos p_316297_, Player p_316609_, InteractionHand p_316187_, BlockHitResult p_316223_) -
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 p_316374_, Level p_316651_, Player p_316623_, InteractionHand p_316469_, BlockHitResult p_316877_) protected ItemInteractionResultBlockBehaviour.useItemOn(ItemStack p_316304_, BlockState p_316362_, Level p_316459_, BlockPos p_316366_, Player p_316132_, InteractionHand p_316595_, BlockHitResult p_316140_) -
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. -
Uses of ItemInteractionResult in net.neoforged.neoforge.oldtest.block
Methods in net.neoforged.neoforge.oldtest.block that return ItemInteractionResultModifier and TypeMethodDescriptionFullPotsAccessorDemo.DioriteFlowerPotBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit) -
Uses of ItemInteractionResult in net.neoforged.neoforge.oldtest.client.model
Methods in net.neoforged.neoforge.oldtest.client.model that return ItemInteractionResultModifier and TypeMethodDescriptionprotected ItemInteractionResultMegaModelTest.TestBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit)