Package net.minecraft.command.arguments
Class LocationInput
java.lang.Object
net.minecraft.command.arguments.LocationInput
- All Implemented Interfaces:
ILocationArgument
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LocationPart
private final LocationPart
private final LocationPart
-
Constructor Summary
ConstructorsConstructorDescriptionLocationInput
(LocationPart p_i47962_1_, LocationPart p_i47962_2_, LocationPart p_i47962_3_) -
Method Summary
Modifier and TypeMethodDescriptionstatic LocationInput
current()
boolean
getPosition
(CommandSource p_197281_1_) getRotation
(CommandSource p_197282_1_) int
hashCode()
boolean
boolean
boolean
static LocationInput
parseDouble
(com.mojang.brigadier.StringReader p_200147_0_, boolean p_200147_1_) static LocationInput
parseInt
(com.mojang.brigadier.StringReader p_200148_0_) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.command.arguments.ILocationArgument
getBlockPos
-
Field Details
-
x
-
y
-
z
-
-
Constructor Details
-
LocationInput
-
-
Method Details
-
getPosition
- Specified by:
getPosition
in interfaceILocationArgument
-
getRotation
- Specified by:
getRotation
in interfaceILocationArgument
-
isXRelative
public boolean isXRelative()- Specified by:
isXRelative
in interfaceILocationArgument
-
isYRelative
public boolean isYRelative()- Specified by:
isYRelative
in interfaceILocationArgument
-
isZRelative
public boolean isZRelative()- Specified by:
isZRelative
in interfaceILocationArgument
-
equals
-
parseInt
public static LocationInput parseInt(com.mojang.brigadier.StringReader p_200148_0_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parseDouble
public static LocationInput parseDouble(com.mojang.brigadier.StringReader p_200147_0_, boolean p_200147_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
current
-
hashCode
public int hashCode()
-