Class PositionImpl

java.lang.Object
net.minecraft.util.math.PositionImpl
All Implemented Interfaces:
Position

public class PositionImpl extends Object implements Position
Mappings:
Namespace Name
official gv
intermediary net/minecraft/class_2376
named net/minecraft/util/math/PositionImpl
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final double
     
    protected final double
     
    protected final double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    PositionImpl(double x, double y, double z)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the X coordinate.
    double
    Returns the Y coordinate.
    double
    Returns the Z coordinate.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • x

      protected final double x
      Mappings:
      Namespace Name Mixin selector
      official a Lgv;a:D
      intermediary field_11119 Lnet/minecraft/class_2376;field_11119:D
      named x Lnet/minecraft/util/math/PositionImpl;x:D
    • y

      protected final double y
      Mappings:
      Namespace Name Mixin selector
      official b Lgv;b:D
      intermediary field_11118 Lnet/minecraft/class_2376;field_11118:D
      named y Lnet/minecraft/util/math/PositionImpl;y:D
    • z

      protected final double z
      Mappings:
      Namespace Name Mixin selector
      official c Lgv;c:D
      intermediary field_11117 Lnet/minecraft/class_2376;field_11117:D
      named z Lnet/minecraft/util/math/PositionImpl;z:D
  • Constructor Details

    • PositionImpl

      public PositionImpl(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lgv;<init>(DDD)V
      intermediary <init> Lnet/minecraft/class_2376;<init>(DDD)V
      named <init> Lnet/minecraft/util/math/PositionImpl;<init>(DDD)V
  • Method Details

    • getX

      public double getX()
      Returns the X coordinate.
      Specified by:
      getX in interface Position
      Mappings:
      Namespace Name Mixin selector
      official a Lgu;a()D
      intermediary method_10216 Lnet/minecraft/class_2374;method_10216()D
      named getX Lnet/minecraft/util/math/Position;getX()D
    • getY

      public double getY()
      Returns the Y coordinate.
      Specified by:
      getY in interface Position
      Mappings:
      Namespace Name Mixin selector
      official b Lgu;b()D
      intermediary method_10214 Lnet/minecraft/class_2374;method_10214()D
      named getY Lnet/minecraft/util/math/Position;getY()D
    • getZ

      public double getZ()
      Returns the Z coordinate.
      Specified by:
      getZ in interface Position
      Mappings:
      Namespace Name Mixin selector
      official c Lgu;c()D
      intermediary method_10215 Lnet/minecraft/class_2374;method_10215()D
      named getZ Lnet/minecraft/util/math/Position;getZ()D