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
Fields in net.minecraft.client.player declared as Vec2Methods in net.minecraft.client.player that return Vec2Modifier and TypeMethodDescriptionClientInput.getMoveVector()private Vec2LocalPlayer.modifyInput(Vec2 input) private static Vec2LocalPlayer.modifyInputSpeedForSquareMovement(Vec2 input) Methods in net.minecraft.client.player with parameters of type Vec2Modifier and TypeMethodDescriptionprivate static floatLocalPlayer.distanceToUnitSquare(Vec2 direction) private Vec2LocalPlayer.modifyInput(Vec2 input) private static Vec2LocalPlayer.modifyInputSpeedForSquareMovement(Vec2 input) -
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 position, Vec2 rotation, ServerLevel level, PermissionSet permissions, String textName, Component displayName, MinecraftServer server, @Nullable Entity entity) privateCommandSourceStack(CommandSource source, Vec3 position, Vec2 rotation, ServerLevel level, PermissionSet permissions, String textName, Component displayName, MinecraftServer server, @Nullable 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 sender) LocalCoordinates.getRotation(CommandSourceStack sender) WorldCoordinates.getRotation(CommandSourceStack sender) static Vec2Vec2Argument.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 Vec2ChaseClient.TeleportTarget.rotThe field for therotrecord component.Methods in net.minecraft.server.chase that return Vec2Modifier and TypeMethodDescriptionChaseClient.TeleportTarget.rot()Returns the value of therotrecord 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 aTeleportTargetrecord class. -
Uses of Vec2 in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type Vec2Modifier and TypeMethodDescriptionprivate static intWorldBorderCommand.setCenter(CommandSourceStack source, Vec2 center) private static intSpreadPlayersCommand.spreadPlayers(CommandSourceStack source, Vec2 center, float spreadDistance, float maxRange, int maxHeight, boolean respectTeams, Collection<? extends Entity> entities) private static voidSpreadPlayersCommand.spreadPositions(Vec2 center, double spreadDist, 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.server.level
Fields in net.minecraft.server.level with type parameters of type Vec2Modifier and TypeFieldDescriptionServerPlayer.SavedPosition.rotationThe field for therotationrecord component.Methods in net.minecraft.server.level that return types with arguments of type Vec2 -
Uses of Vec2 in net.minecraft.server.network.config
Fields in net.minecraft.server.network.config declared as Vec2Modifier and TypeFieldDescriptionprivate final Vec2PrepareSpawnTask.Preparing.spawnAngleprivate final Vec2PrepareSpawnTask.Ready.spawnAngleConstructors in net.minecraft.server.network.config with parameters of type Vec2ModifierConstructorDescriptionprivatePreparing(ServerLevel spawnLevel, CompletableFuture<Vec3> spawnPosition, Vec2 spawnAngle) privateReady(ServerLevel spawnLevel, Vec3 spawnPosition, Vec2 spawnAngle) -
Uses of Vec2 in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as Vec2Methods 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 Vec2Modifier and TypeMethodDescriptionprotected Vec2Camel.getRiddenRotation(LivingEntity controller) -
Uses of Vec2 in net.minecraft.world.entity.animal.equine
Methods in net.minecraft.world.entity.animal.equine that return Vec2Modifier and TypeMethodDescriptionprotected Vec2AbstractHorse.getRiddenRotation(LivingEntity controller) -
Uses of Vec2 in net.minecraft.world.entity.animal.happyghast
Methods in net.minecraft.world.entity.animal.happyghast that return Vec2Modifier and TypeMethodDescriptionprotected Vec2HappyGhast.getRiddenRotation(LivingEntity controller) -
Uses of Vec2 in net.minecraft.world.entity.animal.nautilus
Methods in net.minecraft.world.entity.animal.nautilus that return Vec2Modifier and TypeMethodDescriptionprotected Vec2AbstractNautilus.getRiddenRotation(LivingEntity controller) -
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 TypeMethodDescriptionSelectableSlotContainer.getRelativeHitCoordinatesForBlockFace(BlockHitResult hitResult, Direction blockFacing) -
Uses of Vec2 in net.minecraft.world.phys
Fields in net.minecraft.world.phys declared as Vec2Modifier and TypeFieldDescriptionstatic final Vec2Vec2.MAXstatic final Vec2Vec2.MINstatic final Vec2Vec2.NEG_UNIT_Xstatic final Vec2Vec2.NEG_UNIT_Ystatic final Vec2Vec2.ONEstatic final Vec2Vec2.UNIT_Xstatic final Vec2Vec2.UNIT_Ystatic final Vec2Vec2.ZEROFields in net.minecraft.world.phys with type parameters of type Vec2Methods in net.minecraft.world.phys that return Vec2Modifier and TypeMethodDescriptionVec2.add(float v) Vec2.negated()Vec2.normalized()Vec3.rotation()Vec2.scale(float s) Methods in net.minecraft.world.phys with parameters of type Vec2Modifier and TypeMethodDescriptionstatic Vec3Vec3.applyLocalCoordinatesToRotation(Vec2 rotation, Vec3 direction) static Vec3Vec3.directionFromRotation(Vec2 rotation) floatVec2.distanceToSqr(Vec2 p) floatboolean -
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, PermissionSet permissions, 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