Uses of Class
net.minecraft.util.ActionResult
-
Uses of ActionResult in net.minecraft.block
Methods in net.minecraft.block that return ActionResult Modifier and Type Method Description ActionResult
AbstractBlock.AbstractBlockState. onUse(World world, PlayerEntity player, Hand hand, BlockHitResult hit)
ActionResult
AbstractBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Deprecated.ActionResult
AbstractButtonBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
AbstractCauldronBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
AbstractFurnaceBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
AbstractSignBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
AnvilBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
BarrelBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
BeaconBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
BedBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
BeehiveBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
BellBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
BrewingStandBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CakeBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CampfireBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CandleBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CandleCakeBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CartographyTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CaveVinesBodyBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CaveVinesHeadBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
ChestBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CommandBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
ComparatorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
ComposterBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
CraftingTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
DaylightDetectorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
DispenserBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
DoorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
DragonEggBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
EnchantingTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
EnderChestBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
FenceBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
FenceGateBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
FletchingTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
FlowerPotBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
GrindstoneBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
HopperBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
JigsawBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
JukeboxBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
LecternBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
LeverBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
LightBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
LoomBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
NoteBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
PistonExtensionBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
PumpkinBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
RedstoneOreBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
RedstoneWireBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
RepeaterBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
RespawnAnchorBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
ShulkerBoxBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
SmithingTableBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
StairsBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
StonecutterBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
StructureBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
SweetBerryBushBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
TntBlock. onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.ActionResult
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
Methods in net.minecraft.block.cauldron that return ActionResult Modifier and Type Method Description static 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)
ActionResult
CauldronBehavior. interact(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack)
-
Uses of ActionResult in net.minecraft.client.network
Methods in net.minecraft.client.network that return ActionResult Modifier and Type Method Description ActionResult
ClientPlayerInteractionManager. interactBlock(ClientPlayerEntity player, ClientWorld world, Hand hand, BlockHitResult hitResult)
ActionResult
ClientPlayerInteractionManager. interactEntity(PlayerEntity player, Entity entity, Hand hand)
ActionResult
ClientPlayerInteractionManager. interactEntityAtLocation(PlayerEntity player, Entity entity, EntityHitResult hitResult, Hand hand)
ActionResult
ClientPlayerInteractionManager. interactItem(PlayerEntity player, World world, Hand hand)
-
Uses of ActionResult in net.minecraft.entity
Methods in net.minecraft.entity that return ActionResult Modifier and Type Method Description ActionResult
Entity. interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.ActionResult
Entity. interactAt(PlayerEntity player, Vec3d hitPos, Hand hand)
Methods in net.minecraft.entity that return types with arguments of type ActionResult Modifier and Type Method Description static <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 ActionResult Modifier and Type Method Description ActionResult
ItemFrameEntity. interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.ActionResult
LeashKnotEntity. interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.ActionResult
ArmorStandEntity. interactAt(PlayerEntity player, Vec3d hitPos, Hand hand)
-
Uses of ActionResult in net.minecraft.entity.mob
Methods in net.minecraft.entity.mob that return ActionResult Modifier and Type Method Description ActionResult
MobEntity. interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.protected ActionResult
CreeperEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
HoglinEntity. interactMob(PlayerEntity player, Hand hand)
protected ActionResult
MobEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
PiglinEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
SkeletonHorseEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
ZombieHorseEntity. interactMob(PlayerEntity player, Hand hand)
ActionResult
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
-
Uses of ActionResult in net.minecraft.entity.player
Methods in net.minecraft.entity.player that return ActionResult Modifier and Type Method Description ActionResult
PlayerEntity. interact(Entity entity, Hand hand)
-
Uses of ActionResult in net.minecraft.entity.vehicle
Methods in net.minecraft.entity.vehicle that return ActionResult Modifier and Type Method Description ActionResult
BoatEntity. interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.ActionResult
CommandBlockMinecartEntity. interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.ActionResult
FurnaceMinecartEntity. interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.ActionResult
MinecartEntity. interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.ActionResult
StorageMinecartEntity. interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity. -
Uses of ActionResult in net.minecraft.item
Methods in net.minecraft.item that return ActionResult Modifier and Type Method Description static ActionResult
LeadItem. attachHeldMobsToBlock(PlayerEntity player, World world, BlockPos pos)
ActionResult
BlockItem. place(ItemPlacementContext context)
ActionResult
ArmorStandItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
AxeItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
BlockItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
BoneMealItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
CompassItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
DebugStickItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
DecorationItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
EndCrystalItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
EnderEyeItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
FilledMapItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
FireChargeItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
FireworkItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
FlintAndSteelItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
HoeItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
HoneycombItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
Item. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
ItemStack. useOnBlock(ItemUsageContext context)
ActionResult
LeadItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
LilyPadItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
MinecartItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
MusicDiscItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
PowderSnowBucketItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
ShovelItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
SpawnEggItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
WritableBookItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
WrittenBookItem. useOnBlock(ItemUsageContext context)
Called when an item is used on a block.ActionResult
DyeItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)
ActionResult
Item. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)
ActionResult
ItemStack. useOnEntity(PlayerEntity user, LivingEntity entity, Hand hand)
ActionResult
NameTagItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)
ActionResult
SaddleItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)
-
Uses of ActionResult in net.minecraft.server.network
Methods in net.minecraft.server.network that return ActionResult Modifier and Type Method Description ActionResult
DemoServerPlayerInteractionManager. interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult)
ActionResult
ServerPlayerInteractionManager. interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult)
ActionResult
DemoServerPlayerInteractionManager. interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)
ActionResult
ServerPlayerInteractionManager. interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)
ActionResult
ServerPlayNetworkHandler.Interaction. run(ServerPlayerEntity player, Entity entity, Hand hand)
-
Uses of ActionResult in net.minecraft.util
Fields in net.minecraft.util declared as ActionResult Modifier and Type Field Description private ActionResult
TypedActionResult. result
Methods in net.minecraft.util that return ActionResult Modifier and Type Method Description ActionResult
TypedActionResult. getResult()
static ActionResult
ActionResult. success(boolean swingHand)
static ActionResult
ActionResult. valueOf(String name)
Returns the enum constant of this type with the specified name.static ActionResult[]
ActionResult. values()
Returns an array containing the constants of this enum type, in the order they are declared.Constructors in net.minecraft.util with parameters of type ActionResult Constructor Description TypedActionResult(ActionResult result, T value)
-
Uses of ActionResult in net.minecraft.world
Methods in net.minecraft.world that return ActionResult Modifier and Type Method Description ActionResult
CommandBlockExecutor. interact(PlayerEntity player)