Class Vector3i

java.lang.Object
net.minecraft.util.math.vector.Vector3i
All Implemented Interfaces:
Comparable<Vector3i>
Direct Known Subclasses:
BlockPos, SectionPos

@Immutable public class Vector3i extends Object implements Comparable<Vector3i>
  • Field Details

    • 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 Details

    • 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 Details

    • equals

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

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

      public int compareTo(Vector3i p_compareTo_1_)
      Specified by:
      compareTo in interface 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()
    • above

      public Vector3i above(int p_177981_1_)
    • below

      public Vector3i below()
    • below

      public Vector3i below(int p_177979_1_)
    • relative

      public Vector3i relative(Direction p_177967_1_, int p_177967_2_)
    • cross

      public Vector3i cross(Vector3i p_177955_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_)
    • get

      public int get(Direction.Axis p_243648_1_)
    • toString

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

      public String toShortString()