Package net.minecraft.command.argument
Record Class LookingPosArgument
java.lang.Object
java.lang.Record
net.minecraft.command.argument.LookingPosArgument
- Record Components:
x-y-z-
- All Implemented Interfaces:
PosArgument
public record LookingPosArgument(double x, double y, double z)
extends Record
implements PosArgument
- Mappings:
Namespace Name named net/minecraft/command/argument/LookingPosArgumentintermediary net/minecraft/class_2268official gmnamed xintermediary comp_4921official bnamed yintermediary comp_4922official cnamed zintermediary comp_4923official d
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLookingPosArgument(double x, double y, double z) Creates an instance of aLookingPosArgumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getPos(ServerCommandSource source) getRotation(ServerCommandSource source) final inthashCode()Returns a hash code value for this object.booleanbooleanbooleanstatic LookingPosArgumentparse(com.mojang.brigadier.StringReader reader) private static doublereadCoordinate(com.mojang.brigadier.StringReader reader, int startingCursorPos) final StringtoString()Returns a string representation of this record class.doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.doublez()Returns the value of thezrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.command.argument.PosArgument
toAbsoluteBlockPos
-
Field Details
-
x
private final double xThe field for thexrecord component. -
y
private final double yThe field for theyrecord component. -
z
private final double zThe field for thezrecord component. -
CARET
public static final char CARET- See Also:
- Mappings:
Namespace Name Mixin selector named CARETLnet/minecraft/command/argument/LookingPosArgument;CARET:Cintermediary field_32941Lnet/minecraft/class_2268;field_32941:Cofficial aLgm;a:C
-
-
Constructor Details
-
Method Details
-
getPos
- Specified by:
getPosin interfacePosArgument- Mappings:
Namespace Name Mixin selector named getPosLnet/minecraft/command/argument/PosArgument;getPos(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/util/math/Vec3d;intermediary method_9708Lnet/minecraft/class_2267;method_9708(Lnet/minecraft/class_2168;)Lnet/minecraft/class_243;official aLgl;a(Lej;)Lfoh;
-
getRotation
- Specified by:
getRotationin interfacePosArgument- Mappings:
Namespace Name Mixin selector named getRotationLnet/minecraft/command/argument/PosArgument;getRotation(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/util/math/Vec2f;intermediary method_9709Lnet/minecraft/class_2267;method_9709(Lnet/minecraft/class_2168;)Lnet/minecraft/class_241;official bLgl;b(Lej;)Lfog;
-
isXRelative
public boolean isXRelative()- Specified by:
isXRelativein interfacePosArgument- Mappings:
Namespace Name Mixin selector named isXRelativeLnet/minecraft/command/argument/PosArgument;isXRelative()Zintermediary method_9705Lnet/minecraft/class_2267;method_9705()Zofficial aLgl;a()Z
-
isYRelative
public boolean isYRelative()- Specified by:
isYRelativein interfacePosArgument- Mappings:
Namespace Name Mixin selector named isYRelativeLnet/minecraft/command/argument/PosArgument;isYRelative()Zintermediary method_9706Lnet/minecraft/class_2267;method_9706()Zofficial bLgl;b()Z
-
isZRelative
public boolean isZRelative()- Specified by:
isZRelativein interfacePosArgument- Mappings:
Namespace Name Mixin selector named isZRelativeLnet/minecraft/command/argument/PosArgument;isZRelative()Zintermediary method_9707Lnet/minecraft/class_2267;method_9707()Zofficial cLgl;c()Z
-
parse
public static LookingPosArgument parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/command/argument/LookingPosArgument;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/LookingPosArgument;intermediary method_9711Lnet/minecraft/class_2268;method_9711(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2268;official aLgm;a(Lcom/mojang/brigadier/StringReader;)Lgm;
-
readCoordinate
private static double readCoordinate(com.mojang.brigadier.StringReader reader, int startingCursorPos) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named readCoordinateLnet/minecraft/command/argument/LookingPosArgument;readCoordinate(Lcom/mojang/brigadier/StringReader;I)Dintermediary method_9710Lnet/minecraft/class_2268;method_9710(Lcom/mojang/brigadier/StringReader;I)Dofficial aLgm;a(Lcom/mojang/brigadier/StringReader;I)D
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
x
public double x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public double y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public double z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-