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 pPlayer, Entity pTarget, InteractionHand pHand) Handles right-clicking an entity, sends a packet to the server.MultiPlayerGameMode.interactAt
(Player pPlayer, Entity pTarget, EntityHitResult pRay, InteractionHand pHand) Handles right-clicking an entity from the entities side, sends a packet to the server.private InteractionResult
MultiPlayerGameMode.performUseItemOn
(LocalPlayer pPlayer, InteractionHand pHand, BlockHitResult pResult) MultiPlayerGameMode.useItem
(Player pPlayer, InteractionHand pHand) MultiPlayerGameMode.useItemOn
(LocalPlayer pPlayer, InteractionHand pHand, BlockHitResult pResult) -
Uses of InteractionResult in net.minecraft.core.cauldron
Methods in net.minecraft.core.cauldron that return InteractionResultModifier and TypeMethodDescriptionprivate static InteractionResult
CauldronInteraction.bannerInteraction
(BlockState p_365039_, Level p_360792_, BlockPos p_364354_, Player p_362948_, InteractionHand p_363589_, ItemStack p_365256_) private static InteractionResult
CauldronInteraction.dyedItemIteration
(BlockState p_364488_, Level p_363832_, BlockPos p_363503_, Player p_362213_, InteractionHand p_360757_, ItemStack p_360363_) static InteractionResult
CauldronInteraction.emptyBucket
(Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pFilledStack, BlockState pState, SoundEvent pEmptySound) static InteractionResult
CauldronInteraction.fillBucket
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pEmptyStack, ItemStack pFilledStack, Predicate<BlockState> pStatePredicate, SoundEvent pFillSound) private static InteractionResult
CauldronInteraction.fillLavaInteraction
(BlockState p_360382_, Level p_365170_, BlockPos p_361603_, Player p_365069_, InteractionHand p_360292_, ItemStack p_364835_) private static InteractionResult
CauldronInteraction.fillPowderSnowInteraction
(BlockState p_361682_, Level p_362979_, BlockPos p_361996_, Player p_361273_, InteractionHand p_361726_, ItemStack p_361338_) private static InteractionResult
CauldronInteraction.fillWaterInteraction
(BlockState p_362955_, Level p_363378_, BlockPos p_363149_, Player p_364905_, InteractionHand p_361406_, ItemStack p_361413_) CauldronInteraction.interact
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pStack) private static InteractionResult
CauldronInteraction.shulkerBoxInteraction
(BlockState p_360793_, Level p_365272_, BlockPos p_361319_, Player p_365441_, InteractionHand p_361085_, ItemStack p_365174_) -
Uses of InteractionResult in net.minecraft.server.level
Methods in net.minecraft.server.level that return InteractionResultModifier and TypeMethodDescriptionDemoMode.useItem
(ServerPlayer pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand) ServerPlayerGameMode.useItem
(ServerPlayer pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand) DemoMode.useItemOn
(ServerPlayer pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand, BlockHitResult pHitResult) ServerPlayerGameMode.useItemOn
(ServerPlayer pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand, BlockHitResult pHitResult) -
Uses of InteractionResult in net.minecraft.server.network
Methods in net.minecraft.server.network that return InteractionResultModifier and TypeMethodDescriptionServerGamePacketListenerImpl.EntityInteraction.run
(ServerPlayer pPlayer, Entity pEntity, InteractionHand pHand) -
Uses of InteractionResult in net.minecraft.world
Classes in net.minecraft.world that implement InteractionResultModifier and TypeClassDescriptionstatic final record
static final record
static final record
static final record
-
Uses of InteractionResult in net.minecraft.world.entity
Methods in net.minecraft.world.entity that return InteractionResultModifier and TypeMethodDescriptionprivate InteractionResult
Mob.checkAndHandleImportantInteractions
(Player pPlayer, InteractionHand pHand) Entity.interact
(Player pPlayer, InteractionHand pHand) Interaction.interact
(Player pPlayer, InteractionHand pHand) final InteractionResult
Mob.interact
(Player pPlayer, InteractionHand pHand) Entity.interactAt
(Player pPlayer, Vec3 pVec, InteractionHand pHand) Applies the given player interaction to this Entity.protected InteractionResult
Mob.mobInteract
(Player pPlayer, InteractionHand pHand) -
Uses of InteractionResult in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal that return InteractionResultModifier and TypeMethodDescriptionAbstractCow.mobInteract
(Player p_401345_, InteractionHand p_401405_) protected InteractionResult
AbstractFish.mobInteract
(Player pPlayer, InteractionHand pHand) Animal.mobInteract
(Player pPlayer, InteractionHand pHand) Bee.mobInteract
(Player pPlayer, InteractionHand pHand) Cat.mobInteract
(Player pPlayer, InteractionHand pHand) protected InteractionResult
Dolphin.mobInteract
(Player pPlayer, InteractionHand pHand) HappyGhast.mobInteract
(Player pPlayer, InteractionHand pHand) protected InteractionResult
IronGolem.mobInteract
(Player pPlayer, InteractionHand pHand) MushroomCow.mobInteract
(Player pPlayer, InteractionHand pHand) Ocelot.mobInteract
(Player pPlayer, InteractionHand pHand) Panda.mobInteract
(Player pPlayer, InteractionHand pHand) Parrot.mobInteract
(Player pPlayer, InteractionHand pHand) Pig.mobInteract
(Player pPlayer, InteractionHand pHand) protected InteractionResult
SnowGolem.mobInteract
(Player pPlayer, InteractionHand pHand) Methods in net.minecraft.world.entity.animal that return types with arguments of type InteractionResultModifier and TypeMethodDescriptionstatic <T extends LivingEntity & Bucketable>
Optional<InteractionResult> Bucketable.bucketMobPickup
(Player pPlayer, InteractionHand pHand, T pEntity) -
Uses of InteractionResult in net.minecraft.world.entity.animal.allay
Methods in net.minecraft.world.entity.animal.allay that return InteractionResultModifier and TypeMethodDescriptionprotected InteractionResult
Allay.mobInteract
(Player pPlayer, InteractionHand pHand) -
Uses of InteractionResult in net.minecraft.world.entity.animal.armadillo
Methods in net.minecraft.world.entity.animal.armadillo that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.animal.goat
Methods in net.minecraft.world.entity.animal.goat that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse that return InteractionResultModifier and TypeMethodDescriptionAbstractChestedHorse.mobInteract
(Player pPlayer, InteractionHand pHand) AbstractHorse.mobInteract
(Player pPlayer, InteractionHand pHand) Horse.mobInteract
(Player pPlayer, InteractionHand pHand) SkeletonHorse.mobInteract
(Player pPlayer, InteractionHand pHand) ZombieHorse.mobInteract
(Player pPlayer, InteractionHand pHand) -
Uses of InteractionResult in net.minecraft.world.entity.animal.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 pPlayer, InteractionHand pHand) LeashFenceKnotEntity.interact
(Player pPlayer, InteractionHand pHand) ArmorStand.interactAt
(Player pPlayer, Vec3 pVec, InteractionHand pHand) Applies the given player interaction to this Entity. -
Uses of InteractionResult in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster that return InteractionResultModifier and TypeMethodDescriptionprotected InteractionResult
Bogged.mobInteract
(Player pPlayer, InteractionHand pHand) protected InteractionResult
Creeper.mobInteract
(Player pPlayer, InteractionHand pHand) Strider.mobInteract
(Player pPlayer, InteractionHand pHand) ZombieVillager.mobInteract
(Player pPlayer, InteractionHand pHand) -
Uses of InteractionResult in net.minecraft.world.entity.monster.hoglin
Methods in net.minecraft.world.entity.monster.hoglin that return InteractionResult -
Uses of InteractionResult in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin that return InteractionResultModifier and TypeMethodDescriptionPiglin.mobInteract
(Player pPlayer, InteractionHand pHand) static InteractionResult
PiglinAi.mobInteract
(ServerLevel pLevel, Piglin pPiglin, Player pPlayer, InteractionHand pHand) -
Uses of InteractionResult in net.minecraft.world.entity.npc
Methods in net.minecraft.world.entity.npc that return InteractionResultModifier and TypeMethodDescriptionVillager.mobInteract
(Player pPlayer, InteractionHand pHand) WanderingTrader.mobInteract
(Player pPlayer, InteractionHand pHand) -
Uses of InteractionResult in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player that return InteractionResultModifier and TypeMethodDescriptionPlayer.interactOn
(Entity pEntityToInteractOn, InteractionHand pHand) -
Uses of InteractionResult in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle that return InteractionResultModifier and TypeMethodDescriptionAbstractBoat.interact
(Player pPlayer, InteractionHand pHand) AbstractChestBoat.interact
(Player pPlayer, InteractionHand pHand) AbstractMinecartContainer.interact
(Player pPlayer, InteractionHand pHand) Minecart.interact
(Player pPlayer, InteractionHand pHand) MinecartChest.interact
(Player pPlayer, InteractionHand pHand) MinecartCommandBlock.interact
(Player pPlayer, InteractionHand pHand) MinecartFurnace.interact
(Player pPlayer, InteractionHand pHand) default InteractionResult
ContainerEntity.interactWithContainerVehicle
(Player pPlayer) -
Uses of InteractionResult in net.minecraft.world.item
Methods in net.minecraft.world.item that return InteractionResultModifier and TypeMethodDescriptionstatic InteractionResult
LeadItem.bindPlayerMobs
(Player pPlayer, Level pLevel, BlockPos pPos) DyeItem.interactLivingEntity
(ItemStack pStack, Player pPlayer, LivingEntity pTarget, InteractionHand pHand) Try interacting with given entity.Item.interactLivingEntity
(ItemStack pStack, Player pPlayer, LivingEntity pInteractionTarget, InteractionHand pUsedHand) Try interacting with given entity.ItemStack.interactLivingEntity
(Player pPlayer, LivingEntity pEntity, InteractionHand pUsedHand) NameTagItem.interactLivingEntity
(ItemStack pStack, Player pPlayer, LivingEntity pTarget, InteractionHand pHand) Try interacting with given entity.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 InteractionResult
ItemStack.onItemUse
(UseOnContext p_41662_, Function<UseOnContext, InteractionResult> callback) ItemStack.onItemUseFirst
(UseOnContext p_41662_) BlockItem.place
(BlockPlaceContext pContext) static InteractionResult
ItemUtils.startUsingInstantly
(Level pLevel, Player pPlayer, InteractionHand pHand) static InteractionResult
JukeboxPlayable.tryInsertIntoJukebox
(Level pLevel, BlockPos pPos, ItemStack pStack, Player pPlayer) BoatItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) BottleItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) BowItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) BucketItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) BundleItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) CrossbowItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) 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 pLevel, Player pPlayer, InteractionHand pHand) 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 pLevel, Player pPlayer, InteractionHand pHand) FishingRodItem.use
(Level p_41290_, Player p_41291_, InteractionHand p_41292_) FoodOnAStickItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) InstrumentItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) Item.use
(Level pLevel, Player pPlayer, InteractionHand pHand) ItemStack.use
(Level pLevel, Player pPlayer, InteractionHand pHand) 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 pLevel, Player pPlayer, InteractionHand pHand) SplashPotionItem.use
(Level p_43243_, Player p_43244_, InteractionHand p_43245_) SpyglassItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) ThrowablePotionItem.use
(Level pLevel, Player pPlayer, InteractionHand pHand) 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 pContext) Called when this item is used when targeting a BlockAxeItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockBlockItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockBoneMealItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockBrushItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockCompassItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockDebugStickItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockEndCrystalItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockEnderEyeItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockFireChargeItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockFireworkRocketItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockFlintAndSteelItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockHangingEntityItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockHoeItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockHoneycombItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockItemStack.useOn
(UseOnContext pContext) LeadItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockMapItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockMinecartItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockPlaceOnWaterBlockItem.useOn
(UseOnContext p_220229_) PotionItem.useOn
(UseOnContext p_220235_) ShearsItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockShovelItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockSolidBucketItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockSpawnEggItem.useOn
(UseOnContext pContext) Called when this item is used when targeting a BlockMethod parameters in net.minecraft.world.item with type arguments of type InteractionResultModifier and TypeMethodDescriptionprivate InteractionResult
ItemStack.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 pEntity, ItemStack pStack, InteractionHand pHand) -
Uses of InteractionResult in net.minecraft.world.item.equipment
Methods in net.minecraft.world.item.equipment that return InteractionResultModifier and TypeMethodDescriptionEquippable.equipOnTarget
(Player pPlayer, LivingEntity pEntity, ItemStack pStack) Equippable.swapWithEquipmentSlot
(ItemStack pStack, Player pPlayer) -
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 InteractionResult
CakeBlock.eat
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, Player pPlayer) static InteractionResult
CaveVines.use
(Entity pEntity, BlockState pState, Level pLevel, BlockPos pPos) protected InteractionResult
AbstractCauldronBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
BeehiveBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
CakeBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
CampfireBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
CandleBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
CandleCakeBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
CeilingHangingSignBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
ChiseledBookShelfBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
ComposterBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
DecoratedPotBlock.useItemOn
(ItemStack p_316569_, BlockState p_316562_, Level p_316177_, BlockPos p_316898_, Player p_316632_, InteractionHand p_316424_, BlockHitResult p_316345_) protected InteractionResult
FlowerPotBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
JukeboxBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
LecternBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
NoteBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
PumpkinBlock.useItemOn
(ItemStack p_316383_, BlockState p_316676_, Level p_316272_, BlockPos p_316484_, Player p_316367_, InteractionHand p_316216_, BlockHitResult p_316827_) protected InteractionResult
RedStoneOreBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
RespawnAnchorBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
SignBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
SweetBerryBushBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
TntBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) VaultBlock.useItemOn
(ItemStack p_324161_, BlockState p_323816_, Level p_324403_, BlockPos p_324623_, Player p_324219_, InteractionHand p_324416_, BlockHitResult p_324261_) protected InteractionResult
WallHangingSignBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
AbstractFurnaceBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
AnvilBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
BarrelBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
BeaconBlock.useWithoutItem
(BlockState p_49432_, Level p_49433_, BlockPos p_49434_, Player p_49435_, BlockHitResult p_49437_) protected InteractionResult
BedBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
BellBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
BrewingStandBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
ButtonBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CakeBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CandleCakeBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CartographyTableBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CaveVinesBlock.useWithoutItem
(BlockState p_152980_, Level p_152981_, BlockPos p_152982_, Player p_152983_, BlockHitResult p_152985_) protected InteractionResult
CaveVinesPlantBlock.useWithoutItem
(BlockState p_153021_, Level p_153022_, BlockPos p_153023_, Player p_153024_, BlockHitResult p_153026_) protected InteractionResult
ChestBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
ChiseledBookShelfBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CommandBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
ComparatorBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
ComposterBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CrafterBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CraftingTableBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
DaylightDetectorBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
DecoratedPotBlock.useWithoutItem
(BlockState p_316866_, Level p_316544_, BlockPos p_316541_, Player p_316732_, BlockHitResult p_316860_) protected InteractionResult
DispenserBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
DoorBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
DragonEggBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
EnchantingTableBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
EnderChestBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
FenceBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
FenceGateBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
FletchingTableBlock.useWithoutItem
(BlockState p_53501_, Level p_53502_, BlockPos p_53503_, Player p_53504_, BlockHitResult p_53506_) protected InteractionResult
FlowerPotBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
GrindstoneBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
HopperBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
JigsawBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
JukeboxBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
LecternBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
LeverBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
LightBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
LoomBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
NoteBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
RedStoneWireBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
RepeaterBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
RespawnAnchorBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
ShulkerBoxBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
SignBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
SmithingTableBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
StonecutterBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
StructureBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
SweetBerryBushBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
TestBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
TestInstanceBlock.useWithoutItem
(BlockState p_397015_, Level p_397062_, BlockPos p_397232_, Player p_397809_, BlockHitResult p_397307_) protected InteractionResult
TrapDoorBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) -
Uses of InteractionResult in net.minecraft.world.level.block.piston
Methods in net.minecraft.world.level.block.piston that return InteractionResultModifier and TypeMethodDescriptionprotected InteractionResult
MovingPistonBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) -
Uses of InteractionResult in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state that return InteractionResultModifier and TypeMethodDescriptionBlockBehaviour.BlockStateBase.useItemOn
(ItemStack pStack, Level pLevel, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
BlockBehaviour.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) BlockBehaviour.BlockStateBase.useWithoutItem
(Level pLevel, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
BlockBehaviour.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) -
Uses of InteractionResult in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common that return InteractionResultModifier and TypeMethodDescriptionstatic @Nullable InteractionResult
CommonHooks.onInteractEntity
(Player player, Entity entity, InteractionHand hand) static @Nullable InteractionResult
CommonHooks.onInteractEntityAt
(Player player, Entity entity, HitResult ray, InteractionHand hand) static @Nullable InteractionResult
CommonHooks.onInteractEntityAt
(Player player, Entity entity, Vec3 vec3d, InteractionHand hand) static @Nullable InteractionResult
CommonHooks.onItemRightClick
(Player player, InteractionHand hand) static InteractionResult
CommonHooks.onPlaceItemIntoWorld
(UseOnContext context) -
Uses of InteractionResult in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return InteractionResultModifier and TypeMethodDescriptiondefault InteractionResult
IItemExtension.onItemUseFirst
(ItemStack stack, UseOnContext context) This is called when the item is used, before the block is activated.default InteractionResult
IItemStackExtension.onItemUseFirst
(UseOnContext context) -
Uses of InteractionResult in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event that return InteractionResultModifier and TypeMethodDescriptionstatic InteractionResult
EventHooks.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 InteractionResult
ArrowNockEvent.action
private InteractionResult
PlayerInteractEvent.EntityInteract.cancellationResult
private InteractionResult
PlayerInteractEvent.EntityInteractSpecific.cancellationResult
private InteractionResult
PlayerInteractEvent.RightClickBlock.cancellationResult
private InteractionResult
PlayerInteractEvent.RightClickItem.cancellationResult
private InteractionResult
UseItemOnBlockEvent.cancellationResult
Methods 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 TypeMethodDescriptionvoid
UseItemOnBlockEvent.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.void
ArrowNockEvent.setAction
(InteractionResult action) void
PlayerInteractEvent.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.void
PlayerInteractEvent.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.void
PlayerInteractEvent.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.void
PlayerInteractEvent.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.void
UseItemOnBlockEvent.setCancellationResult
(InteractionResult result) Set theInteractionResult
that will be returned to vanilla if the event is cancelled, instead of calling the relevant method of the event.