Uses of Class
net.minecraft.util.math.Vec2f
Packages that use Vec2f
Package
Description
-
Uses of Vec2f in net.minecraft.client.gui.screen
Fields in net.minecraft.client.gui.screen declared as Vec2f -
Uses of Vec2f in net.minecraft.client.input
Methods in net.minecraft.client.input that return Vec2f -
Uses of Vec2f in net.minecraft.command.argument
Methods in net.minecraft.command.argument that return Vec2fModifier 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) Methods in net.minecraft.command.argument with parameters of type Vec2f -
Uses of Vec2f in net.minecraft.entity
Methods in net.minecraft.entity that return Vec2f -
Uses of Vec2f in net.minecraft.server.chase
Fields in net.minecraft.server.chase declared as Vec2fModifier and TypeFieldDescriptionprivate final Vec2f
ChaseClient.TeleportPos.rot
The field for therot
record component.Methods in net.minecraft.server.chase that return Vec2fModifier and TypeMethodDescriptionChaseClient.TeleportPos.rot()
Returns the value of therot
record component.Constructors in net.minecraft.server.chase with parameters of type Vec2fModifierConstructorDescription(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
Fields in net.minecraft.server.command declared as Vec2fMethods in net.minecraft.server.command that return Vec2fMethods in net.minecraft.server.command with parameters of type Vec2fModifier 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) Constructors in net.minecraft.server.command with parameters of type Vec2fModifierConstructorDescriptionServerCommandSource
(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) -
Uses of Vec2f in net.minecraft.util.math
Fields in net.minecraft.util.math declared as Vec2fModifier 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
Methods in net.minecraft.util.math that return Vec2fModifier and TypeMethodDescriptionVec2f.add
(float value) Vec2f.multiply
(float value) Vec2f.negate()
Vec2f.normalize()
Methods in net.minecraft.util.math with parameters of type Vec2f