Class Vec3i

java.lang.Object
net.minecraft.core.Vec3i
All Implemented Interfaces:
Comparable<Vec3i>
Direct Known Subclasses:
BlockPos, SectionPos

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

    • CODEC

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

      public static final Vec3i ZERO
    • x

      private int x
    • y

      private int y
    • z

      private int z
  • Constructor Details

    • Vec3i

      public Vec3i(int p_123296_, int p_123297_, int p_123298_)
    • Vec3i

      public Vec3i(double p_123292_, double p_123293_, double p_123294_)
  • Method Details

    • equals

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

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

      public int compareTo(Vec3i p_123330_)
      Specified by:
      compareTo in interface Comparable<Vec3i>
    • getX

      public int getX()
    • getY

      public int getY()
    • getZ

      public int getZ()
    • setX

      protected Vec3i setX(int p_175605_)
    • setY

      protected Vec3i setY(int p_175604_)
    • setZ

      protected Vec3i setZ(int p_175603_)
    • offset

      public Vec3i offset(double p_175587_, double p_175588_, double p_175589_)
    • offset

      public Vec3i offset(int p_175593_, int p_175594_, int p_175595_)
    • offset

      public Vec3i offset(Vec3i p_175597_)
    • subtract

      public Vec3i subtract(Vec3i p_175596_)
    • multiply

      public Vec3i multiply(int p_175602_)
    • above

      public Vec3i above()
    • above

      public Vec3i above(int p_123336_)
    • below

      public Vec3i below()
    • below

      public Vec3i below(int p_123335_)
    • north

      public Vec3i north()
    • north

      public Vec3i north(int p_175601_)
    • south

      public Vec3i south()
    • south

      public Vec3i south(int p_175600_)
    • west

      public Vec3i west()
    • west

      public Vec3i west(int p_175599_)
    • east

      public Vec3i east()
    • east

      public Vec3i east(int p_175598_)
    • relative

      public Vec3i relative(Direction p_175592_)
    • relative

      public Vec3i relative(Direction p_123321_, int p_123322_)
    • relative

      public Vec3i relative(Direction.Axis p_175590_, int p_175591_)
    • cross

      public Vec3i cross(Vec3i p_123325_)
    • closerThan

      public boolean closerThan(Vec3i p_123315_, double p_123316_)
    • closerThan

      public boolean closerThan(Position p_123307_, double p_123308_)
    • distSqr

      public double distSqr(Vec3i p_123332_)
    • distSqr

      public double distSqr(Position p_123310_, boolean p_123311_)
    • distSqr

      public double distSqr(Vec3i p_175583_, boolean p_175584_)
    • distSqr

      public double distSqr(double p_123300_, double p_123301_, double p_123302_, boolean p_123303_)
    • distManhattan

      public int distManhattan(Vec3i p_123334_)
    • get

      public int get(Direction.Axis p_123305_)
    • toString

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

      public String toShortString()