Uses of Enum Class
net.minecraft.world.InteractionResult
Package
Description
-
Uses of InteractionResult in net.minecraft.client.multiplayer
Modifier and TypeMethodDescriptionMultiPlayerGameMode.interact
(Player p_105227_, Entity p_105228_, InteractionHand p_105229_) MultiPlayerGameMode.interactAt
(Player p_105231_, Entity p_105232_, EntityHitResult p_105233_, InteractionHand p_105234_) private InteractionResult
MultiPlayerGameMode.performUseItemOn
(LocalPlayer p_233747_, InteractionHand p_233748_, BlockHitResult p_233749_) MultiPlayerGameMode.useItem
(Player p_233722_, InteractionHand p_233723_) MultiPlayerGameMode.useItemOn
(LocalPlayer p_233733_, InteractionHand p_233734_, BlockHitResult p_233735_) -
Uses of InteractionResult in net.minecraft.server.level
Modifier and TypeMethodDescriptionDemoMode.useItem
(ServerPlayer p_140742_, Level p_140743_, ItemStack p_140744_, InteractionHand p_140745_) ServerPlayerGameMode.useItem
(ServerPlayer p_9262_, Level p_9263_, ItemStack p_9264_, InteractionHand p_9265_) DemoMode.useItemOn
(ServerPlayer p_140747_, Level p_140748_, ItemStack p_140749_, InteractionHand p_140750_, BlockHitResult p_140751_) ServerPlayerGameMode.useItemOn
(ServerPlayer p_9266_, Level p_9267_, ItemStack p_9268_, InteractionHand p_9269_, BlockHitResult p_9270_) -
Uses of InteractionResult in net.minecraft.server.network
Modifier and TypeMethodDescriptionServerGamePacketListenerImpl.EntityInteraction.run
(ServerPlayer p_143695_, Entity p_143696_, InteractionHand p_143697_) -
Uses of InteractionResult in net.minecraft.world
Modifier and TypeMethodDescriptionInteractionResultHolder.getResult()
ItemInteractionResult.result()
static InteractionResult
InteractionResult.sidedSuccess
(boolean p_19079_) static InteractionResult
Returns the enum constant of this class with the specified name.static InteractionResult[]
InteractionResult.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of InteractionResult in net.minecraft.world.entity
Modifier and TypeMethodDescriptionprivate InteractionResult
Mob.checkAndHandleImportantInteractions
(Player p_21500_, InteractionHand p_21501_) Entity.interact
(Player p_19978_, InteractionHand p_19979_) Interaction.interact
(Player p_273507_, InteractionHand p_273048_) final InteractionResult
Mob.interact
(Player p_21420_, InteractionHand p_21421_) Entity.interactAt
(Player p_19980_, Vec3 p_19981_, InteractionHand p_19982_) protected InteractionResult
Mob.mobInteract
(Player p_21472_, InteractionHand p_21473_) -
Uses of InteractionResult in net.minecraft.world.entity.animal
Modifier and TypeMethodDescriptionprotected InteractionResult
AbstractFish.mobInteract
(Player p_27477_, InteractionHand p_27478_) Animal.mobInteract
(Player p_27584_, InteractionHand p_27585_) Cat.mobInteract
(Player p_28153_, InteractionHand p_28154_) Cow.mobInteract
(Player p_28298_, InteractionHand p_28299_) protected InteractionResult
Dolphin.mobInteract
(Player p_28359_, InteractionHand p_28360_) protected InteractionResult
IronGolem.mobInteract
(Player p_28861_, InteractionHand p_28862_) MushroomCow.mobInteract
(Player p_28941_, InteractionHand p_28942_) Ocelot.mobInteract
(Player p_29021_, InteractionHand p_29022_) Panda.mobInteract
(Player p_29123_, InteractionHand p_29124_) Parrot.mobInteract
(Player p_29414_, InteractionHand p_29415_) Pig.mobInteract
(Player p_29489_, InteractionHand p_29490_) Sheep.mobInteract
(Player p_29853_, InteractionHand p_29854_) protected InteractionResult
SnowGolem.mobInteract
(Player p_29920_, InteractionHand p_29921_) Wolf.mobInteract
(Player p_30412_, InteractionHand p_30413_) Modifier and TypeMethodDescriptionstatic <T extends LivingEntity & Bucketable>
Optional<InteractionResult> Bucketable.bucketMobPickup
(Player p_148829_, InteractionHand p_148830_, T p_148831_) -
Uses of InteractionResult in net.minecraft.world.entity.animal.allay
Modifier and TypeMethodDescriptionprotected InteractionResult
Allay.mobInteract
(Player p_218361_, InteractionHand p_218362_) -
Uses of InteractionResult in net.minecraft.world.entity.animal.armadillo
Modifier and TypeMethodDescriptionArmadillo.mobInteract
(Player p_316559_, InteractionHand p_316119_) -
Uses of InteractionResult in net.minecraft.world.entity.animal.axolotl
Modifier and TypeMethodDescriptionAxolotl.mobInteract
(Player p_149155_, InteractionHand p_149156_) -
Uses of InteractionResult in net.minecraft.world.entity.animal.camel
-
Uses of InteractionResult in net.minecraft.world.entity.animal.frog
Modifier and TypeMethodDescriptionTadpole.mobInteract
(Player p_218703_, InteractionHand p_218704_) -
Uses of InteractionResult in net.minecraft.world.entity.animal.goat
-
Uses of InteractionResult in net.minecraft.world.entity.animal.horse
Modifier and TypeMethodDescriptionAbstractChestedHorse.mobInteract
(Player p_30493_, InteractionHand p_30494_) AbstractHorse.mobInteract
(Player p_252289_, InteractionHand p_248927_) Horse.mobInteract
(Player p_30713_, InteractionHand p_30714_) SkeletonHorse.mobInteract
(Player p_30904_, InteractionHand p_30905_) ZombieHorse.mobInteract
(Player p_31001_, InteractionHand p_31002_) -
Uses of InteractionResult in net.minecraft.world.entity.animal.sniffer
Modifier and TypeMethodDescriptionSniffer.mobInteract
(Player p_273046_, InteractionHand p_272687_) -
Uses of InteractionResult in net.minecraft.world.entity.decoration
Modifier and TypeMethodDescriptionItemFrame.interact
(Player p_31787_, InteractionHand p_31788_) LeashFenceKnotEntity.interact
(Player p_31842_, InteractionHand p_31843_) ArmorStand.interactAt
(Player p_31594_, Vec3 p_31595_, InteractionHand p_31596_) -
Uses of InteractionResult in net.minecraft.world.entity.monster
Modifier and TypeMethodDescriptionprotected InteractionResult
Bogged.mobInteract
(Player p_330736_, InteractionHand p_331786_) protected InteractionResult
Creeper.mobInteract
(Player p_32301_, InteractionHand p_32302_) Strider.mobInteract
(Player p_33910_, InteractionHand p_33911_) ZombieVillager.mobInteract
(Player p_34394_, InteractionHand p_34395_) -
Uses of InteractionResult in net.minecraft.world.entity.monster.hoglin
-
Uses of InteractionResult in net.minecraft.world.entity.monster.piglin
Modifier and TypeMethodDescriptionPiglin.mobInteract
(Player p_34745_, InteractionHand p_34746_) static InteractionResult
PiglinAi.mobInteract
(Piglin p_34847_, Player p_34848_, InteractionHand p_34849_) -
Uses of InteractionResult in net.minecraft.world.entity.npc
Modifier and TypeMethodDescriptionVillager.mobInteract
(Player p_35472_, InteractionHand p_35473_) WanderingTrader.mobInteract
(Player p_35856_, InteractionHand p_35857_) -
Uses of InteractionResult in net.minecraft.world.entity.player
-
Uses of InteractionResult in net.minecraft.world.entity.vehicle
Modifier and TypeMethodDescriptionAbstractMinecartContainer.interact
(Player p_38232_, InteractionHand p_38233_) Boat.interact
(Player p_38330_, InteractionHand p_38331_) ChestBoat.interact
(Player p_219898_, InteractionHand p_219899_) Minecart.interact
(Player p_38483_, InteractionHand p_38484_) MinecartChest.interact
(Player p_270398_, InteractionHand p_270576_) MinecartCommandBlock.interact
(Player p_38522_, InteractionHand p_38523_) MinecartFurnace.interact
(Player p_38562_, InteractionHand p_38563_) default InteractionResult
ContainerEntity.interactWithContainerVehicle
(Player p_270068_) -
Uses of InteractionResult in net.minecraft.world.item
Modifier and TypeMethodDescriptionstatic InteractionResult
LeadItem.bindPlayerMobs
(Player p_42830_, Level p_42831_, BlockPos p_42832_) DyeItem.interactLivingEntity
(ItemStack p_41085_, Player p_41086_, LivingEntity p_41087_, InteractionHand p_41088_) Item.interactLivingEntity
(ItemStack p_41398_, Player p_41399_, LivingEntity p_41400_, InteractionHand p_41401_) ItemStack.interactLivingEntity
(Player p_41648_, LivingEntity p_41649_, InteractionHand p_41650_) NameTagItem.interactLivingEntity
(ItemStack p_42954_, Player p_42955_, LivingEntity p_42956_, InteractionHand p_42957_) SaddleItem.interactLivingEntity
(ItemStack p_43055_, Player p_43056_, LivingEntity p_43057_, InteractionHand p_43058_) ShearsItem.interactLivingEntity
(ItemStack stack, Player player, LivingEntity entity, InteractionHand hand) private InteractionResult
ItemStack.onItemUse
(UseOnContext p_41662_, Function<UseOnContext, InteractionResult> callback) ItemStack.onItemUseFirst
(UseOnContext p_41662_) BlockItem.place
(BlockPlaceContext p_40577_) ArmorStandItem.useOn
(UseOnContext p_40510_) AxeItem.useOn
(UseOnContext p_40529_) BlockItem.useOn
(UseOnContext p_40581_) BoneMealItem.useOn
(UseOnContext p_40637_) BrushItem.useOn
(UseOnContext p_272607_) CompassItem.useOn
(UseOnContext p_40726_) DebugStickItem.useOn
(UseOnContext p_40960_) EndCrystalItem.useOn
(UseOnContext p_41176_) EnderEyeItem.useOn
(UseOnContext p_41182_) FireChargeItem.useOn
(UseOnContext p_41204_) FireworkRocketItem.useOn
(UseOnContext p_41216_) FlintAndSteelItem.useOn
(UseOnContext p_41297_) HangingEntityItem.useOn
(UseOnContext p_41331_) HoeItem.useOn
(UseOnContext p_41341_) HoneycombItem.useOn
(UseOnContext p_150869_) Item.useOn
(UseOnContext p_41427_) ItemStack.useOn
(UseOnContext p_41662_) LeadItem.useOn
(UseOnContext p_42834_) MapItem.useOn
(UseOnContext p_42885_) MinecartItem.useOn
(UseOnContext p_42943_) PlaceOnWaterBlockItem.useOn
(UseOnContext p_220229_) PotionItem.useOn
(UseOnContext p_220235_) ShearsItem.useOn
(UseOnContext p_186371_) ShovelItem.useOn
(UseOnContext p_43119_) SolidBucketItem.useOn
(UseOnContext p_151197_) SpawnEggItem.useOn
(UseOnContext p_43223_) Modifier and TypeMethodDescriptionprivate InteractionResult
ItemStack.onItemUse
(UseOnContext p_41662_, Function<UseOnContext, InteractionResult> callback) -
Uses of InteractionResult in net.minecraft.world.level
-
Uses of InteractionResult in net.minecraft.world.level.block
Modifier and TypeMethodDescriptionprotected static InteractionResult
CakeBlock.eat
(LevelAccessor p_51186_, BlockPos p_51187_, BlockState p_51188_, Player p_51189_) static InteractionResult
CaveVines.use
(Entity p_270738_, BlockState p_270772_, Level p_270721_, BlockPos p_270587_) protected InteractionResult
AbstractFurnaceBlock.useWithoutItem
(BlockState p_48706_, Level p_48707_, BlockPos p_48708_, Player p_48709_, BlockHitResult p_48711_) protected InteractionResult
AnvilBlock.useWithoutItem
(BlockState p_48804_, Level p_48805_, BlockPos p_48806_, Player p_48807_, BlockHitResult p_48809_) protected InteractionResult
BarrelBlock.useWithoutItem
(BlockState p_49069_, Level p_49070_, BlockPos p_49071_, Player p_49072_, BlockHitResult p_49074_) protected InteractionResult
BeaconBlock.useWithoutItem
(BlockState p_49432_, Level p_49433_, BlockPos p_49434_, Player p_49435_, BlockHitResult p_49437_) protected InteractionResult
BedBlock.useWithoutItem
(BlockState p_49515_, Level p_49516_, BlockPos p_49517_, Player p_49518_, BlockHitResult p_49520_) protected InteractionResult
BellBlock.useWithoutItem
(BlockState p_49722_, Level p_49723_, BlockPos p_49724_, Player p_49725_, BlockHitResult p_49727_) protected InteractionResult
BrewingStandBlock.useWithoutItem
(BlockState p_50930_, Level p_50931_, BlockPos p_50932_, Player p_50933_, BlockHitResult p_50935_) protected InteractionResult
ButtonBlock.useWithoutItem
(BlockState p_316833_, Level p_316124_, BlockPos p_316184_, Player p_316845_, BlockHitResult p_316247_) protected InteractionResult
CakeBlock.useWithoutItem
(BlockState p_316481_, Level p_316406_, BlockPos p_316218_, Player p_316212_, BlockHitResult p_316525_) protected InteractionResult
CandleCakeBlock.useWithoutItem
(BlockState p_316519_, Level p_316226_, BlockPos p_316122_, Player p_316438_, BlockHitResult p_316849_) protected InteractionResult
CartographyTableBlock.useWithoutItem
(BlockState p_51357_, Level p_51358_, BlockPos p_51359_, Player p_51360_, BlockHitResult p_51362_) 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 p_51531_, Level p_51532_, BlockPos p_51533_, Player p_51534_, BlockHitResult p_51536_) protected InteractionResult
ChiseledBookShelfBlock.useWithoutItem
(BlockState p_316403_, Level p_316842_, BlockPos p_316539_, Player p_316349_, BlockHitResult p_316278_) protected InteractionResult
CommandBlock.useWithoutItem
(BlockState p_51825_, Level p_51826_, BlockPos p_51827_, Player p_51828_, BlockHitResult p_51830_) protected InteractionResult
ComparatorBlock.useWithoutItem
(BlockState p_51880_, Level p_51881_, BlockPos p_51882_, Player p_51883_, BlockHitResult p_51885_) protected InteractionResult
ComposterBlock.useWithoutItem
(BlockState p_316361_, Level p_316271_, BlockPos p_316647_, Player p_316633_, BlockHitResult p_316555_) protected InteractionResult
CrafterBlock.useWithoutItem
(BlockState p_307454_, Level p_307255_, BlockPos p_307303_, Player p_307670_, BlockHitResult p_307546_) protected InteractionResult
CraftingTableBlock.useWithoutItem
(BlockState p_52233_, Level p_52234_, BlockPos p_52235_, Player p_52236_, BlockHitResult p_52238_) protected InteractionResult
DaylightDetectorBlock.useWithoutItem
(BlockState p_52391_, Level p_52392_, BlockPos p_52393_, Player p_52394_, BlockHitResult p_52396_) protected InteractionResult
DecoratedPotBlock.useWithoutItem
(BlockState p_316866_, Level p_316544_, BlockPos p_316541_, Player p_316732_, BlockHitResult p_316860_) protected InteractionResult
DispenserBlock.useWithoutItem
(BlockState p_52693_, Level p_52694_, BlockPos p_52695_, Player p_52696_, BlockHitResult p_52698_) protected InteractionResult
DoorBlock.useWithoutItem
(BlockState p_52769_, Level p_52770_, BlockPos p_52771_, Player p_52772_, BlockHitResult p_52774_) protected InteractionResult
DragonEggBlock.useWithoutItem
(BlockState p_52923_, Level p_52924_, BlockPos p_52925_, Player p_52926_, BlockHitResult p_52928_) protected InteractionResult
EnchantingTableBlock.useWithoutItem
(BlockState p_341077_, Level p_341293_, BlockPos p_341394_, Player p_340990_, BlockHitResult p_341300_) protected InteractionResult
EnderChestBlock.useWithoutItem
(BlockState p_53137_, Level p_53138_, BlockPos p_53139_, Player p_53140_, BlockHitResult p_53142_) protected InteractionResult
FenceBlock.useWithoutItem
(BlockState p_316111_, Level p_316725_, BlockPos p_316646_, Player p_316453_, BlockHitResult p_316769_) protected InteractionResult
FenceGateBlock.useWithoutItem
(BlockState p_53365_, Level p_53366_, BlockPos p_53367_, Player p_53368_, BlockHitResult p_53370_) protected InteractionResult
FletchingTableBlock.useWithoutItem
(BlockState p_53501_, Level p_53502_, BlockPos p_53503_, Player p_53504_, BlockHitResult p_53506_) protected InteractionResult
FlowerPotBlock.useWithoutItem
(BlockState p_316363_, Level p_316655_, BlockPos p_316654_, Player p_316338_, BlockHitResult p_316518_) protected InteractionResult
GrindstoneBlock.useWithoutItem
(BlockState p_53821_, Level p_53822_, BlockPos p_53823_, Player p_53824_, BlockHitResult p_53826_) protected InteractionResult
HopperBlock.useWithoutItem
(BlockState p_54071_, Level p_54072_, BlockPos p_54073_, Player p_54074_, BlockHitResult p_54076_) protected InteractionResult
JigsawBlock.useWithoutItem
(BlockState p_54231_, Level p_54232_, BlockPos p_54233_, Player p_54234_, BlockHitResult p_54236_) protected InteractionResult
JukeboxBlock.useWithoutItem
(BlockState p_54281_, Level p_54282_, BlockPos p_54283_, Player p_54284_, BlockHitResult p_54286_) protected InteractionResult
LecternBlock.useWithoutItem
(BlockState p_316164_, Level p_316515_, BlockPos p_316598_, Player p_316584_, BlockHitResult p_316197_) protected InteractionResult
LeverBlock.useWithoutItem
(BlockState p_54640_, Level p_54641_, BlockPos p_54642_, Player p_54643_, BlockHitResult p_54645_) protected InteractionResult
LightBlock.useWithoutItem
(BlockState p_153673_, Level p_153674_, BlockPos p_153675_, Player p_153676_, BlockHitResult p_153678_) protected InteractionResult
LoomBlock.useWithoutItem
(BlockState p_54787_, Level p_54788_, BlockPos p_54789_, Player p_54790_, BlockHitResult p_54792_) protected InteractionResult
NoteBlock.useWithoutItem
(BlockState p_316441_, Level p_316774_, BlockPos p_316344_, Player p_316884_, BlockHitResult p_316631_) protected InteractionResult
RedStoneWireBlock.useWithoutItem
(BlockState p_55554_, Level p_55555_, BlockPos p_55556_, Player p_55557_, BlockHitResult p_55559_) protected InteractionResult
RepeaterBlock.useWithoutItem
(BlockState p_55809_, Level p_55810_, BlockPos p_55811_, Player p_55812_, BlockHitResult p_55814_) protected InteractionResult
RespawnAnchorBlock.useWithoutItem
(BlockState p_316377_, Level p_316150_, BlockPos p_316161_, Player p_316889_, BlockHitResult p_316358_) protected InteractionResult
ShulkerBoxBlock.useWithoutItem
(BlockState p_56227_, Level p_56228_, BlockPos p_56229_, Player p_56230_, BlockHitResult p_56232_) protected InteractionResult
SignBlock.useWithoutItem
(BlockState p_316779_, Level p_316615_, BlockPos p_316127_, Player p_316173_, BlockHitResult p_316850_) protected InteractionResult
SmithingTableBlock.useWithoutItem
(BlockState p_56428_, Level p_56429_, BlockPos p_56430_, Player p_56431_, BlockHitResult p_56433_) protected InteractionResult
StonecutterBlock.useWithoutItem
(BlockState p_57083_, Level p_57084_, BlockPos p_57085_, Player p_57086_, BlockHitResult p_57088_) protected InteractionResult
StructureBlock.useWithoutItem
(BlockState p_57128_, Level p_57129_, BlockPos p_57130_, Player p_57131_, BlockHitResult p_57133_) protected InteractionResult
SweetBerryBushBlock.useWithoutItem
(BlockState p_316134_, Level p_316429_, BlockPos p_316748_, Player p_316431_, BlockHitResult p_316474_) protected InteractionResult
TrapDoorBlock.useWithoutItem
(BlockState p_57540_, Level p_57541_, BlockPos p_57542_, Player p_57543_, BlockHitResult p_57545_) -
Uses of InteractionResult in net.minecraft.world.level.block.piston
Modifier and TypeMethodDescriptionprotected InteractionResult
MovingPistonBlock.useWithoutItem
(BlockState p_60070_, Level p_60071_, BlockPos p_60072_, Player p_60073_, BlockHitResult p_60075_) -
Uses of InteractionResult in net.minecraft.world.level.block.state
Modifier and TypeMethodDescriptionBlockBehaviour.BlockStateBase.useWithoutItem
(Level p_316368_, Player p_316500_, BlockHitResult p_316346_) protected InteractionResult
BlockBehaviour.useWithoutItem
(BlockState p_60503_, Level p_60504_, BlockPos p_60505_, Player p_60506_, BlockHitResult p_60508_) -
Uses of InteractionResult in net.neoforged.neoforge.common
Modifier 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
Modifier 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.debug.block
Modifier and TypeMethodDescriptionBlockPropertyTests.LightBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hit) -
Uses of InteractionResult in net.neoforged.neoforge.event.entity.player
Modifier and TypeFieldDescriptionprivate InteractionResult
PlayerInteractEvent.EntityInteract.cancellationResult
private InteractionResult
PlayerInteractEvent.EntityInteractSpecific.cancellationResult
private InteractionResult
PlayerInteractEvent.RightClickBlock.cancellationResult
private InteractionResult
PlayerInteractEvent.RightClickItem.cancellationResult
Modifier and TypeMethodDescriptionPlayerInteractEvent.EntityInteract.getCancellationResult()
PlayerInteractEvent.EntityInteractSpecific.getCancellationResult()
PlayerInteractEvent.RightClickBlock.getCancellationResult()
PlayerInteractEvent.RightClickItem.getCancellationResult()
Modifier and TypeMethodDescriptionvoid
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.