Uses of Class
net.minecraft.world.phys.Vec2
Package
Description
-
Uses of Vec2 in net.minecraft.client.gui.components
-
Uses of Vec2 in net.minecraft.client.player
-
Uses of Vec2 in net.minecraft.commands
ModifierConstructorDescriptionCommandSourceStack
(CommandSource p_81302_, Vec3 p_81303_, Vec2 p_81304_, ServerLevel p_81305_, int p_81306_, String p_81307_, Component p_81308_, MinecraftServer p_81309_, Entity p_81310_) protected
CommandSourceStack
(CommandSource p_242362_, Vec3 p_242272_, Vec2 p_242166_, ServerLevel p_242273_, int p_242279_, String p_242187_, Component p_242467_, MinecraftServer p_242416_, Entity p_242300_, boolean p_242243_, com.mojang.brigadier.ResultConsumer<CommandSourceStack> p_242375_, EntityAnchorArgument.Anchor p_242201_, CommandSigningContext p_242188_, TaskChainer p_242249_) -
Uses of Vec2 in net.minecraft.commands.arguments.coordinates
Modifier and TypeMethodDescriptionCoordinates.getRotation
(CommandSourceStack p_119567_) LocalCoordinates.getRotation
(CommandSourceStack p_119915_) WorldCoordinates.getRotation
(CommandSourceStack p_120896_) static Vec2
Vec2Argument.getVec2
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_120826_, String p_120827_) -
Uses of Vec2 in net.minecraft.server.chase
Modifier and TypeFieldDescriptionprivate final Vec2
ChaseClient.TeleportTarget.rot
The field for therot
record component.Modifier and TypeMethodDescriptionChaseClient.TeleportTarget.rot()
Returns the value of therot
record component.ModifierConstructorDescription(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
Modifier and TypeMethodDescriptionprivate static int
WorldBorderCommand.setCenter
(CommandSourceStack p_139263_, Vec2 p_139264_) private static int
SpreadPlayersCommand.spreadPlayers
(CommandSourceStack p_138703_, Vec2 p_138704_, float p_138705_, float p_138706_, int p_138707_, boolean p_138708_, Collection<? extends Entity> p_138709_) private static void
SpreadPlayersCommand.spreadPositions
(Vec2 p_214741_, double p_214742_, ServerLevel p_214743_, RandomSource p_214744_, double p_214745_, double p_214746_, double p_214747_, double p_214748_, int p_214749_, SpreadPlayersCommand.Position[] p_214750_, boolean p_214751_) -
Uses of Vec2 in net.minecraft.world.entity
-
Uses of Vec2 in net.minecraft.world.level.block
Modifier and TypeMethodDescriptionChiseledBookShelfBlock.getRelativeHitCoordinatesForBlockFace
(BlockHitResult p_261714_, Direction p_262116_) Modifier and TypeMethodDescriptionprivate static int
ChiseledBookShelfBlock.getHitSlot
(Vec2 p_261991_) -
Uses of Vec2 in net.minecraft.world.phys
Modifier 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
Modifier and TypeMethodDescriptionVec2.add
(float p_165909_) Vec2.negated()
Vec2.normalized()
Vec2.scale
(float p_165904_) -
Uses of Vec2 in net.minecraftforge.client
ModifierConstructorDescriptionClientCommandSourceStack
(CommandSource source, Vec3 position, Vec2 rotation, int permission, String plainTextName, Component displayName, Entity executing) -
Uses of Vec2 in net.minecraftforge.client.model.obj