Uses of Class
net.minecraft.util.math.Vec2f
Packages that use Vec2f
Package
Description
-
Uses of Vec2f in net.minecraft.block
Methods in net.minecraft.block that return types with arguments of type Vec2fModifier and TypeMethodDescriptionInteractibleSlotContainer.getHitPosOnFront(BlockHitResult hitResult, Direction facing) -
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
Fields in net.minecraft.client.input declared as Vec2fMethods in net.minecraft.client.input that return Vec2f -
Uses of Vec2f in net.minecraft.client.network
Methods in net.minecraft.client.network that return Vec2fModifier and TypeMethodDescriptionprivate static Vec2fClientPlayerEntity.applyDirectionalMovementSpeedFactors(Vec2f vec) private Vec2fClientPlayerEntity.applyMovementSpeedFactors(Vec2f input) Methods in net.minecraft.client.network with parameters of type Vec2fModifier and TypeMethodDescriptionprivate static Vec2fClientPlayerEntity.applyDirectionalMovementSpeedFactors(Vec2f vec) private Vec2fClientPlayerEntity.applyMovementSpeedFactors(Vec2f input) private static floatClientPlayerEntity.getDirectionalMovementSpeedMultiplier(Vec2f vec) -
Uses of Vec2f in net.minecraft.command.argument
Methods in net.minecraft.command.argument that return Vec2fModifier and TypeMethodDescriptionDefaultPosArgument.getRotation(ServerCommandSource source) LocalPosArgument.getRotation(ServerCommandSource source) PosArgument.getRotation(ServerCommandSource source) static Vec2fVec2ArgumentType.getVec2(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) Methods in net.minecraft.command.argument with parameters of type Vec2f -
Uses of Vec2f in net.minecraft.entity
Fields in net.minecraft.entity declared as Vec2fMethods in net.minecraft.entity that return Vec2f -
Uses of Vec2f in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive that return Vec2fModifier and TypeMethodDescriptionprotected Vec2fAbstractHorseEntity.getControlledRotation(LivingEntity controllingPassenger) protected Vec2fAbstractNautilusEntity.getControlledRotation(LivingEntity entity) protected Vec2fCamelEntity.getControlledRotation(LivingEntity controllingPassenger) protected Vec2fHappyGhastEntity.getGhastRotation(LivingEntity controllingEntity) -
Uses of Vec2f in net.minecraft.server.chase
Fields in net.minecraft.server.chase declared as Vec2fModifier and TypeFieldDescriptionprivate final Vec2fChaseClient.TeleportPos.rotThe field for therotrecord component.Methods in net.minecraft.server.chase that return Vec2fModifier and TypeMethodDescriptionChaseClient.TeleportPos.rot()Returns the value of therotrecord 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 aTeleportPosrecord 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 intSpreadPlayersCommand.execute(ServerCommandSource source, Vec2f center, float spreadDistance, float maxRange, int maxY, boolean respectTeams, Collection<? extends Entity> targets) private static intWorldBorderCommand.executeCenter(ServerCommandSource source, Vec2f pos) private static voidSpreadPlayersCommand.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, PermissionPredicate permissions, String name, Text displayName, MinecraftServer server, @Nullable Entity entity) privateServerCommandSource(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, PermissionPredicate permissions, String name, Text displayName, MinecraftServer server, @Nullable Entity entity, boolean silent, ReturnValueConsumer resultStorer, EntityAnchorArgumentType.EntityAnchor entityAnchor, SignedCommandArguments signedArguments, FutureQueue messageChainTaskQueue) -
Uses of Vec2f in net.minecraft.server.network
Fields in net.minecraft.server.network declared as Vec2fModifier and TypeFieldDescriptionprivate final Vec2fPrepareSpawnTask.LoadPlayerChunks.rotationprivate final Vec2fPrepareSpawnTask.PlayerSpawn.rotationFields in net.minecraft.server.network with type parameters of type Vec2fModifier and TypeFieldDescriptionServerPlayerEntity.SavePos.rotationThe field for therotationrecord component.Methods in net.minecraft.server.network that return types with arguments of type Vec2fModifier and TypeMethodDescriptionServerPlayerEntity.SavePos.rotation()Returns the value of therotationrecord component.Constructors in net.minecraft.server.network with parameters of type Vec2fModifierConstructorDescription(package private)LoadPlayerChunks(ServerWorld world, CompletableFuture<Vec3d> spawnPos, Vec2f rotation) (package private)PlayerSpawn(ServerWorld world, Vec3d spawnPos, Vec2f rotation) -
Uses of Vec2f in net.minecraft.util.math
Fields in net.minecraft.util.math declared as Vec2fModifier and TypeFieldDescriptionstatic final Vec2fVec2f.EAST_UNITstatic final Vec2fVec2f.MAX_SOUTH_EASTstatic final Vec2fVec2f.MIN_SOUTH_EASTstatic final Vec2fVec2f.NORTH_UNITstatic final Vec2fVec2f.SOUTH_EAST_UNITstatic final Vec2fVec2f.SOUTH_UNITstatic final Vec2fVec2f.WEST_UNITstatic final Vec2fVec2f.ZEROFields in net.minecraft.util.math with type parameters of type Vec2fMethods in net.minecraft.util.math that return Vec2fModifier and TypeMethodDescriptionVec2f.add(float value) Vec3d.getYawAndPitch()Vec2f.multiply(float value) Vec2f.negate()Vec2f.normalize()Methods in net.minecraft.util.math with parameters of type Vec2fModifier and TypeMethodDescriptionfloatVec2f.distanceSquared(Vec2f vec) floatbooleanstatic Vec3dConverts pitch and yaw into a direction vector.static Vec3dVec3d.transformLocalPos(Vec2f rotation, Vec3d vec)