Uses of Interface
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 player, Entity target, InteractionHand hand) Handles right-clicking an entity, sends a packet to the server.MultiPlayerGameMode.interactAt(Player player, Entity target, EntityHitResult ray, InteractionHand hand) Handles right-clicking an entity from the entities side, sends a packet to the server.private InteractionResultMultiPlayerGameMode.performUseItemOn(LocalPlayer player, InteractionHand hand, BlockHitResult result) MultiPlayerGameMode.useItem(Player player, InteractionHand hand) MultiPlayerGameMode.useItemOn(LocalPlayer player, InteractionHand hand, BlockHitResult result) -
Uses of InteractionResult in net.minecraft.core.cauldron
Methods in net.minecraft.core.cauldron that return InteractionResultModifier and TypeMethodDescriptionprivate static InteractionResultCauldronInteraction.bannerInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) private static InteractionResultCauldronInteraction.dyedItemIteration(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) static InteractionResultCauldronInteraction.emptyBucket(Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack, BlockState state, SoundEvent emptySound) static InteractionResultCauldronInteraction.fillBucket(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack emptyStack, ItemStack filledStack, Predicate<BlockState> statePredicate, SoundEvent fillSound) private static InteractionResultCauldronInteraction.fillLavaInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack) private static InteractionResultCauldronInteraction.fillPowderSnowInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack) private static InteractionResultCauldronInteraction.fillWaterInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack) CauldronInteraction.interact(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) private static InteractionResultCauldronInteraction.shulkerBoxInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) -
Uses of InteractionResult in net.minecraft.server.level
Methods in net.minecraft.server.level that return InteractionResultModifier and TypeMethodDescriptionDemoMode.useItem(ServerPlayer player, Level level, ItemStack stack, InteractionHand hand) ServerPlayerGameMode.useItem(ServerPlayer player, Level level, ItemStack stack, InteractionHand hand) DemoMode.useItemOn(ServerPlayer player, Level level, ItemStack stack, InteractionHand hand, BlockHitResult hitResult) ServerPlayerGameMode.useItemOn(ServerPlayer player, Level level, ItemStack stack, InteractionHand hand, BlockHitResult hitResult) -
Uses of InteractionResult in net.minecraft.server.network
Methods in net.minecraft.server.network that return InteractionResultModifier and TypeMethodDescriptionServerGamePacketListenerImpl.EntityInteraction.run(ServerPlayer player, Entity entity, InteractionHand hand) -
Uses of InteractionResult in net.minecraft.world
Classes in net.minecraft.world that implement InteractionResultModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final record -
Uses of InteractionResult in net.minecraft.world.entity
Methods in net.minecraft.world.entity that return InteractionResultModifier and TypeMethodDescriptionprivate InteractionResultMob.checkAndHandleImportantInteractions(Player player, InteractionHand hand) Entity.interact(Player player, InteractionHand hand) Interaction.interact(Player player, InteractionHand hand) final InteractionResultMob.interact(Player player, InteractionHand hand) Entity.interactAt(Player player, Vec3 vec, InteractionHand hand) Applies the given player interaction to this Entity.protected InteractionResultMob.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionResult in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal that return InteractionResultModifier and TypeMethodDescriptionAbstractCow.mobInteract(Player p_401345_, InteractionHand p_401405_) protected InteractionResultAbstractFish.mobInteract(Player player, InteractionHand hand) Animal.mobInteract(Player player, InteractionHand hand) Bee.mobInteract(Player player, InteractionHand hand) Cat.mobInteract(Player player, InteractionHand hand) protected InteractionResultDolphin.mobInteract(Player player, InteractionHand hand) HappyGhast.mobInteract(Player player, InteractionHand hand) protected InteractionResultIronGolem.mobInteract(Player player, InteractionHand hand) MushroomCow.mobInteract(Player player, InteractionHand hand) Ocelot.mobInteract(Player player, InteractionHand hand) Panda.mobInteract(Player player, InteractionHand hand) Parrot.mobInteract(Player player, InteractionHand hand) Pig.mobInteract(Player player, InteractionHand hand) protected InteractionResultSnowGolem.mobInteract(Player player, InteractionHand hand) 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 player, InteractionHand hand, T entity) -
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 player, InteractionHand hand) -
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 player, InteractionHand hand) AbstractHorse.mobInteract(Player player, InteractionHand hand) Horse.mobInteract(Player player, InteractionHand hand) SkeletonHorse.mobInteract(Player player, InteractionHand hand) ZombieHorse.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionResult in net.minecraft.world.entity.animal.sheep
Methods in net.minecraft.world.entity.animal.sheep that return InteractionResult -
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.animal.wolf
Methods in net.minecraft.world.entity.animal.wolf 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 player, InteractionHand hand) LeashFenceKnotEntity.interact(Player player, InteractionHand hand) ArmorStand.interactAt(Player player, Vec3 vec, InteractionHand hand) 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 player, InteractionHand hand) protected InteractionResultCreeper.mobInteract(Player player, InteractionHand hand) Strider.mobInteract(Player player, InteractionHand hand) ZombieVillager.mobInteract(Player player, InteractionHand hand) -
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 player, InteractionHand hand) static InteractionResultPiglinAi.mobInteract(ServerLevel level, Piglin piglin, Player player, InteractionHand hand) -
Uses of InteractionResult in net.minecraft.world.entity.npc
Methods in net.minecraft.world.entity.npc that return InteractionResultModifier and TypeMethodDescriptionVillager.mobInteract(Player player, InteractionHand hand) WanderingTrader.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionResult in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player that return InteractionResultModifier and TypeMethodDescriptionPlayer.interactOn(Entity entityToInteractOn, InteractionHand hand) -
Uses of InteractionResult in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle that return InteractionResultModifier and TypeMethodDescriptionAbstractBoat.interact(Player player, InteractionHand hand) AbstractChestBoat.interact(Player player, InteractionHand hand) AbstractMinecartContainer.interact(Player player, InteractionHand hand) Minecart.interact(Player player, InteractionHand hand) MinecartChest.interact(Player player, InteractionHand hand) MinecartCommandBlock.interact(Player player, InteractionHand hand) MinecartFurnace.interact(Player player, InteractionHand hand) default InteractionResultContainerEntity.interactWithContainerVehicle(Player player) -
Uses of InteractionResult in net.minecraft.world.item
Methods in net.minecraft.world.item that return InteractionResultModifier and TypeMethodDescriptionstatic InteractionResultLeadItem.bindPlayerMobs(Player player, Level level, BlockPos pos) DyeItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity target, InteractionHand hand) Try interacting with given entity.Item.interactLivingEntity(ItemStack stack, Player player, LivingEntity interactionTarget, InteractionHand usedHand) Try interacting with given entity.ItemStack.interactLivingEntity(Player player, LivingEntity entity, InteractionHand usedHand) NameTagItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity target, InteractionHand hand) 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 context) static InteractionResultItemUtils.startUsingInstantly(Level level, Player player, InteractionHand hand) static InteractionResultJukeboxPlayable.tryInsertIntoJukebox(Level level, BlockPos pos, ItemStack stack, Player player) BoatItem.use(Level level, Player player, InteractionHand hand) BottleItem.use(Level level, Player player, InteractionHand hand) BowItem.use(Level level, Player player, InteractionHand hand) BucketItem.use(Level level, Player player, InteractionHand hand) BundleItem.use(Level level, Player player, InteractionHand hand) CrossbowItem.use(Level level, Player player, InteractionHand hand) EggItem.use(Level p_41128_, Player p_41129_, InteractionHand p_41130_) EmptyMapItem.use(Level p_41145_, Player p_41146_, InteractionHand p_41147_) EnderEyeItem.use(Level level, Player player, InteractionHand hand) EnderpearlItem.use(Level p_41190_, Player p_41191_, InteractionHand p_41192_) ExperienceBottleItem.use(Level p_41196_, Player p_41197_, InteractionHand p_41198_) FireworkRocketItem.use(Level level, Player player, InteractionHand hand) FishingRodItem.use(Level p_41290_, Player p_41291_, InteractionHand p_41292_) FoodOnAStickItem.use(Level level, Player player, InteractionHand hand) InstrumentItem.use(Level level, Player player, InteractionHand hand) Item.use(Level level, Player player, InteractionHand hand) ItemStack.use(Level level, Player player, InteractionHand hand) KnowledgeBookItem.use(Level p_42824_, Player p_42825_, InteractionHand p_42826_) LingeringPotionItem.use(Level p_42843_, Player p_42844_, InteractionHand p_42845_) PlaceOnWaterBlockItem.use(Level p_220231_, Player p_220232_, InteractionHand p_220233_) SnowballItem.use(Level p_43142_, Player p_43143_, InteractionHand p_43144_) SpawnEggItem.use(Level level, Player player, InteractionHand hand) SplashPotionItem.use(Level p_43243_, Player p_43244_, InteractionHand p_43245_) SpyglassItem.use(Level level, Player player, InteractionHand hand) ThrowablePotionItem.use(Level level, Player player, InteractionHand hand) TridentItem.use(Level p_43405_, Player p_43406_, InteractionHand p_43407_) WindChargeItem.use(Level p_326306_, Player p_326042_, InteractionHand p_326470_) WritableBookItem.use(Level p_43449_, Player p_43450_, InteractionHand p_43451_) WrittenBookItem.use(Level p_43468_, Player p_43469_, InteractionHand p_43470_) ArmorStandItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockAxeItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockBlockItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockBoneMealItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockBrushItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockCompassItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockDebugStickItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockEndCrystalItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockEnderEyeItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockFireChargeItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockFireworkRocketItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockFlintAndSteelItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockHangingEntityItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockHoeItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockHoneycombItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockItemStack.useOn(UseOnContext context) LeadItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockMapItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockMinecartItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockPlaceOnWaterBlockItem.useOn(UseOnContext p_220229_) PotionItem.useOn(UseOnContext p_220235_) ShearsItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockShovelItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockSolidBucketItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockSpawnEggItem.useOn(UseOnContext context) 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.item.component
Methods in net.minecraft.world.item.component that return InteractionResultModifier and TypeMethodDescriptionConsumable.startConsuming(LivingEntity entity, ItemStack stack, InteractionHand hand) -
Uses of InteractionResult in net.minecraft.world.item.equipment
Methods in net.minecraft.world.item.equipment that return InteractionResultModifier and TypeMethodDescriptionEquippable.equipOnTarget(Player player, LivingEntity entity, ItemStack stack) Equippable.swapWithEquipmentSlot(ItemStack stack, Player player) -
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 level, BlockPos pos, BlockState state, Player player) static InteractionResultCaveVines.use(Entity entity, BlockState state, Level level, BlockPos pos) protected InteractionResultAbstractCauldronBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultBeehiveBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCakeBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCampfireBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCandleBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCandleCakeBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCeilingHangingSignBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultChiseledBookShelfBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultComposterBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultDecoratedPotBlock.useItemOn(ItemStack p_316569_, BlockState p_316562_, Level p_316177_, BlockPos p_316898_, Player p_316632_, InteractionHand p_316424_, BlockHitResult p_316345_) protected InteractionResultFlowerPotBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultJukeboxBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultLecternBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultNoteBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultPumpkinBlock.useItemOn(ItemStack p_316383_, BlockState p_316676_, Level p_316272_, BlockPos p_316484_, Player p_316367_, InteractionHand p_316216_, BlockHitResult p_316827_) protected InteractionResultRedStoneOreBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultRespawnAnchorBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultSignBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultSweetBerryBushBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultTntBlock.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 InteractionResultWallHangingSignBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultAbstractFurnaceBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultAnvilBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultBarrelBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultBeaconBlock.useWithoutItem(BlockState p_49432_, Level p_49433_, BlockPos p_49434_, Player p_49435_, BlockHitResult p_49437_) protected InteractionResultBedBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultBellBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultBrewingStandBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultButtonBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultCakeBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultCandleCakeBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultCartographyTableBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) 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 state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultChiseledBookShelfBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultCommandBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultComparatorBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultComposterBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultCrafterBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultCraftingTableBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultDaylightDetectorBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultDecoratedPotBlock.useWithoutItem(BlockState p_316866_, Level p_316544_, BlockPos p_316541_, Player p_316732_, BlockHitResult p_316860_) protected InteractionResultDispenserBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultDoorBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultDragonEggBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultEnchantingTableBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultEnderChestBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultFenceBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultFenceGateBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultFletchingTableBlock.useWithoutItem(BlockState p_53501_, Level p_53502_, BlockPos p_53503_, Player p_53504_, BlockHitResult p_53506_) protected InteractionResultFlowerPotBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultGrindstoneBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultHopperBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultJigsawBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultJukeboxBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultLecternBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultLeverBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultLightBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultLoomBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultNoteBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultRedStoneWireBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultRepeaterBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultRespawnAnchorBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultShulkerBoxBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultSignBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultSmithingTableBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultStonecutterBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultStructureBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultSweetBerryBushBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultTestBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultTestInstanceBlock.useWithoutItem(BlockState p_397015_, Level p_397062_, BlockPos p_397232_, Player p_397809_, BlockHitResult p_397307_) protected InteractionResultTrapDoorBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) -
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 state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) -
Uses of InteractionResult in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state that return InteractionResultModifier and TypeMethodDescriptionBlockBehaviour.BlockStateBase.useItemOn(ItemStack stack, Level level, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultBlockBehaviour.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) BlockBehaviour.BlockStateBase.useWithoutItem(Level level, Player player, BlockHitResult hitResult) protected InteractionResultBlockBehaviour.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) -
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
Methods in net.neoforged.neoforge.event that return InteractionResultModifier and TypeMethodDescriptionstatic InteractionResultEventHooks.onArrowNock(ItemStack item, Level level, Player player, InteractionHand hand, boolean hasAmmo) -
Uses of InteractionResult in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as InteractionResultModifier and TypeFieldDescriptionprivate InteractionResultArrowNockEvent.actionprivate InteractionResultPlayerInteractEvent.EntityInteract.cancellationResultprivate InteractionResultPlayerInteractEvent.EntityInteractSpecific.cancellationResultprivate InteractionResultPlayerInteractEvent.RightClickBlock.cancellationResultprivate InteractionResultPlayerInteractEvent.RightClickItem.cancellationResultprivate InteractionResultUseItemOnBlockEvent.cancellationResultMethods in net.neoforged.neoforge.event.entity.player that return InteractionResultModifier and TypeMethodDescriptionArrowNockEvent.getAction()PlayerInteractEvent.EntityInteract.getCancellationResult()PlayerInteractEvent.EntityInteractSpecific.getCancellationResult()PlayerInteractEvent.RightClickBlock.getCancellationResult()PlayerInteractEvent.RightClickItem.getCancellationResult()UseItemOnBlockEvent.getCancellationResult()Methods in net.neoforged.neoforge.event.entity.player with parameters of type InteractionResultModifier and TypeMethodDescriptionvoidUseItemOnBlockEvent.cancelWithResult(InteractionResult 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.voidArrowNockEvent.setAction(InteractionResult action) voidPlayerInteractEvent.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.voidUseItemOnBlockEvent.setCancellationResult(InteractionResult result) Set theInteractionResultthat will be returned to vanilla if the event is cancelled, instead of calling the relevant method of the event.