Uses of Class
net.minecraft.world.phys.Vec2
Packages that use Vec2
Package
Description
-
Uses of Vec2 in net.minecraft.client.gui.components
Fields in net.minecraft.client.gui.components declared as Vec2 -
Uses of Vec2 in net.minecraft.client.player
Methods in net.minecraft.client.player that return Vec2 -
Uses of Vec2 in net.minecraft.commands
Fields in net.minecraft.commands declared as Vec2Methods in net.minecraft.commands that return Vec2Methods in net.minecraft.commands with parameters of type Vec2Constructors in net.minecraft.commands with parameters of type Vec2ModifierConstructorDescriptionCommandSourceStack
(CommandSource source, Vec3 worldPosition, Vec2 rotation, ServerLevel level, int permissionLevel, String textName, Component displayName, MinecraftServer server, Entity entity) protected
CommandSourceStack
(CommandSource source, Vec3 worldPosition, Vec2 rotation, ServerLevel level, int permissionLevel, String textName, Component displayName, MinecraftServer server, Entity entity, boolean silent, CommandResultCallback resultCallback, EntityAnchorArgument.Anchor anchor, CommandSigningContext signingContext, TaskChainer chatMessageChainer) -
Uses of Vec2 in net.minecraft.commands.arguments.coordinates
Methods in net.minecraft.commands.arguments.coordinates that return Vec2Modifier and TypeMethodDescriptionCoordinates.getRotation
(CommandSourceStack source) LocalCoordinates.getRotation
(CommandSourceStack source) WorldCoordinates.getRotation
(CommandSourceStack source) static Vec2
Vec2Argument.getVec2
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) Methods in net.minecraft.commands.arguments.coordinates with parameters of type Vec2 -
Uses of Vec2 in net.minecraft.server.chase
Fields in net.minecraft.server.chase declared as Vec2Modifier and TypeFieldDescriptionprivate final Vec2
ChaseClient.TeleportTarget.rot
The field for therot
record component.Methods in net.minecraft.server.chase that return Vec2Modifier and TypeMethodDescriptionChaseClient.TeleportTarget.rot()
Returns the value of therot
record component.Constructors in net.minecraft.server.chase with parameters of type Vec2ModifierConstructorDescription(package private)
TeleportTarget
(ResourceKey<Level> level, Vec3 pos, Vec2 rot) Creates an instance of aTeleportTarget
record class. -
Uses of Vec2 in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type Vec2Modifier and TypeMethodDescriptionprivate static int
WorldBorderCommand.setCenter
(CommandSourceStack source, Vec2 pos) private static int
SpreadPlayersCommand.spreadPlayers
(CommandSourceStack source, Vec2 center, float spreadDistance, float maxRange, int maxHeight, boolean respectTeams, Collection<? extends Entity> targets) private static void
SpreadPlayersCommand.spreadPositions
(Vec2 center, double spreadDistance, ServerLevel level, RandomSource random, double minX, double minZ, double maxX, double maxZ, int maxHeight, SpreadPlayersCommand.Position[] positions, boolean respectTeams) -
Uses of Vec2 in net.minecraft.world.entity
Methods in net.minecraft.world.entity that return Vec2 -
Uses of Vec2 in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel that return Vec2 -
Uses of Vec2 in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse that return Vec2Modifier and TypeMethodDescriptionprotected Vec2
AbstractHorse.getRiddenRotation
(LivingEntity entity) -
Uses of Vec2 in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block that return types with arguments of type Vec2Modifier and TypeMethodDescriptionChiseledBookShelfBlock.getRelativeHitCoordinatesForBlockFace
(BlockHitResult hitResult, Direction face) -
Uses of Vec2 in net.minecraft.world.phys
Fields in net.minecraft.world.phys declared as Vec2Modifier and TypeFieldDescriptionstatic final Vec2
Vec2.MAX
static final Vec2
Vec2.MIN
static final Vec2
Vec2.NEG_UNIT_X
static final Vec2
Vec2.NEG_UNIT_Y
static final Vec2
Vec2.ONE
static final Vec2
Vec2.UNIT_X
static final Vec2
Vec2.UNIT_Y
static final Vec2
Vec2.ZERO
Methods in net.minecraft.world.phys that return Vec2Modifier and TypeMethodDescriptionVec2.add
(float value) Vec2.negated()
Vec2.normalized()
Vec2.scale
(float factor) Methods in net.minecraft.world.phys with parameters of type Vec2 -
Uses of Vec2 in net.neoforged.neoforge.client
Constructors in net.neoforged.neoforge.client with parameters of type Vec2ModifierConstructorDescriptionClientCommandSourceStack
(CommandSource source, Vec3 position, Vec2 rotation, int permission, String plainTextName, Component displayName, Entity executing) -
Uses of Vec2 in net.neoforged.neoforge.client.model.obj
Fields in net.neoforged.neoforge.client.model.obj declared as Vec2Fields in net.neoforged.neoforge.client.model.obj with type parameters of type Vec2Methods in net.neoforged.neoforge.client.model.obj that return Vec2