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 entity, EntityHitResult hitResult, InteractionHand hand) private InteractionResultMultiPlayerGameMode.performUseItemOn(LocalPlayer player, InteractionHand hand, BlockHitResult blockHit) MultiPlayerGameMode.useItem(Player player, InteractionHand hand) MultiPlayerGameMode.useItemOn(LocalPlayer player, InteractionHand hand, BlockHitResult blockHit) -
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 itemInHand) private static InteractionResultCauldronInteraction.dyedItemIteration(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) static InteractionResultCauldronInteraction.emptyBucket(Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand, BlockState newState, SoundEvent soundEvent) static InteractionResultCauldronInteraction.fillBucket(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand, ItemStack newItem, Predicate<BlockState> canFill, SoundEvent soundEvent) private static InteractionResultCauldronInteraction.fillLavaInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) private static InteractionResultCauldronInteraction.fillPowderSnowInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) private static InteractionResultCauldronInteraction.fillWaterInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) CauldronInteraction.interact(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) private static InteractionResultCauldronInteraction.shulkerBoxInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) -
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 itemStack, InteractionHand hand) ServerPlayerGameMode.useItem(ServerPlayer player, Level level, ItemStack itemStack, InteractionHand hand) DemoMode.useItemOn(ServerPlayer player, Level level, ItemStack itemStack, InteractionHand hand, BlockHitResult hitResult) ServerPlayerGameMode.useItemOn(ServerPlayer player, Level level, ItemStack itemStack, InteractionHand hand, BlockHitResult hitResult) -
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, Vec3 location) Interaction.interact(Player player, InteractionHand hand, Vec3 location) Mob.interact(Player player, InteractionHand hand, Vec3 location) protected InteractionResultAgeableMob.mobInteract(Player player, InteractionHand hand) 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 InteractionResultMethods 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 pickupEntity) -
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.bee
Methods in net.minecraft.world.entity.animal.bee that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel that return InteractionResultModifier and TypeMethodDescriptionCamelHusk.interact(Player player, InteractionHand hand, Vec3 location) Camel.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionResult in net.minecraft.world.entity.animal.cow
Methods in net.minecraft.world.entity.animal.cow that return InteractionResultModifier and TypeMethodDescriptionAbstractCow.mobInteract(Player player, InteractionHand hand) MushroomCow.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionResult in net.minecraft.world.entity.animal.dolphin
Methods in net.minecraft.world.entity.animal.dolphin that return InteractionResultModifier and TypeMethodDescriptionprotected InteractionResultDolphin.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionResult in net.minecraft.world.entity.animal.equine
Methods in net.minecraft.world.entity.animal.equine that return InteractionResultModifier and TypeMethodDescriptionZombieHorse.interact(Player player, InteractionHand hand, Vec3 location) AbstractChestedHorse.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.feline
Methods in net.minecraft.world.entity.animal.feline that return InteractionResultModifier and TypeMethodDescriptionCat.mobInteract(Player player, InteractionHand hand) Ocelot.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionResult in net.minecraft.world.entity.animal.fish
Methods in net.minecraft.world.entity.animal.fish that return InteractionResultModifier and TypeMethodDescriptionprotected InteractionResultAbstractFish.mobInteract(Player player, InteractionHand hand) -
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.golem
Methods in net.minecraft.world.entity.animal.golem that return InteractionResultModifier and TypeMethodDescriptionCopperGolem.mobInteract(Player player, InteractionHand hand) protected InteractionResultIronGolem.mobInteract(Player player, InteractionHand hand) protected InteractionResultSnowGolem.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionResult in net.minecraft.world.entity.animal.happyghast
Methods in net.minecraft.world.entity.animal.happyghast that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.animal.nautilus
Methods in net.minecraft.world.entity.animal.nautilus that return InteractionResultModifier and TypeMethodDescriptionAbstractNautilus.interact(Player player, InteractionHand hand, Vec3 location) AbstractNautilus.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionResult in net.minecraft.world.entity.animal.panda
Methods in net.minecraft.world.entity.animal.panda that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.animal.parrot
Methods in net.minecraft.world.entity.animal.parrot that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.animal.pig
Methods in net.minecraft.world.entity.animal.pig that return InteractionResult -
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 TypeMethodDescriptionArmorStand.interact(Player player, InteractionHand hand, Vec3 location) ItemFrame.interact(Player player, InteractionHand hand, Vec3 location) LeashFenceKnotEntity.interact(Player player, InteractionHand hand, Vec3 location) -
Uses of InteractionResult in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster that return InteractionResultModifier and TypeMethodDescriptionprotected InteractionResultCreeper.mobInteract(Player player, InteractionHand hand) Strider.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 body, Player player, InteractionHand hand) -
Uses of InteractionResult in net.minecraft.world.entity.monster.skeleton
Methods in net.minecraft.world.entity.monster.skeleton that return InteractionResultModifier and TypeMethodDescriptionprotected InteractionResultBogged.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionResult in net.minecraft.world.entity.monster.zombie
Methods in net.minecraft.world.entity.monster.zombie that return InteractionResultModifier and TypeMethodDescriptionZombieVillager.mobInteract(Player player, InteractionHand hand) -
Uses of InteractionResult in net.minecraft.world.entity.npc.villager
Methods in net.minecraft.world.entity.npc.villager that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.npc.wanderingtrader
Methods in net.minecraft.world.entity.npc.wanderingtrader that return InteractionResultModifier and TypeMethodDescriptionWanderingTrader.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 entity, InteractionHand hand, Vec3 location) -
Uses of InteractionResult in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle that return InteractionResultModifier and TypeMethodDescriptiondefault InteractionResultContainerEntity.interactWithContainerVehicle(Player player) -
Uses of InteractionResult in net.minecraft.world.entity.vehicle.boat
Methods in net.minecraft.world.entity.vehicle.boat that return InteractionResultModifier and TypeMethodDescriptionAbstractBoat.interact(Player player, InteractionHand hand, Vec3 location) AbstractChestBoat.interact(Player player, InteractionHand hand, Vec3 location) -
Uses of InteractionResult in net.minecraft.world.entity.vehicle.minecart
Methods in net.minecraft.world.entity.vehicle.minecart that return InteractionResultModifier and TypeMethodDescriptionAbstractMinecartContainer.interact(Player player, InteractionHand hand, Vec3 location) Minecart.interact(Player player, InteractionHand hand, Vec3 location) MinecartChest.interact(Player player, InteractionHand hand, Vec3 location) MinecartCommandBlock.interact(Player player, InteractionHand hand, Vec3 location) MinecartFurnace.interact(Player player, InteractionHand hand, Vec3 location) -
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 itemStack, Player player, LivingEntity target, InteractionHand type) Try interacting with given entity.Item.interactLivingEntity(ItemStack itemStack, Player player, LivingEntity target, InteractionHand type) Try interacting with given entity.ItemStack.interactLivingEntity(Player player, LivingEntity target, InteractionHand hand) NameTagItem.interactLivingEntity(ItemStack itemStack, Player player, LivingEntity target, InteractionHand type) Try interacting with given entity.ShearsItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity entity, InteractionHand hand) Neo: Migrate shear behavior intoShearsItem.interactLivingEntity(ItemStack, Player, LivingEntity, InteractionHand)to call into IShearable instead of relying onMob.mobInteract(Player, InteractionHand)private InteractionResultItemStack.onItemUse(UseOnContext context, Function<UseOnContext, InteractionResult> callback) ItemStack.onItemUseFirst(UseOnContext context) BlockItem.place(BlockPlaceContext placeContext) private static InteractionResultSpawnEggItem.spawnMob(@Nullable LivingEntity user, ItemStack itemStack, Level level, BlockPos spawnPos, boolean tryMoveDown, boolean movedUp) static InteractionResultItemUtils.startUsingInstantly(Level level, Player player, InteractionHand hand) static InteractionResultJukeboxPlayable.tryInsertIntoJukebox(Level level, BlockPos pos, ItemStack toInsert, 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 level, Player player, InteractionHand hand) EmptyMapItem.use(Level level, Player player, InteractionHand hand) EnderEyeItem.use(Level level, Player player, InteractionHand hand) EnderpearlItem.use(Level level, Player player, InteractionHand hand) ExperienceBottleItem.use(Level level, Player player, InteractionHand hand) FireworkRocketItem.use(Level level, Player player, InteractionHand hand) FishingRodItem.use(Level level, Player player, InteractionHand hand) 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 level, Player player, InteractionHand hand) LingeringPotionItem.use(Level level, Player player, InteractionHand hand) PlaceOnWaterBlockItem.use(Level level, Player player, InteractionHand hand) SnowballItem.use(Level level, Player player, InteractionHand hand) SpawnEggItem.use(Level level, Player player, InteractionHand hand) SplashPotionItem.use(Level level, Player player, InteractionHand hand) SpyglassItem.use(Level level, Player player, InteractionHand hand) ThrowablePotionItem.use(Level level, Player player, InteractionHand hand) TridentItem.use(Level level, Player player, InteractionHand hand) WindChargeItem.use(Level level, Player player, InteractionHand hand) WritableBookItem.use(Level level, Player player, InteractionHand hand) WrittenBookItem.use(Level level, Player player, InteractionHand hand) 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) CompassItem.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) Item.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 context) PotionItem.useOn(UseOnContext context) ShearsItem.useOn(UseOnContext context) ShovelItem.useOn(UseOnContext context) Called when this item is used when targeting a BlockSolidBucketItem.useOn(UseOnContext context) SpawnEggItem.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 context, 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 user, 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 target, ItemStack itemStack) Equippable.swapWithEquipmentSlot(ItemStack inHand, Player player) -
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 sourceEntity, BlockState state, Level level, BlockPos pos) protected InteractionResultAbstractCauldronBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultBeehiveBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCakeBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCampfireBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCandleBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCandleCakeBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCeilingHangingSignBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultChiseledBookShelfBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultComposterBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCopperGolemStatueBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultDecoratedPotBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultFlowerPotBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultJukeboxBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultLecternBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultNoteBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultPumpkinBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultRedStoneOreBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultRespawnAnchorBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultShelfBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultSignBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultSweetBerryBushBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultTntBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) VaultBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultWallHangingSignBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultWeatheringCopperGolemStatueBlock.useItemOn(ItemStack itemStack, 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 state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) 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 state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultCaveVinesPlantBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) 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 state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) 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 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 stateBefore, 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 state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) 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 itemStack, Level level, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultBlockBehaviour.useItemOn(ItemStack itemStack, 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.