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 p_105227_, Entity p_105228_, InteractionHand p_105229_) MultiPlayerGameMode.interactAt(Player p_105231_, Entity p_105232_, EntityHitResult p_105233_, InteractionHand p_105234_) private InteractionResultMultiPlayerGameMode.performUseItemOn(LocalPlayer p_233747_, InteractionHand p_233748_, BlockHitResult p_233749_) MultiPlayerGameMode.useItem(Player p_233722_, InteractionHand p_233723_) MultiPlayerGameMode.useItemOn(LocalPlayer p_233733_, InteractionHand p_233734_, BlockHitResult p_233735_) -
Uses of InteractionResult in net.minecraft.server.level
Methods in net.minecraft.server.level that return InteractionResultModifier and TypeMethodDescriptionDemoMode.useItem(ServerPlayer p_140742_, Level p_140743_, ItemStack p_140744_, InteractionHand p_140745_) ServerPlayerGameMode.useItem(ServerPlayer p_9262_, Level p_9263_, ItemStack p_9264_, InteractionHand p_9265_) DemoMode.useItemOn(ServerPlayer p_140747_, Level p_140748_, ItemStack p_140749_, InteractionHand p_140750_, BlockHitResult p_140751_) ServerPlayerGameMode.useItemOn(ServerPlayer p_9266_, Level p_9267_, ItemStack p_9268_, InteractionHand p_9269_, BlockHitResult p_9270_) -
Uses of InteractionResult in net.minecraft.server.network
Methods in net.minecraft.server.network that return InteractionResultModifier and TypeMethodDescriptionServerGamePacketListenerImpl.EntityInteraction.run(ServerPlayer p_143695_, Entity p_143696_, InteractionHand p_143697_) -
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 p_19079_) 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 p_21500_, InteractionHand p_21501_) Entity.interact(Player p_19978_, InteractionHand p_19979_) Interaction.interact(Player p_273507_, InteractionHand p_273048_) final InteractionResultMob.interact(Player p_21420_, InteractionHand p_21421_) Entity.interactAt(Player p_19980_, Vec3 p_19981_, InteractionHand p_19982_) protected InteractionResultMob.mobInteract(Player p_21472_, InteractionHand p_21473_) -
Uses of InteractionResult in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal that return InteractionResultModifier and TypeMethodDescriptionprotected InteractionResultAbstractFish.mobInteract(Player p_27477_, InteractionHand p_27478_) Animal.mobInteract(Player p_27584_, InteractionHand p_27585_) Cat.mobInteract(Player p_28153_, InteractionHand p_28154_) Cow.mobInteract(Player p_28298_, InteractionHand p_28299_) protected InteractionResultDolphin.mobInteract(Player p_28359_, InteractionHand p_28360_) protected InteractionResultIronGolem.mobInteract(Player p_28861_, InteractionHand p_28862_) MushroomCow.mobInteract(Player p_28941_, InteractionHand p_28942_) Ocelot.mobInteract(Player p_29021_, InteractionHand p_29022_) Panda.mobInteract(Player p_29123_, InteractionHand p_29124_) Parrot.mobInteract(Player p_29414_, InteractionHand p_29415_) Pig.mobInteract(Player p_29489_, InteractionHand p_29490_) Sheep.mobInteract(Player p_29853_, InteractionHand p_29854_) protected InteractionResultSnowGolem.mobInteract(Player p_29920_, InteractionHand p_29921_) Wolf.mobInteract(Player p_30412_, InteractionHand p_30413_) 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 p_148829_, InteractionHand p_148830_, T p_148831_) -
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 p_218361_, InteractionHand p_218362_) -
Uses of InteractionResult in net.minecraft.world.entity.animal.armadillo
Methods in net.minecraft.world.entity.animal.armadillo that return InteractionResultModifier and TypeMethodDescriptionArmadillo.mobInteract(Player p_316559_, InteractionHand p_316119_) -
Uses of InteractionResult in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl that return InteractionResultModifier and TypeMethodDescriptionAxolotl.mobInteract(Player p_149155_, InteractionHand p_149156_) -
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 InteractionResultModifier and TypeMethodDescriptionTadpole.mobInteract(Player p_218703_, InteractionHand p_218704_) -
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 p_30493_, InteractionHand p_30494_) AbstractHorse.mobInteract(Player p_252289_, InteractionHand p_248927_) Horse.mobInteract(Player p_30713_, InteractionHand p_30714_) SkeletonHorse.mobInteract(Player p_30904_, InteractionHand p_30905_) ZombieHorse.mobInteract(Player p_31001_, InteractionHand p_31002_) -
Uses of InteractionResult in net.minecraft.world.entity.animal.sniffer
Methods in net.minecraft.world.entity.animal.sniffer that return InteractionResultModifier and TypeMethodDescriptionSniffer.mobInteract(Player p_273046_, InteractionHand p_272687_) -
Uses of InteractionResult in net.minecraft.world.entity.decoration
Methods in net.minecraft.world.entity.decoration that return InteractionResultModifier and TypeMethodDescriptionItemFrame.interact(Player p_31787_, InteractionHand p_31788_) LeashFenceKnotEntity.interact(Player p_31842_, InteractionHand p_31843_) ArmorStand.interactAt(Player p_31594_, Vec3 p_31595_, InteractionHand p_31596_) -
Uses of InteractionResult in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster that return InteractionResultModifier and TypeMethodDescriptionprotected InteractionResultBogged.mobInteract(Player p_330736_, InteractionHand p_331786_) protected InteractionResultCreeper.mobInteract(Player p_32301_, InteractionHand p_32302_) Strider.mobInteract(Player p_33910_, InteractionHand p_33911_) ZombieVillager.mobInteract(Player p_34394_, InteractionHand p_34395_) -
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 p_34745_, InteractionHand p_34746_) static InteractionResultPiglinAi.mobInteract(Piglin p_34847_, Player p_34848_, InteractionHand p_34849_) -
Uses of InteractionResult in net.minecraft.world.entity.npc
Methods in net.minecraft.world.entity.npc that return InteractionResultModifier and TypeMethodDescriptionVillager.mobInteract(Player p_35472_, InteractionHand p_35473_) WanderingTrader.mobInteract(Player p_35856_, InteractionHand p_35857_) -
Uses of InteractionResult in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle that return InteractionResultModifier and TypeMethodDescriptionAbstractMinecartContainer.interact(Player p_38232_, InteractionHand p_38233_) Boat.interact(Player p_38330_, InteractionHand p_38331_) ChestBoat.interact(Player p_219898_, InteractionHand p_219899_) Minecart.interact(Player p_38483_, InteractionHand p_38484_) MinecartChest.interact(Player p_270398_, InteractionHand p_270576_) MinecartCommandBlock.interact(Player p_38522_, InteractionHand p_38523_) MinecartFurnace.interact(Player p_38562_, InteractionHand p_38563_) default InteractionResultContainerEntity.interactWithContainerVehicle(Player p_270068_) -
Uses of InteractionResult in net.minecraft.world.item
Methods in net.minecraft.world.item that return InteractionResultModifier and TypeMethodDescriptionstatic InteractionResultLeadItem.bindPlayerMobs(Player p_42830_, Level p_42831_, BlockPos p_42832_) DyeItem.interactLivingEntity(ItemStack p_41085_, Player p_41086_, LivingEntity p_41087_, InteractionHand p_41088_) Item.interactLivingEntity(ItemStack p_41398_, Player p_41399_, LivingEntity p_41400_, InteractionHand p_41401_) ItemStack.interactLivingEntity(Player p_41648_, LivingEntity p_41649_, InteractionHand p_41650_) NameTagItem.interactLivingEntity(ItemStack p_42954_, Player p_42955_, LivingEntity p_42956_, InteractionHand p_42957_) SaddleItem.interactLivingEntity(ItemStack p_43055_, Player p_43056_, LivingEntity p_43057_, InteractionHand p_43058_) ShearsItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity entity, InteractionHand hand) private InteractionResultItemStack.onItemUse(UseOnContext p_41662_, Function<UseOnContext, InteractionResult> callback) ItemStack.onItemUseFirst(UseOnContext p_41662_) BlockItem.place(BlockPlaceContext p_40577_) ArmorStandItem.useOn(UseOnContext p_40510_) AxeItem.useOn(UseOnContext p_40529_) BlockItem.useOn(UseOnContext p_40581_) BoneMealItem.useOn(UseOnContext p_40637_) BrushItem.useOn(UseOnContext p_272607_) 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_) PlaceOnWaterBlockItem.useOn(UseOnContext p_220229_) PotionItem.useOn(UseOnContext p_220235_) 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_) Method 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 p_51186_, BlockPos p_51187_, BlockState p_51188_, Player p_51189_) static InteractionResultCaveVines.use(Entity p_270738_, BlockState p_270772_, Level p_270721_, BlockPos p_270587_) protected InteractionResultAbstractFurnaceBlock.useWithoutItem(BlockState p_48706_, Level p_48707_, BlockPos p_48708_, Player p_48709_, BlockHitResult p_48711_) protected InteractionResultAnvilBlock.useWithoutItem(BlockState p_48804_, Level p_48805_, BlockPos p_48806_, Player p_48807_, BlockHitResult p_48809_) protected InteractionResultBarrelBlock.useWithoutItem(BlockState p_49069_, Level p_49070_, BlockPos p_49071_, Player p_49072_, BlockHitResult p_49074_) protected InteractionResultBeaconBlock.useWithoutItem(BlockState p_49432_, Level p_49433_, BlockPos p_49434_, Player p_49435_, BlockHitResult p_49437_) protected InteractionResultBedBlock.useWithoutItem(BlockState p_49515_, Level p_49516_, BlockPos p_49517_, Player p_49518_, BlockHitResult p_49520_) protected InteractionResultBellBlock.useWithoutItem(BlockState p_49722_, Level p_49723_, BlockPos p_49724_, Player p_49725_, BlockHitResult p_49727_) protected InteractionResultBrewingStandBlock.useWithoutItem(BlockState p_50930_, Level p_50931_, BlockPos p_50932_, Player p_50933_, BlockHitResult p_50935_) protected InteractionResultButtonBlock.useWithoutItem(BlockState p_316833_, Level p_316124_, BlockPos p_316184_, Player p_316845_, BlockHitResult p_316247_) protected InteractionResultCakeBlock.useWithoutItem(BlockState p_316481_, Level p_316406_, BlockPos p_316218_, Player p_316212_, BlockHitResult p_316525_) protected InteractionResultCandleCakeBlock.useWithoutItem(BlockState p_316519_, Level p_316226_, BlockPos p_316122_, Player p_316438_, BlockHitResult p_316849_) protected InteractionResultCartographyTableBlock.useWithoutItem(BlockState p_51357_, Level p_51358_, BlockPos p_51359_, Player p_51360_, BlockHitResult p_51362_) 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 p_51531_, Level p_51532_, BlockPos p_51533_, Player p_51534_, BlockHitResult p_51536_) protected InteractionResultChiseledBookShelfBlock.useWithoutItem(BlockState p_316403_, Level p_316842_, BlockPos p_316539_, Player p_316349_, BlockHitResult p_316278_) protected InteractionResultCommandBlock.useWithoutItem(BlockState p_51825_, Level p_51826_, BlockPos p_51827_, Player p_51828_, BlockHitResult p_51830_) protected InteractionResultComparatorBlock.useWithoutItem(BlockState p_51880_, Level p_51881_, BlockPos p_51882_, Player p_51883_, BlockHitResult p_51885_) protected InteractionResultComposterBlock.useWithoutItem(BlockState p_316361_, Level p_316271_, BlockPos p_316647_, Player p_316633_, BlockHitResult p_316555_) protected InteractionResultCrafterBlock.useWithoutItem(BlockState p_307454_, Level p_307255_, BlockPos p_307303_, Player p_307670_, BlockHitResult p_307546_) protected InteractionResultCraftingTableBlock.useWithoutItem(BlockState p_52233_, Level p_52234_, BlockPos p_52235_, Player p_52236_, BlockHitResult p_52238_) protected InteractionResultDaylightDetectorBlock.useWithoutItem(BlockState p_52391_, Level p_52392_, BlockPos p_52393_, Player p_52394_, BlockHitResult p_52396_) protected InteractionResultDecoratedPotBlock.useWithoutItem(BlockState p_316866_, Level p_316544_, BlockPos p_316541_, Player p_316732_, BlockHitResult p_316860_) protected InteractionResultDispenserBlock.useWithoutItem(BlockState p_52693_, Level p_52694_, BlockPos p_52695_, Player p_52696_, BlockHitResult p_52698_) protected InteractionResultDoorBlock.useWithoutItem(BlockState p_52769_, Level p_52770_, BlockPos p_52771_, Player p_52772_, BlockHitResult p_52774_) protected InteractionResultDragonEggBlock.useWithoutItem(BlockState p_52923_, Level p_52924_, BlockPos p_52925_, Player p_52926_, BlockHitResult p_52928_) protected InteractionResultEnchantingTableBlock.useWithoutItem(BlockState p_341077_, Level p_341293_, BlockPos p_341394_, Player p_340990_, BlockHitResult p_341300_) protected InteractionResultEnderChestBlock.useWithoutItem(BlockState p_53137_, Level p_53138_, BlockPos p_53139_, Player p_53140_, BlockHitResult p_53142_) protected InteractionResultFenceBlock.useWithoutItem(BlockState p_316111_, Level p_316725_, BlockPos p_316646_, Player p_316453_, BlockHitResult p_316769_) protected InteractionResultFenceGateBlock.useWithoutItem(BlockState p_53365_, Level p_53366_, BlockPos p_53367_, Player p_53368_, BlockHitResult p_53370_) protected InteractionResultFletchingTableBlock.useWithoutItem(BlockState p_53501_, Level p_53502_, BlockPos p_53503_, Player p_53504_, BlockHitResult p_53506_) protected InteractionResultFlowerPotBlock.useWithoutItem(BlockState p_316363_, Level p_316655_, BlockPos p_316654_, Player p_316338_, BlockHitResult p_316518_) protected InteractionResultGrindstoneBlock.useWithoutItem(BlockState p_53821_, Level p_53822_, BlockPos p_53823_, Player p_53824_, BlockHitResult p_53826_) protected InteractionResultHopperBlock.useWithoutItem(BlockState p_54071_, Level p_54072_, BlockPos p_54073_, Player p_54074_, BlockHitResult p_54076_) protected InteractionResultJigsawBlock.useWithoutItem(BlockState p_54231_, Level p_54232_, BlockPos p_54233_, Player p_54234_, BlockHitResult p_54236_) protected InteractionResultJukeboxBlock.useWithoutItem(BlockState p_54281_, Level p_54282_, BlockPos p_54283_, Player p_54284_, BlockHitResult p_54286_) protected InteractionResultLecternBlock.useWithoutItem(BlockState p_316164_, Level p_316515_, BlockPos p_316598_, Player p_316584_, BlockHitResult p_316197_) protected InteractionResultLeverBlock.useWithoutItem(BlockState p_54640_, Level p_54641_, BlockPos p_54642_, Player p_54643_, BlockHitResult p_54645_) protected InteractionResultLightBlock.useWithoutItem(BlockState p_153673_, Level p_153674_, BlockPos p_153675_, Player p_153676_, BlockHitResult p_153678_) protected InteractionResultLoomBlock.useWithoutItem(BlockState p_54787_, Level p_54788_, BlockPos p_54789_, Player p_54790_, BlockHitResult p_54792_) protected InteractionResultNoteBlock.useWithoutItem(BlockState p_316441_, Level p_316774_, BlockPos p_316344_, Player p_316884_, BlockHitResult p_316631_) protected InteractionResultRedStoneWireBlock.useWithoutItem(BlockState p_55554_, Level p_55555_, BlockPos p_55556_, Player p_55557_, BlockHitResult p_55559_) protected InteractionResultRepeaterBlock.useWithoutItem(BlockState p_55809_, Level p_55810_, BlockPos p_55811_, Player p_55812_, BlockHitResult p_55814_) protected InteractionResultRespawnAnchorBlock.useWithoutItem(BlockState p_316377_, Level p_316150_, BlockPos p_316161_, Player p_316889_, BlockHitResult p_316358_) protected InteractionResultShulkerBoxBlock.useWithoutItem(BlockState p_56227_, Level p_56228_, BlockPos p_56229_, Player p_56230_, BlockHitResult p_56232_) protected InteractionResultSignBlock.useWithoutItem(BlockState p_316779_, Level p_316615_, BlockPos p_316127_, Player p_316173_, BlockHitResult p_316850_) protected InteractionResultSmithingTableBlock.useWithoutItem(BlockState p_56428_, Level p_56429_, BlockPos p_56430_, Player p_56431_, BlockHitResult p_56433_) protected InteractionResultStonecutterBlock.useWithoutItem(BlockState p_57083_, Level p_57084_, BlockPos p_57085_, Player p_57086_, BlockHitResult p_57088_) protected InteractionResultStructureBlock.useWithoutItem(BlockState p_57128_, Level p_57129_, BlockPos p_57130_, Player p_57131_, BlockHitResult p_57133_) protected InteractionResultSweetBerryBushBlock.useWithoutItem(BlockState p_316134_, Level p_316429_, BlockPos p_316748_, Player p_316431_, BlockHitResult p_316474_) protected InteractionResultTrapDoorBlock.useWithoutItem(BlockState p_57540_, Level p_57541_, BlockPos p_57542_, Player p_57543_, BlockHitResult p_57545_) -
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 p_60070_, Level p_60071_, BlockPos p_60072_, Player p_60073_, BlockHitResult p_60075_) -
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 p_316368_, Player p_316500_, BlockHitResult p_316346_) protected InteractionResultBlockBehaviour.useWithoutItem(BlockState p_60503_, Level p_60504_, BlockPos p_60505_, Player p_60506_, BlockHitResult p_60508_) -
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.debug.block
Methods in net.neoforged.neoforge.debug.block that return InteractionResultModifier and TypeMethodDescriptionBlockPropertyTests.LightBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hit) -
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.