Package net.minecraft.command.arguments
Class LocationInput
- java.lang.Object
-
- net.minecraft.command.arguments.LocationInput
-
- All Implemented Interfaces:
ILocationArgument
public class LocationInput extends java.lang.Object implements ILocationArgument
-
-
Field Summary
Fields Modifier and Type Field Description private LocationPart
x
private LocationPart
y
private LocationPart
z
-
Constructor Summary
Constructors Constructor Description LocationInput(LocationPart p_i47962_1_, LocationPart p_i47962_2_, LocationPart p_i47962_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocationInput
current()
boolean
equals(java.lang.Object p_equals_1_)
Vector3d
getPosition(CommandSource p_197281_1_)
Vector2f
getRotation(CommandSource p_197282_1_)
int
hashCode()
boolean
isXRelative()
boolean
isYRelative()
boolean
isZRelative()
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 Detail
-
x
private final LocationPart x
-
y
private final LocationPart y
-
z
private final LocationPart z
-
-
Constructor Detail
-
LocationInput
public LocationInput(LocationPart p_i47962_1_, LocationPart p_i47962_2_, LocationPart p_i47962_3_)
-
-
Method Detail
-
getPosition
public Vector3d getPosition(CommandSource p_197281_1_)
- Specified by:
getPosition
in interfaceILocationArgument
-
getRotation
public Vector2f getRotation(CommandSource p_197282_1_)
- 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
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
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
public static LocationInput current()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-