Package net.minecraft.command.arguments
Class LocalLocationArgument
java.lang.Object
net.minecraft.command.arguments.LocalLocationArgument
- All Implemented Interfaces:
ILocationArgument
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLocalLocationArgument
(double p_i48240_1_, double p_i48240_3_, double p_i48240_5_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getPosition
(CommandSource p_197281_1_) getRotation
(CommandSource p_197282_1_) int
hashCode()
boolean
boolean
boolean
static LocalLocationArgument
parse
(com.mojang.brigadier.StringReader p_200142_0_) private static double
readDouble
(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, wait
Methods 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:
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
-
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()
-