Uses of Enum Class
net.minecraft.util.ActionResult
Package
Description
-
Uses of ActionResult in net.minecraft.block
Modifier 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.AbstractButtonBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.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.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.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.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.static ActionResult
CaveVines.pickBerries
(BlockState state, World world, BlockPos pos) protected static ActionResult
CakeBlock.tryEat
(WorldAccess world, BlockPos pos, BlockState state, PlayerEntity player) -
Uses of ActionResult in net.minecraft.block.cauldron
Modifier and TypeMethodDescriptionstatic ActionResult
CauldronBehavior.emptyCauldron
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, ItemStack output, Predicate<BlockState> predicate, SoundEvent soundEvent) static ActionResult
CauldronBehavior.fillCauldron
(World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, BlockState state, SoundEvent soundEvent) CauldronBehavior.interact
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack) -
Uses of ActionResult in net.minecraft.client.network
Modifier and TypeMethodDescriptionClientPlayerInteractionManager.interactBlock
(ClientPlayerEntity player, ClientWorld world, 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, World world, Hand hand) -
Uses of ActionResult in net.minecraft.entity
Modifier and TypeMethodDescriptionEntity.interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.Entity.interactAt
(PlayerEntity player, Vec3d hitPos, Hand hand) Modifier and TypeMethodDescriptionstatic <T extends LivingEntity & Bucketable>
Optional<ActionResult>Bucketable.tryBucket
(PlayerEntity player, Hand hand, T entity) -
Uses of ActionResult in net.minecraft.entity.decoration
Modifier and TypeMethodDescriptionItemFrameEntity.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) -
Uses of ActionResult in net.minecraft.entity.mob
Modifier and TypeMethodDescriptionfinal ActionResult
MobEntity.interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.protected ActionResult
CreeperEntity.interactMob
(PlayerEntity player, Hand hand) HoglinEntity.interactMob
(PlayerEntity player, Hand hand) protected ActionResult
MobEntity.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 ActionResult
MobEntity.interactWithItem
(PlayerEntity player, Hand hand) static ActionResult
PiglinBrain.playerInteract
(PiglinEntity piglin, PlayerEntity player, Hand hand) -
Uses of ActionResult in net.minecraft.entity.passive
Modifier and TypeMethodDescriptionHorseBaseEntity.interactHorse
(PlayerEntity player, ItemStack stack) AbstractDonkeyEntity.interactMob
(PlayerEntity player, Hand hand) AnimalEntity.interactMob
(PlayerEntity player, Hand hand) AxolotlEntity.interactMob
(PlayerEntity player, Hand hand) CatEntity.interactMob
(PlayerEntity player, Hand hand) CowEntity.interactMob
(PlayerEntity player, Hand hand) protected ActionResult
DolphinEntity.interactMob
(PlayerEntity player, Hand hand) protected ActionResult
FishEntity.interactMob
(PlayerEntity player, Hand hand) GoatEntity.interactMob
(PlayerEntity player, Hand hand) HorseEntity.interactMob
(PlayerEntity player, Hand hand) protected ActionResult
IronGolemEntity.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) protected ActionResult
SnowGolemEntity.interactMob
(PlayerEntity player, Hand hand) StriderEntity.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
-
Uses of ActionResult in net.minecraft.entity.vehicle
Modifier and TypeMethodDescriptionBoatEntity.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. -
Uses of ActionResult in net.minecraft.item
Modifier and TypeMethodDescriptionstatic ActionResult
LeadItem.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.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.LilyPadItem.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.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) Item.useOnEntity
(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) ItemStack.useOnEntity
(PlayerEntity user, LivingEntity entity, Hand hand) NameTagItem.useOnEntity
(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) SaddleItem.useOnEntity
(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) -
Uses of ActionResult in net.minecraft.server.network
Modifier 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
Modifier and TypeMethodDescriptionTypedActionResult.getResult()
static ActionResult
ActionResult.success
(boolean swingHand) static ActionResult
Returns 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. -
Uses of ActionResult in net.minecraft.world
AbstractBlock.AbstractBlockState.onUse(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand, net.minecraft.util.hit.BlockHitResult)
instead.