Package net.minecraft.command.arguments
Class LocalLocationArgument
java.lang.Object
net.minecraft.command.arguments.LocalLocationArgument
- All Implemented Interfaces:
ILocationArgument
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLocalLocationArgument(double p_i48240_1_, double p_i48240_3_, double p_i48240_5_) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetPosition(CommandSource p_197281_1_) getRotation(CommandSource p_197282_1_) inthashCode()booleanbooleanbooleanstatic LocalLocationArgumentparse(com.mojang.brigadier.StringReader p_200142_0_) private static doublereadDouble(com.mojang.brigadier.StringReader p_200143_0_, int p_200143_1_) 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
-
left
private final double left -
up
private final double up -
forwards
private final double forwards
-
-
Constructor Details
-
LocalLocationArgument
public LocalLocationArgument(double p_i48240_1_, double p_i48240_3_, double p_i48240_5_)
-
-
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
-
parse
public static LocalLocationArgument parse(com.mojang.brigadier.StringReader p_200142_0_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readDouble
private static double readDouble(com.mojang.brigadier.StringReader p_200143_0_, int p_200143_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
equals
-
hashCode
public int hashCode()
-