Package net.minecraft.command.argument
Record Class CoordinateArgument
java.lang.Object
java.lang.Record
net.minecraft.command.argument.CoordinateArgument
- Record Components:
relative-value-
- Mappings:
Namespace Name named net/minecraft/command/argument/CoordinateArgumentintermediary net/minecraft/class_2278official grnamed relativeintermediary comp_4924official cnamed valueintermediary comp_4925official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate final booleanThe field for therelativerecord component.private static final charprivate final doubleThe field for thevaluerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCoordinateArgument(boolean relative, double value) Creates an instance of aCoordinateArgumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanstatic booleanisRelative(com.mojang.brigadier.StringReader reader) static CoordinateArgumentparse(com.mojang.brigadier.StringReader reader) static CoordinateArgumentparse(com.mojang.brigadier.StringReader reader, boolean centerIntegers) booleanrelative()Returns the value of therelativerecord component.doubletoAbsoluteCoordinate(double offset) final StringtoString()Returns a string representation of this record class.doublevalue()Returns the value of thevaluerecord component.
-
Field Details
-
relative
private final boolean relativeThe field for therelativerecord component. -
value
private final double valueThe field for thevaluerecord component. -
TILDE
private static final char TILDE- See Also:
- Mappings:
Namespace Name Mixin selector named TILDELnet/minecraft/command/argument/CoordinateArgument;TILDE:Cintermediary field_32972Lnet/minecraft/class_2278;field_32972:Cofficial eLgr;e:C
-
MISSING_COORDINATE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType MISSING_COORDINATE- Mappings:
Namespace Name Mixin selector named MISSING_COORDINATELnet/minecraft/command/argument/CoordinateArgument;MISSING_COORDINATE:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_10759Lnet/minecraft/class_2278;field_10759:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;official aLgr;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
MISSING_BLOCK_POSITION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType MISSING_BLOCK_POSITION- Mappings:
Namespace Name Mixin selector named MISSING_BLOCK_POSITIONLnet/minecraft/command/argument/CoordinateArgument;MISSING_BLOCK_POSITION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_10761Lnet/minecraft/class_2278;field_10761:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;official bLgr;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
-
Constructor Details
-
Method Details
-
toAbsoluteCoordinate
public double toAbsoluteCoordinate(double offset) - Mappings:
Namespace Name Mixin selector named toAbsoluteCoordinateLnet/minecraft/command/argument/CoordinateArgument;toAbsoluteCoordinate(D)Dintermediary method_9740Lnet/minecraft/class_2278;method_9740(D)Dofficial aLgr;a(D)D
-
parse
public static CoordinateArgument 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/CoordinateArgument;parse(Lcom/mojang/brigadier/StringReader;Z)Lnet/minecraft/command/argument/CoordinateArgument;intermediary method_9743Lnet/minecraft/class_2278;method_9743(Lcom/mojang/brigadier/StringReader;Z)Lnet/minecraft/class_2278;official aLgr;a(Lcom/mojang/brigadier/StringReader;Z)Lgr;
-
parse
public static CoordinateArgument 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/CoordinateArgument;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/CoordinateArgument;intermediary method_9739Lnet/minecraft/class_2278;method_9739(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2278;official aLgr;a(Lcom/mojang/brigadier/StringReader;)Lgr;
-
isRelative
public static boolean isRelative(com.mojang.brigadier.StringReader reader) - Mappings:
Namespace Name Mixin selector named isRelativeLnet/minecraft/command/argument/CoordinateArgument;isRelative(Lcom/mojang/brigadier/StringReader;)Zintermediary method_9742Lnet/minecraft/class_2278;method_9742(Lcom/mojang/brigadier/StringReader;)Zofficial bLgr;b(Lcom/mojang/brigadier/StringReader;)Z
-
isRelative
public boolean isRelative()- Mappings:
Namespace Name Mixin selector named isRelativeLnet/minecraft/command/argument/CoordinateArgument;isRelative()Zintermediary method_9741Lnet/minecraft/class_2278;method_9741()Zofficial aLgr;a()Z
-
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 '=='. -
relative
public boolean relative()Returns the value of therelativerecord component.- Returns:
- the value of the
relativerecord component
-
value
public double value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-