Class Vector3i

  • All Implemented Interfaces:
    java.lang.Comparable<Vector3i>
    Direct Known Subclasses:
    BlockPos, SectionPos

    @Immutable
    public class Vector3i
    extends java.lang.Object
    implements java.lang.Comparable<Vector3i>
    • Field Detail

      • CODEC

        public static final com.mojang.serialization.Codec<Vector3i> CODEC
      • ZERO

        public static final Vector3i ZERO
      • x

        private int x
      • y

        private int y
      • z

        private int z
    • Constructor Detail

      • Vector3i

        public Vector3i​(int p_i46007_1_,
                        int p_i46007_2_,
                        int p_i46007_3_)
      • Vector3i

        public Vector3i​(double p_i46008_1_,
                        double p_i46008_3_,
                        double p_i46008_5_)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object p_equals_1_)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo​(Vector3i p_compareTo_1_)
        Specified by:
        compareTo in interface java.lang.Comparable<Vector3i>
      • getX

        public int getX()
      • getY

        public int getY()
      • getZ

        public int getZ()
      • setX

        protected void setX​(int p_223471_1_)
      • setY

        protected void setY​(int p_185336_1_)
      • setZ

        protected void setZ​(int p_223472_1_)
      • above

        public Vector3i above​(int p_177981_1_)
      • below

        public Vector3i below​(int p_177979_1_)
      • closerThan

        public boolean closerThan​(Vector3i p_218141_1_,
                                  double p_218141_2_)
      • closerThan

        public boolean closerThan​(IPosition p_218137_1_,
                                  double p_218137_2_)
      • distSqr

        public double distSqr​(Vector3i p_177951_1_)
      • distSqr

        public double distSqr​(IPosition p_218138_1_,
                              boolean p_218138_2_)
      • distSqr

        public double distSqr​(double p_218140_1_,
                              double p_218140_3_,
                              double p_218140_5_,
                              boolean p_218140_7_)
      • distManhattan

        public int distManhattan​(Vector3i p_218139_1_)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toShortString

        public java.lang.String toShortString()