Uses of Enum Class
net.minecraft.util.ActionResult
Packages that use ActionResult
Package
Description
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, BlockHitResult hit) protected ActionResultAbstractBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultAbstractFurnaceBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultAbstractSignBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultAnvilBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultBarrelBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultBeaconBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultBedBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultBellBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultBrewingStandBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultButtonBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCakeBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCandleCakeBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCartographyTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCaveVinesBodyBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCaveVinesHeadBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultChestBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultChiseledBookshelfBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCommandBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultComparatorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultComposterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCrafterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCraftingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultDaylightDetectorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultDecoratedPotBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultDispenserBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultDoorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultDragonEggBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultEnchantingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultEnderChestBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultFenceBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultFenceGateBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultFletchingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultFlowerPotBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultGrindstoneBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultHopperBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultJigsawBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultJukeboxBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultLecternBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultLeverBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultLightBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultLoomBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultNoteBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultPistonExtensionBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultRedstoneWireBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultRepeaterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultRespawnAnchorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultShulkerBoxBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultSmithingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultStonecutterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultStructureBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultSweetBerryBushBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultTrapdoorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) 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.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 ActionResultBoggedEntity.interactMob(PlayerEntity player, Hand hand) 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) ArmadilloEntity.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.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.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.ItemActionResult.toActionResult()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