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 LocationPartprivate final LocationPartprivate final LocationPart -
Constructor Summary
ConstructorsConstructorDescriptionLocationInput(LocationPart p_i47962_1_, LocationPart p_i47962_2_, LocationPart p_i47962_3_) -
Method Summary
Modifier and TypeMethodDescriptionstatic LocationInputcurrent()booleangetPosition(CommandSource p_197281_1_) getRotation(CommandSource p_197282_1_) inthashCode()booleanbooleanbooleanstatic LocationInputparseDouble(com.mojang.brigadier.StringReader p_200147_0_, boolean p_200147_1_) static LocationInputparseInt(com.mojang.brigadier.StringReader p_200148_0_) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.command.arguments.ILocationArgument
getBlockPos
-
Field Details
-
x
-
y
-
z
-
-
Constructor Details
-
LocationInput
-
-
Method Details
-
getPosition
- Specified by:
getPositionin interfaceILocationArgument
-
getRotation
- Specified by:
getRotationin interfaceILocationArgument
-
isXRelative
public boolean isXRelative()- Specified by:
isXRelativein interfaceILocationArgument
-
isYRelative
public boolean isYRelative()- Specified by:
isYRelativein interfaceILocationArgument
-
isZRelative
public boolean isZRelative()- Specified by:
isZRelativein 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()
-