Uses of Class
net.minecraft.util.math.Vec2f
Package
Description
-
Uses of Vec2f in net.minecraft.block
Modifier and TypeMethodDescriptionChiseledBookshelfBlock.getHitPos
(BlockHitResult hit, Direction facing) Modifier and TypeMethodDescriptionprivate static int
ChiseledBookshelfBlock.getSlotForHitPos
(Vec2f hitPos) -
Uses of Vec2f in net.minecraft.client.gui.screen
-
Uses of Vec2f in net.minecraft.client.input
-
Uses of Vec2f in net.minecraft.command.argument
Modifier and TypeMethodDescriptionstatic Vec2f
Vec2ArgumentType.getVec2
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) DefaultPosArgument.toAbsoluteRotation
(ServerCommandSource source) LookingPosArgument.toAbsoluteRotation
(ServerCommandSource source) PosArgument.toAbsoluteRotation
(ServerCommandSource source) -
Uses of Vec2f in net.minecraft.entity
-
Uses of Vec2f in net.minecraft.entity.passive
Modifier and TypeMethodDescriptionprotected Vec2f
AbstractHorseEntity.getControlledRotation
(LivingEntity controllingPassenger) protected Vec2f
CamelEntity.getControlledRotation
(LivingEntity controllingPassenger) -
Uses of Vec2f in net.minecraft.server.chase
Modifier and TypeFieldDescriptionprivate final Vec2f
ChaseClient.TeleportPos.rot
The field for therot
record component.Modifier and TypeMethodDescriptionChaseClient.TeleportPos.rot()
Returns the value of therot
record component.ModifierConstructorDescription(package private)
TeleportPos
(RegistryKey<World> dimension, Vec3d pos, Vec2f rot) Creates an instance of aTeleportPos
record class. -
Uses of Vec2f in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static int
SpreadPlayersCommand.execute
(ServerCommandSource source, Vec2f center, float spreadDistance, float maxRange, int maxY, boolean respectTeams, Collection<? extends Entity> players) private static int
WorldBorderCommand.executeCenter
(ServerCommandSource source, Vec2f pos) private static void
SpreadPlayersCommand.spread
(Vec2f center, double spreadDistance, ServerWorld world, Random random, double minX, double minZ, double maxX, double maxZ, int maxY, SpreadPlayersCommand.Pile[] piles, boolean respectTeams) ServerCommandSource.withRotation
(Vec2f rotation) ModifierConstructorDescriptionServerCommandSource
(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String name, Text displayName, MinecraftServer server, @Nullable Entity entity) protected
ServerCommandSource
(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String name, Text displayName, MinecraftServer server, @Nullable Entity entity, boolean silent, @Nullable com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, EntityAnchorArgumentType.EntityAnchor entityAnchor, SignedCommandArguments signedArguments, FutureQueue messageChainTaskQueue, IntConsumer returnValueConsumer) -
Uses of Vec2f in net.minecraft.util.math
Modifier and TypeFieldDescriptionstatic final Vec2f
Vec2f.EAST_UNIT
static final Vec2f
Vec2f.MAX_SOUTH_EAST
static final Vec2f
Vec2f.MIN_SOUTH_EAST
static final Vec2f
Vec2f.NORTH_UNIT
static final Vec2f
Vec2f.SOUTH_EAST_UNIT
static final Vec2f
Vec2f.SOUTH_UNIT
static final Vec2f
Vec2f.WEST_UNIT
static final Vec2f
Vec2f.ZERO