Class LocalCoordinates

java.lang.Object
net.minecraft.commands.arguments.coordinates.LocalCoordinates
All Implemented Interfaces:
Coordinates

public class LocalCoordinates extends Object implements Coordinates
  • Field Details

    • PREFIX_LOCAL_COORDINATE

      public static final char PREFIX_LOCAL_COORDINATE
      See Also:
    • left

      private final double left
    • up

      private final double up
    • forwards

      private final double forwards
  • Constructor Details

    • LocalCoordinates

      public LocalCoordinates(double p_119902_, double p_119903_, double p_119904_)
  • Method Details

    • getPosition

      public Vec3 getPosition(CommandSourceStack p_119912_)
      Specified by:
      getPosition in interface Coordinates
    • getRotation

      public Vec2 getRotation(CommandSourceStack p_119915_)
      Specified by:
      getRotation in interface Coordinates
    • isXRelative

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

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

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

      public static LocalCoordinates parse(com.mojang.brigadier.StringReader p_119907_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readDouble

      private static double readDouble(com.mojang.brigadier.StringReader p_119909_, int p_119910_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object