Package net.minecraft.command.arguments
Class LocalLocationArgument
- java.lang.Object
-
- net.minecraft.command.arguments.LocalLocationArgument
-
- All Implemented Interfaces:
ILocationArgument
public class LocalLocationArgument extends java.lang.Object implements ILocationArgument
-
-
Constructor Summary
Constructors Constructor Description LocalLocationArgument(double p_i48240_1_, double p_i48240_3_, double p_i48240_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 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
-
-
-
-
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
-
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
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-