Package net.minecraft.command.argument
Record Class LocalPosArgument
java.lang.Object
java.lang.Record
net.minecraft.command.argument.LocalPosArgument
- Record Components:
x-y-z-
- All Implemented Interfaces:
PosArgument
- Mappings:
Namespace Name named net/minecraft/command/argument/LocalPosArgumentintermediary net/minecraft/class_2268official glnamed xintermediary comp_4921official bnamed yintermediary comp_4922official cnamed zintermediary comp_4923official d
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLocalPosArgument(double x, double y, double z) Creates an instance of aLocalPosArgumentrecord 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 LocalPosArgumentparse(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/LocalPosArgument;CARET:Cintermediary field_32941Lnet/minecraft/class_2268;field_32941:Cofficial aLgl;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 aLgk;a(Lej;)Lfrd;
-
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 bLgk;b(Lej;)Lfrc;
-
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 aLgk;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 bLgk;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 cLgk;c()Z
-
parse
public static LocalPosArgument 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/LocalPosArgument;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/LocalPosArgument;intermediary method_9711Lnet/minecraft/class_2268;method_9711(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2268;official aLgl;a(Lcom/mojang/brigadier/StringReader;)Lgl;
-
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/LocalPosArgument;readCoordinate(Lcom/mojang/brigadier/StringReader;I)Dintermediary method_9710Lnet/minecraft/class_2268;method_9710(Lcom/mojang/brigadier/StringReader;I)Dofficial aLgl;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
-