Package net.minecraft.command.argument
Class DefaultPosArgument
java.lang.Object
net.minecraft.command.argument.DefaultPosArgument
- All Implemented Interfaces:
PosArgument
public class DefaultPosArgument extends Object implements PosArgument
-
Field Summary
Fields Modifier and Type Field Description private CoordinateArgumentxprivate CoordinateArgumentyprivate CoordinateArgumentz -
Constructor Summary
Constructors Constructor Description DefaultPosArgument(CoordinateArgument x, CoordinateArgument y, CoordinateArgument z) -
Method Summary
Modifier and Type Method Description booleanequals(Object o)inthashCode()booleanisXRelative()booleanisYRelative()booleanisZRelative()static DefaultPosArgumentparse(com.mojang.brigadier.StringReader reader)static DefaultPosArgumentparse(com.mojang.brigadier.StringReader reader, boolean centerIntegers)Vec3dtoAbsolutePos(ServerCommandSource source)Vec2ftoAbsoluteRotation(ServerCommandSource source)static DefaultPosArgumentzero()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.command.argument.PosArgument
toAbsoluteBlockPos
-
Field Details
-
x
-
y
-
z
-
-
Constructor Details
-
DefaultPosArgument
-
-
Method Details
-
toAbsolutePos
- Specified by:
toAbsolutePosin interfacePosArgument
-
toAbsoluteRotation
- Specified by:
toAbsoluteRotationin interfacePosArgument
-
isXRelative
public boolean isXRelative()- Specified by:
isXRelativein interfacePosArgument
-
isYRelative
public boolean isYRelative()- Specified by:
isYRelativein interfacePosArgument
-
isZRelative
public boolean isZRelative()- Specified by:
isZRelativein interfacePosArgument
-
equals
-
parse
public static DefaultPosArgument parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parse
public static DefaultPosArgument parse(com.mojang.brigadier.StringReader reader, boolean centerIntegers) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
zero
-
hashCode
public int hashCode()
-