Class LookingPosArgument

java.lang.Object
net.minecraft.command.argument.LookingPosArgument
All Implemented Interfaces:
PosArgument

public class LookingPosArgument
extends Object
implements PosArgument
  • Field Details

    • x

      private final double x
    • y

      private final double y
    • z

      private final double z
  • Constructor Details

    • LookingPosArgument

      public LookingPosArgument​(double x, double y, double z)
  • Method Details

    • toAbsolutePos

      public Vec3d toAbsolutePos​(ServerCommandSource source)
      Specified by:
      toAbsolutePos in interface PosArgument
    • toAbsoluteRotation

      public Vec2f toAbsoluteRotation​(ServerCommandSource source)
      Specified by:
      toAbsoluteRotation in interface PosArgument
    • isXRelative

      public boolean isXRelative()
      Specified by:
      isXRelative in interface PosArgument
    • isYRelative

      public boolean isYRelative()
      Specified by:
      isYRelative in interface PosArgument
    • isZRelative

      public boolean isZRelative()
      Specified by:
      isZRelative in interface PosArgument
    • parse

      public static LookingPosArgument parse​(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readCoordinate

      private static double readCoordinate​(com.mojang.brigadier.StringReader reader, int startingCursorPos) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object