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 booleanequals(java.lang.Object p_equals_1_)Vector3dgetPosition(CommandSource p_197281_1_)Vector2fgetRotation(CommandSource p_197282_1_)inthashCode()booleanisXRelative()booleanisYRelative()booleanisZRelative()static 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, wait
-
Methods inherited from interface net.minecraft.command.arguments.ILocationArgument
getBlockPos
-
-
-
-
Method Detail
-
getPosition
public Vector3d getPosition(CommandSource p_197281_1_)
- Specified by:
getPositionin interfaceILocationArgument
-
getRotation
public Vector2f getRotation(CommandSource p_197282_1_)
- 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
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-