Package net.minecraft.command.argument
Record Class DefaultPosArgument
java.lang.Object
java.lang.Record
net.minecraft.command.argument.DefaultPosArgument
- Record Components:
x-y-z-
- All Implemented Interfaces:
PosArgument
public record DefaultPosArgument(CoordinateArgument x, CoordinateArgument y, CoordinateArgument z)
extends Record
implements PosArgument
- Mappings:
Namespace Name named net/minecraft/command/argument/DefaultPosArgumentintermediary net/minecraft/class_2280official gsnamed xintermediary comp_4926official bnamed yintermediary comp_4927official cnamed zintermediary comp_4928official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DefaultPosArgumentprivate final CoordinateArgumentThe field for thexrecord component.private final CoordinateArgumentThe field for theyrecord component.private final CoordinateArgumentThe field for thezrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aDefaultPosArgumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultPosArgumentabsolute(double x, double y, double z) static DefaultPosArgumentfinal 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 DefaultPosArgumentparse(com.mojang.brigadier.StringReader reader) static DefaultPosArgumentparse(com.mojang.brigadier.StringReader reader, boolean centerIntegers) final StringtoString()Returns a string representation of this record class.x()Returns the value of thexrecord component.y()Returns the value of theyrecord component.z()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
The field for thexrecord component. -
y
The field for theyrecord component. -
z
The field for thezrecord component. -
DEFAULT_ROTATION
- Mappings:
Namespace Name Mixin selector named DEFAULT_ROTATIONLnet/minecraft/command/argument/DefaultPosArgument;DEFAULT_ROTATION:Lnet/minecraft/command/argument/DefaultPosArgument;intermediary field_63064Lnet/minecraft/class_2280;field_63064:Lnet/minecraft/class_2280;official aLgs;a:Lgs;
-
-
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 DefaultPosArgument 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/DefaultPosArgument;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/DefaultPosArgument;intermediary method_9749Lnet/minecraft/class_2280;method_9749(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2280;official aLgs;a(Lcom/mojang/brigadier/StringReader;)Lgs;
-
parse
public static DefaultPosArgument parse(com.mojang.brigadier.StringReader reader, boolean centerIntegers) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/command/argument/DefaultPosArgument;parse(Lcom/mojang/brigadier/StringReader;Z)Lnet/minecraft/command/argument/DefaultPosArgument;intermediary method_9750Lnet/minecraft/class_2280;method_9750(Lcom/mojang/brigadier/StringReader;Z)Lnet/minecraft/class_2280;official aLgs;a(Lcom/mojang/brigadier/StringReader;Z)Lgs;
-
absolute
- Mappings:
Namespace Name Mixin selector named absoluteLnet/minecraft/command/argument/DefaultPosArgument;absolute(DDD)Lnet/minecraft/command/argument/DefaultPosArgument;intermediary method_35810Lnet/minecraft/class_2280;method_35810(DDD)Lnet/minecraft/class_2280;official aLgs;a(DDD)Lgs;
-
absolute
- Mappings:
Namespace Name Mixin selector named absoluteLnet/minecraft/command/argument/DefaultPosArgument;absolute(Lnet/minecraft/util/math/Vec2f;)Lnet/minecraft/command/argument/DefaultPosArgument;intermediary method_35811Lnet/minecraft/class_2280;method_35811(Lnet/minecraft/class_241;)Lnet/minecraft/class_2280;official aLgs;a(Lfog;)Lgs;
-
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 withObjects::equals(Object,Object). -
x
Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-