Package net.minecraft.command.argument
Class CoordinateArgument
java.lang.Object
net.minecraft.command.argument.CoordinateArgument
- Mappings:
Namespace Name official fs
intermediary net/minecraft/class_2278
named net/minecraft/command/argument/CoordinateArgument
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private final boolean
private static final char
private final double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
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
-
TILDE
private static final char TILDE- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lfs;c:C
intermediary field_32972
Lnet/minecraft/class_2278;field_32972:C
named TILDE
Lnet/minecraft/command/argument/CoordinateArgument;TILDE:C
-
MISSING_COORDINATE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType MISSING_COORDINATE- Mappings:
Namespace Name Mixin selector official a
Lfs;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
Lfs;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 d
Lfs;d: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 e
Lfs;e: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>
Lfs;<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
Lfs;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
Lfs;a(Lcom/mojang/brigadier/StringReader;Z)Lfs;
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
Lfs;a(Lcom/mojang/brigadier/StringReader;)Lfs;
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
Lfs;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
Lfs;a()Z
intermediary method_9741
Lnet/minecraft/class_2278;method_9741()Z
named isRelative
Lnet/minecraft/command/argument/CoordinateArgument;isRelative()Z
-