Uses of Enum Class
net.minecraft.world.InteractionResult
Packages that use InteractionResult
Package
Description
-
Uses of InteractionResult in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer that return InteractionResultModifier and TypeMethodDescriptionMultiPlayerGameMode.interact(Player pPlayer, Entity pTarget, InteractionHand pHand) Handles right-clicking an entity, sends a packet to the server.MultiPlayerGameMode.interactAt(Player pPlayer, Entity pTarget, EntityHitResult pRay, InteractionHand pHand) Handles right-clicking an entity from the entities side, sends a packet to the server.private InteractionResultMultiPlayerGameMode.performUseItemOn(LocalPlayer pPlayer, InteractionHand pHand, BlockHitResult pResult) MultiPlayerGameMode.useItem(Player pPlayer, InteractionHand pHand) MultiPlayerGameMode.useItemOn(LocalPlayer pPlayer, InteractionHand pHand, BlockHitResult pResult) -
Uses of InteractionResult in net.minecraft.server.level
Methods in net.minecraft.server.level that return InteractionResultModifier and TypeMethodDescriptionDemoMode.useItem(ServerPlayer pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand) ServerPlayerGameMode.useItem(ServerPlayer pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand) DemoMode.useItemOn(ServerPlayer pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand, BlockHitResult pHitResult) ServerPlayerGameMode.useItemOn(ServerPlayer pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand, BlockHitResult pHitResult) -
Uses of InteractionResult in net.minecraft.server.network
Methods in net.minecraft.server.network that return InteractionResultModifier and TypeMethodDescriptionServerGamePacketListenerImpl.EntityInteraction.run(ServerPlayer pPlayer, Entity pEntity, InteractionHand pHand) -
Uses of InteractionResult in net.minecraft.world
Fields in net.minecraft.world declared as InteractionResultMethods in net.minecraft.world that return InteractionResultModifier and TypeMethodDescriptionInteractionResultHolder.getResult()ItemInteractionResult.result()static InteractionResultInteractionResult.sidedSuccess(boolean pIsClientSide) static InteractionResultReturns the enum constant of this class with the specified name.static InteractionResult[]InteractionResult.values()Returns an array containing the constants of this enum class, in the order they are declared.Constructors in net.minecraft.world with parameters of type InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity
Methods in net.minecraft.world.entity that return InteractionResultModifier and TypeMethodDescriptionprivate InteractionResultMob.checkAndHandleImportantInteractions(Player pPlayer, InteractionHand pHand) Entity.interact(Player pPlayer, InteractionHand pHand) Interaction.interact(Player pPlayer, InteractionHand pHand) final InteractionResultMob.interact(Player pPlayer, InteractionHand pHand) Entity.interactAt(Player pPlayer, Vec3 pVec, InteractionHand pHand) Applies the given player interaction to this Entity.protected InteractionResultMob.mobInteract(Player pPlayer, InteractionHand pHand) -
Uses of InteractionResult in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal that return InteractionResultModifier and TypeMethodDescriptionprotected InteractionResultAbstractFish.mobInteract(Player pPlayer, InteractionHand pHand) Animal.mobInteract(Player pPlayer, InteractionHand pHand) Cat.mobInteract(Player pPlayer, InteractionHand pHand) Cow.mobInteract(Player pPlayer, InteractionHand pHand) protected InteractionResultDolphin.mobInteract(Player pPlayer, InteractionHand pHand) protected InteractionResultIronGolem.mobInteract(Player pPlayer, InteractionHand pHand) MushroomCow.mobInteract(Player pPlayer, InteractionHand pHand) Ocelot.mobInteract(Player pPlayer, InteractionHand pHand) Panda.mobInteract(Player pPlayer, InteractionHand pHand) Parrot.mobInteract(Player pPlayer, InteractionHand pHand) Pig.mobInteract(Player pPlayer, InteractionHand pHand) Sheep.mobInteract(Player pPlayer, InteractionHand pHand) protected InteractionResultSnowGolem.mobInteract(Player pPlayer, InteractionHand pHand) Wolf.mobInteract(Player pPlayer, InteractionHand pHand) Methods in net.minecraft.world.entity.animal that return types with arguments of type InteractionResultModifier and TypeMethodDescriptionstatic <T extends LivingEntity & Bucketable>
Optional<InteractionResult> Bucketable.bucketMobPickup(Player pPlayer, InteractionHand pHand, T pEntity) -
Uses of InteractionResult in net.minecraft.world.entity.animal.allay
Methods in net.minecraft.world.entity.animal.allay that return InteractionResultModifier and TypeMethodDescriptionprotected InteractionResultAllay.mobInteract(Player pPlayer, InteractionHand pHand) -
Uses of InteractionResult in net.minecraft.world.entity.animal.armadillo
Methods in net.minecraft.world.entity.animal.armadillo that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.animal.goat
Methods in net.minecraft.world.entity.animal.goat that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse that return InteractionResultModifier and TypeMethodDescriptionAbstractChestedHorse.mobInteract(Player pPlayer, InteractionHand pHand) AbstractHorse.mobInteract(Player pPlayer, InteractionHand pHand) Horse.mobInteract(Player pPlayer, InteractionHand pHand) SkeletonHorse.mobInteract(Player pPlayer, InteractionHand pHand) ZombieHorse.mobInteract(Player pPlayer, InteractionHand pHand) -
Uses of InteractionResult in net.minecraft.world.entity.animal.sniffer
Methods in net.minecraft.world.entity.animal.sniffer that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.decoration
Methods in net.minecraft.world.entity.decoration that return InteractionResultModifier and TypeMethodDescriptionItemFrame.interact(Player pPlayer, InteractionHand pHand) LeashFenceKnotEntity.interact(Player pPlayer, InteractionHand pHand) ArmorStand.interactAt(Player pPlayer, Vec3 pVec, InteractionHand pHand) Applies the given player interaction to this Entity. -
Uses of InteractionResult in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster that return InteractionResultModifier and TypeMethodDescriptionprotected InteractionResultBogged.mobInteract(Player pPlayer, InteractionHand pHand) protected InteractionResultCreeper.mobInteract(Player pPlayer, InteractionHand pHand) Strider.mobInteract(Player pPlayer, InteractionHand pHand) ZombieVillager.mobInteract(Player pPlayer, InteractionHand pHand) -
Uses of InteractionResult in net.minecraft.world.entity.monster.hoglin
Methods in net.minecraft.world.entity.monster.hoglin that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin that return InteractionResultModifier and TypeMethodDescriptionPiglin.mobInteract(Player pPlayer, InteractionHand pHand) static InteractionResultPiglinAi.mobInteract(Piglin pPiglin, Player pPlayer, InteractionHand pHand) -
Uses of InteractionResult in net.minecraft.world.entity.npc
Methods in net.minecraft.world.entity.npc that return InteractionResultModifier and TypeMethodDescriptionVillager.mobInteract(Player pPlayer, InteractionHand pHand) WanderingTrader.mobInteract(Player pPlayer, InteractionHand pHand) -
Uses of InteractionResult in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player that return InteractionResultModifier and TypeMethodDescriptionPlayer.interactOn(Entity pEntityToInteractOn, InteractionHand pHand) -
Uses of InteractionResult in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle that return InteractionResultModifier and TypeMethodDescriptionAbstractMinecartContainer.interact(Player pPlayer, InteractionHand pHand) Boat.interact(Player pPlayer, InteractionHand pHand) ChestBoat.interact(Player pPlayer, InteractionHand pHand) Minecart.interact(Player pPlayer, InteractionHand pHand) MinecartChest.interact(Player pPlayer, InteractionHand pHand) MinecartCommandBlock.interact(Player pPlayer, InteractionHand pHand) MinecartFurnace.interact(Player pPlayer, InteractionHand pHand) default InteractionResultContainerEntity.interactWithContainerVehicle(Player pPlayer) -
Uses of InteractionResult in net.minecraft.world.item
Methods in net.minecraft.world.item that return InteractionResultModifier and TypeMethodDescriptionstatic InteractionResultLeadItem.bindPlayerMobs(Player pPlayer, Level pLevel, BlockPos pPos) DyeItem.interactLivingEntity(ItemStack pStack, Player pPlayer, LivingEntity pTarget, InteractionHand pHand) Try interacting with given entity.Item.interactLivingEntity(ItemStack pStack, Player pPlayer, LivingEntity pInteractionTarget, InteractionHand pUsedHand) Try interacting with given entity.ItemStack.interactLivingEntity(Player pPlayer, LivingEntity pEntity, InteractionHand pUsedHand) NameTagItem.interactLivingEntity(ItemStack pStack, Player pPlayer, LivingEntity pTarget, InteractionHand pHand) Try interacting with given entity.SaddleItem.interactLivingEntity(ItemStack pStack, Player pPlayer, LivingEntity pTarget, InteractionHand pHand) Try interacting with given entity.ShearsItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity entity, InteractionHand hand) Neo: Migrate shear behavior intoShearsItem.interactLivingEntity(net.minecraft.world.item.ItemStack, net.minecraft.world.entity.player.Player, net.minecraft.world.entity.LivingEntity, net.minecraft.world.InteractionHand)to call into IShearable instead of relying onMob.mobInteract(net.minecraft.world.entity.player.Player, net.minecraft.world.InteractionHand)private InteractionResultItemStack.onItemUse(UseOnContext p_41662_, Function<UseOnContext, InteractionResult> callback) ItemStack.onItemUseFirst(UseOnContext p_41662_) BlockItem.place(BlockPlaceContext pContext) ArmorStandItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockAxeItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockBlockItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockBoneMealItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockBrushItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockCompassItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockDebugStickItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockEndCrystalItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockEnderEyeItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockFireChargeItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockFireworkRocketItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockFlintAndSteelItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockHangingEntityItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockHoeItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockHoneycombItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockItemStack.useOn(UseOnContext pContext) LeadItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockMapItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockMinecartItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockPlaceOnWaterBlockItem.useOn(UseOnContext p_220229_) PotionItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockShearsItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockShovelItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockSolidBucketItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockSpawnEggItem.useOn(UseOnContext pContext) Called when this item is used when targeting a BlockMethod parameters in net.minecraft.world.item with type arguments of type InteractionResultModifier and TypeMethodDescriptionprivate InteractionResultItemStack.onItemUse(UseOnContext p_41662_, Function<UseOnContext, InteractionResult> callback) -
Uses of InteractionResult in net.minecraft.world.level
Methods in net.minecraft.world.level that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block that return InteractionResultModifier and TypeMethodDescriptionprotected static InteractionResultCakeBlock.eat(LevelAccessor pLevel, BlockPos pPos, BlockState pState, Player pPlayer) static InteractionResultCaveVines.use(Entity pEntity, BlockState pState, Level pLevel, BlockPos pPos) protected InteractionResultAbstractFurnaceBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultAnvilBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultBarrelBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultBeaconBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultBedBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultBellBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultBrewingStandBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultButtonBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultCakeBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultCandleCakeBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultCartographyTableBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultCaveVinesBlock.useWithoutItem(BlockState p_152980_, Level p_152981_, BlockPos p_152982_, Player p_152983_, BlockHitResult p_152985_) protected InteractionResultCaveVinesPlantBlock.useWithoutItem(BlockState p_153021_, Level p_153022_, BlockPos p_153023_, Player p_153024_, BlockHitResult p_153026_) protected InteractionResultChestBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultChiseledBookShelfBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultCommandBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultComparatorBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultComposterBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultCrafterBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultCraftingTableBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultDaylightDetectorBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultDecoratedPotBlock.useWithoutItem(BlockState p_316866_, Level p_316544_, BlockPos p_316541_, Player p_316732_, BlockHitResult p_316860_) protected InteractionResultDispenserBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultDoorBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultDragonEggBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultEnchantingTableBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultEnderChestBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultFenceBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultFenceGateBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultFletchingTableBlock.useWithoutItem(BlockState p_53501_, Level p_53502_, BlockPos p_53503_, Player p_53504_, BlockHitResult p_53506_) protected InteractionResultFlowerPotBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultGrindstoneBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultHopperBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultJigsawBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultJukeboxBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultLecternBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultLeverBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultLightBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultLoomBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultNoteBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultRedStoneWireBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultRepeaterBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultRespawnAnchorBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultShulkerBoxBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultSignBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultSmithingTableBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultStonecutterBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultStructureBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultSweetBerryBushBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultTrapDoorBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) -
Uses of InteractionResult in net.minecraft.world.level.block.piston
Methods in net.minecraft.world.level.block.piston that return InteractionResultModifier and TypeMethodDescriptionprotected InteractionResultMovingPistonBlock.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) -
Uses of InteractionResult in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state that return InteractionResultModifier and TypeMethodDescriptionBlockBehaviour.BlockStateBase.useWithoutItem(Level pLevel, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultBlockBehaviour.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) -
Uses of InteractionResult in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common that return InteractionResultModifier and TypeMethodDescriptionstatic @Nullable InteractionResultCommonHooks.onInteractEntity(Player player, Entity entity, InteractionHand hand) static @Nullable InteractionResultCommonHooks.onInteractEntityAt(Player player, Entity entity, HitResult ray, InteractionHand hand) static @Nullable InteractionResultCommonHooks.onInteractEntityAt(Player player, Entity entity, Vec3 vec3d, InteractionHand hand) static @Nullable InteractionResultCommonHooks.onItemRightClick(Player player, InteractionHand hand) static InteractionResultCommonHooks.onPlaceItemIntoWorld(UseOnContext context) -
Uses of InteractionResult in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return InteractionResultModifier and TypeMethodDescriptiondefault InteractionResultIItemExtension.onItemUseFirst(ItemStack stack, UseOnContext context) This is called when the item is used, before the block is activated.default InteractionResultIItemStackExtension.onItemUseFirst(UseOnContext context) -
Uses of InteractionResult in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as InteractionResultModifier and TypeFieldDescriptionprivate InteractionResultPlayerInteractEvent.EntityInteract.cancellationResultprivate InteractionResultPlayerInteractEvent.EntityInteractSpecific.cancellationResultprivate InteractionResultPlayerInteractEvent.RightClickBlock.cancellationResultprivate InteractionResultPlayerInteractEvent.RightClickItem.cancellationResultMethods in net.neoforged.neoforge.event.entity.player that return InteractionResultModifier and TypeMethodDescriptionPlayerInteractEvent.EntityInteract.getCancellationResult()PlayerInteractEvent.EntityInteractSpecific.getCancellationResult()PlayerInteractEvent.RightClickBlock.getCancellationResult()PlayerInteractEvent.RightClickItem.getCancellationResult()Methods in net.neoforged.neoforge.event.entity.player with parameters of type InteractionResultModifier and TypeMethodDescriptionvoidPlayerInteractEvent.EntityInteract.setCancellationResult(InteractionResult result) Set the InteractionResult that will be returned to vanilla if the event is cancelled, instead of calling the relevant method of the event.voidPlayerInteractEvent.EntityInteractSpecific.setCancellationResult(InteractionResult result) Set the InteractionResult that will be returned to vanilla if the event is cancelled, instead of calling the relevant method of the event.voidPlayerInteractEvent.RightClickBlock.setCancellationResult(InteractionResult result) Set the InteractionResult that will be returned to vanilla if the event is cancelled, instead of calling the relevant method of the event.voidPlayerInteractEvent.RightClickItem.setCancellationResult(InteractionResult result) Set the InteractionResult that will be returned to vanilla if the event is cancelled, instead of calling the relevant method of the event.