Package net.minecraft.command.argument
Class CoordinateArgument
java.lang.Object
net.minecraft.command.argument.CoordinateArgument
public class CoordinateArgument extends Object
- Mappings:
Namespace Name official es
intermediary net/minecraft/class_2278
named net/minecraft/command/argument/CoordinateArgument
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
MISSING_BLOCK_POSITION
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
MISSING_COORDINATE
private boolean
relative
private double
value
-
Constructor Summary
Constructors Constructor Description CoordinateArgument(boolean relative, double value)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
boolean
isRelative()
static boolean
isRelative(com.mojang.brigadier.StringReader reader)
static CoordinateArgument
parse(com.mojang.brigadier.StringReader reader)
static CoordinateArgument
parse(com.mojang.brigadier.StringReader reader, boolean centerIntegers)
double
toAbsoluteCoordinate(double offset)
-
Field Details
-
MISSING_COORDINATE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType MISSING_COORDINATE- Mappings:
Namespace Name Mixin selector official a
Les;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_10759
Lnet/minecraft/class_2278;field_10759:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
named MISSING_COORDINATE
Lnet/minecraft/command/argument/CoordinateArgument;MISSING_COORDINATE:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
MISSING_BLOCK_POSITION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType MISSING_BLOCK_POSITION- Mappings:
Namespace Name Mixin selector official b
Les;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_10761
Lnet/minecraft/class_2278;field_10761:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
named MISSING_BLOCK_POSITION
Lnet/minecraft/command/argument/CoordinateArgument;MISSING_BLOCK_POSITION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
relative
private final boolean relative- Mappings:
Namespace Name Mixin selector official c
Les;c:Z
intermediary field_10760
Lnet/minecraft/class_2278;field_10760:Z
named relative
Lnet/minecraft/command/argument/CoordinateArgument;relative:Z
-
value
private final double value- Mappings:
Namespace Name Mixin selector official d
Les;d:D
intermediary field_10758
Lnet/minecraft/class_2278;field_10758:D
named value
Lnet/minecraft/command/argument/CoordinateArgument;value:D
-
-
Constructor Details
-
CoordinateArgument
public CoordinateArgument(boolean relative, double value)- Mappings:
Namespace Name Mixin selector official <init>
Les;<init>(ZD)V
intermediary <init>
Lnet/minecraft/class_2278;<init>(ZD)V
named <init>
Lnet/minecraft/command/argument/CoordinateArgument;<init>(ZD)V
-
-
Method Details
-
toAbsoluteCoordinate
public double toAbsoluteCoordinate(double offset)- Mappings:
Namespace Name Mixin selector official a
Les;a(D)D
intermediary method_9740
Lnet/minecraft/class_2278;method_9740(D)D
named toAbsoluteCoordinate
Lnet/minecraft/command/argument/CoordinateArgument;toAbsoluteCoordinate(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 official a
Les;a(Lcom/mojang/brigadier/StringReader;Z)Les;
intermediary method_9743
Lnet/minecraft/class_2278;method_9743(Lcom/mojang/brigadier/StringReader;Z)Lnet/minecraft/class_2278;
named parse
Lnet/minecraft/command/argument/CoordinateArgument;parse(Lcom/mojang/brigadier/StringReader;Z)Lnet/minecraft/command/argument/CoordinateArgument;
-
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 official a
Les;a(Lcom/mojang/brigadier/StringReader;)Les;
intermediary method_9739
Lnet/minecraft/class_2278;method_9739(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2278;
named parse
Lnet/minecraft/command/argument/CoordinateArgument;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/CoordinateArgument;
-
isRelative
public static boolean isRelative(com.mojang.brigadier.StringReader reader)- Mappings:
Namespace Name Mixin selector official b
Les;b(Lcom/mojang/brigadier/StringReader;)Z
intermediary method_9742
Lnet/minecraft/class_2278;method_9742(Lcom/mojang/brigadier/StringReader;)Z
named isRelative
Lnet/minecraft/command/argument/CoordinateArgument;isRelative(Lcom/mojang/brigadier/StringReader;)Z
-
equals
-
hashCode
public int hashCode() -
isRelative
public boolean isRelative()- Mappings:
Namespace Name Mixin selector official a
Les;a()Z
intermediary method_9741
Lnet/minecraft/class_2278;method_9741()Z
named isRelative
Lnet/minecraft/command/argument/CoordinateArgument;isRelative()Z
-