Uses of Enum Class
net.minecraft.util.ActionResult
Packages that use ActionResult
Package
Description
Provides the cauldron behavior system,
which determines what happens when a player interacts with a cauldron.
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
Uses of ActionResult in net.minecraft.block
Methods in net.minecraft.block that return ActionResultModifier and TypeMethodDescriptionAbstractBlock.AbstractBlockState.onUse(World world, PlayerEntity player, Hand hand, BlockHitResult hit) AbstractBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Deprecated.AbstractCauldronBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.AbstractFurnaceBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.AbstractSignBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.AnvilBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BarrelBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BeaconBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BedBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BeehiveBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BellBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BrewingStandBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ButtonBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CakeBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CampfireBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CandleBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CandleCakeBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CartographyTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CaveVinesBodyBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CaveVinesHeadBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ChestBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ChiseledBookshelfBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CommandBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ComparatorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ComposterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CraftingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.DaylightDetectorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.DispenserBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.DoorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.DragonEggBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.EnchantingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.EnderChestBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.FenceBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.FenceGateBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.FletchingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.FlowerPotBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.GrindstoneBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.HangingSignBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.HopperBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.JigsawBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.JukeboxBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.LecternBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.LeverBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.LightBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.LoomBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.NoteBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.PistonExtensionBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.PumpkinBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.RedstoneOreBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.RedstoneWireBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.RepeaterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.RespawnAnchorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ShulkerBoxBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.SmithingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.StairsBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.StonecutterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.StructureBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.SweetBerryBushBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.TntBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.TrapdoorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.WallHangingSignBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.static ActionResultCaveVines.pickBerries(@Nullable Entity picker, BlockState state, World world, BlockPos pos) protected static ActionResultCakeBlock.tryEat(WorldAccess world, BlockPos pos, BlockState state, PlayerEntity player) -
Uses of ActionResult in net.minecraft.block.cauldron
Methods in net.minecraft.block.cauldron that return ActionResultModifier and TypeMethodDescriptionstatic ActionResultCauldronBehavior.emptyCauldron(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, ItemStack output, Predicate<BlockState> fullPredicate, SoundEvent soundEvent) Empties a cauldron if it's full.static ActionResultCauldronBehavior.fillCauldron(World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, BlockState state, SoundEvent soundEvent) Fills a cauldron from a bucket stack.CauldronBehavior.interact(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack) Called when a player interacts with a cauldron. -
Uses of ActionResult in net.minecraft.client.network
Methods in net.minecraft.client.network that return ActionResultModifier and TypeMethodDescriptionClientPlayerInteractionManager.interactBlock(ClientPlayerEntity player, Hand hand, BlockHitResult hitResult) private ActionResultClientPlayerInteractionManager.interactBlockInternal(ClientPlayerEntity player, Hand hand, BlockHitResult hitResult) ClientPlayerInteractionManager.interactEntity(PlayerEntity player, Entity entity, Hand hand) ClientPlayerInteractionManager.interactEntityAtLocation(PlayerEntity player, Entity entity, EntityHitResult hitResult, Hand hand) ClientPlayerInteractionManager.interactItem(PlayerEntity player, Hand hand) -
Uses of ActionResult in net.minecraft.entity
Methods in net.minecraft.entity that return ActionResultModifier and TypeMethodDescriptionEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.Entity.interactAt(PlayerEntity player, Vec3d hitPos, Hand hand) Called when the player interacts with the entity at the specific position.Methods in net.minecraft.entity that return types with arguments of type ActionResultModifier and TypeMethodDescriptionstatic <T extends LivingEntity & Bucketable>
Optional<ActionResult>Bucketable.tryBucket(PlayerEntity player, Hand hand, T entity) -
Uses of ActionResult in net.minecraft.entity.decoration
Methods in net.minecraft.entity.decoration that return ActionResultModifier and TypeMethodDescriptionInteractionEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.ItemFrameEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.LeashKnotEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.ArmorStandEntity.interactAt(PlayerEntity player, Vec3d hitPos, Hand hand) Called when the player interacts with the entity at the specific position. -
Uses of ActionResult in net.minecraft.entity.mob
Methods in net.minecraft.entity.mob that return ActionResultModifier and TypeMethodDescriptionfinal ActionResultMobEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.protected ActionResultCreeperEntity.interactMob(PlayerEntity player, Hand hand) HoglinEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultMobEntity.interactMob(PlayerEntity player, Hand hand) PiglinEntity.interactMob(PlayerEntity player, Hand hand) SkeletonHorseEntity.interactMob(PlayerEntity player, Hand hand) ZombieHorseEntity.interactMob(PlayerEntity player, Hand hand) ZombieVillagerEntity.interactMob(PlayerEntity player, Hand hand) private ActionResultMobEntity.interactWithItem(PlayerEntity player, Hand hand) static ActionResultPiglinBrain.playerInteract(PiglinEntity piglin, PlayerEntity player, Hand hand) -
Uses of ActionResult in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive that return ActionResultModifier and TypeMethodDescriptionAbstractHorseEntity.interactHorse(PlayerEntity player, ItemStack stack) AbstractDonkeyEntity.interactMob(PlayerEntity player, Hand hand) AbstractHorseEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultAllayEntity.interactMob(PlayerEntity player, Hand hand) AnimalEntity.interactMob(PlayerEntity player, Hand hand) AxolotlEntity.interactMob(PlayerEntity player, Hand hand) CamelEntity.interactMob(PlayerEntity player, Hand hand) CatEntity.interactMob(PlayerEntity player, Hand hand) CowEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultDolphinEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultFishEntity.interactMob(PlayerEntity player, Hand hand) GoatEntity.interactMob(PlayerEntity player, Hand hand) HorseEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultIronGolemEntity.interactMob(PlayerEntity player, Hand hand) MooshroomEntity.interactMob(PlayerEntity player, Hand hand) OcelotEntity.interactMob(PlayerEntity player, Hand hand) PandaEntity.interactMob(PlayerEntity player, Hand hand) ParrotEntity.interactMob(PlayerEntity player, Hand hand) PigEntity.interactMob(PlayerEntity player, Hand hand) SheepEntity.interactMob(PlayerEntity player, Hand hand) SnifferEntity.interactMob(PlayerEntity player, Hand hand) protected ActionResultSnowGolemEntity.interactMob(PlayerEntity player, Hand hand) StriderEntity.interactMob(PlayerEntity player, Hand hand) TadpoleEntity.interactMob(PlayerEntity player, Hand hand) VillagerEntity.interactMob(PlayerEntity player, Hand hand) WanderingTraderEntity.interactMob(PlayerEntity player, Hand hand) WolfEntity.interactMob(PlayerEntity player, Hand hand) -
Uses of ActionResult in net.minecraft.entity.player
Methods in net.minecraft.entity.player that return ActionResult -
Uses of ActionResult in net.minecraft.entity.vehicle
Methods in net.minecraft.entity.vehicle that return ActionResultModifier and TypeMethodDescriptionBoatEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.ChestBoatEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.ChestMinecartEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.CommandBlockMinecartEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.FurnaceMinecartEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.MinecartEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.StorageMinecartEntity.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.default ActionResultVehicleInventory.open(PlayerEntity player) -
Uses of ActionResult in net.minecraft.item
Methods in net.minecraft.item that return ActionResultModifier and TypeMethodDescriptionstatic ActionResultLeadItem.attachHeldMobsToBlock(PlayerEntity player, World world, BlockPos pos) BlockItem.place(ItemPlacementContext context) ArmorStandItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.AxeItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.BlockItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.BoneMealItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.BrushItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.CompassItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.DebugStickItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.DecorationItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.EndCrystalItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.EnderEyeItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.FilledMapItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.FireChargeItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.FireworkRocketItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.FlintAndSteelItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.HoeItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.HoneycombItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.Item.useOnBlock(ItemUsageContext context) Called when an item is used on a block.ItemStack.useOnBlock(ItemUsageContext context) LeadItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.MinecartItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.MusicDiscItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.PlaceableOnWaterItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.PotionItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.PowderSnowBucketItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.ShearsItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.ShovelItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.SpawnEggItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.WritableBookItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.WrittenBookItem.useOnBlock(ItemUsageContext context) Called when an item is used on a block.DyeItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.Item.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.ItemStack.useOnEntity(PlayerEntity user, LivingEntity entity, Hand hand) NameTagItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.SaddleItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity. -
Uses of ActionResult in net.minecraft.server.network
Methods in net.minecraft.server.network that return ActionResultModifier and TypeMethodDescriptionDemoServerPlayerInteractionManager.interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult) ServerPlayerInteractionManager.interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult) DemoServerPlayerInteractionManager.interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand) ServerPlayerInteractionManager.interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand) ServerPlayNetworkHandler.Interaction.run(ServerPlayerEntity player, Entity entity, Hand hand) -
Uses of ActionResult in net.minecraft.util
Fields in net.minecraft.util declared as ActionResultMethods in net.minecraft.util that return ActionResultModifier and TypeMethodDescriptionTypedActionResult.getResult()static ActionResultActionResult.success(boolean swingHand) Returns an action result indicating success.static ActionResultReturns the enum constant of this class with the specified name.static ActionResult[]ActionResult.values()Returns an array containing the constants of this enum class, in the order they are declared.Constructors in net.minecraft.util with parameters of type ActionResult -
Uses of ActionResult in net.minecraft.world
Methods in net.minecraft.world that return ActionResult
AbstractBlock.AbstractBlockState.onUse(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand, net.minecraft.util.hit.BlockHitResult)instead.