Class LocalLocationArgument

java.lang.Object
net.minecraft.command.arguments.LocalLocationArgument
All Implemented Interfaces:
ILocationArgument

public class LocalLocationArgument extends Object implements ILocationArgument
  • Field Details

    • left

      private final double left
    • up

      private final double up
    • forwards

      private final double forwards
  • Constructor Details

    • LocalLocationArgument

      public LocalLocationArgument(double p_i48240_1_, double p_i48240_3_, double p_i48240_5_)
  • Method Details

    • getPosition

      public Vector3d getPosition(CommandSource p_197281_1_)
      Specified by:
      getPosition in interface ILocationArgument
    • getRotation

      public Vector2f getRotation(CommandSource p_197282_1_)
      Specified by:
      getRotation in interface ILocationArgument
    • isXRelative

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

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

      public boolean isZRelative()
      Specified by:
      isZRelative in interface ILocationArgument
    • 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(Object p_equals_1_)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object