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_)
  • Method Details

    • offsetCodec

      public static com.mojang.serialization.Codec<Vec3i> offsetCodec(int p_194651_)
    • 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(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_)
    • closerToCenterThan

      public boolean closerToCenterThan(Position p_203196_, double p_203197_)
    • distSqr

      public double distSqr(Vec3i p_123332_)
    • distToCenterSqr

      public double distToCenterSqr(Position p_203194_)
    • distToCenterSqr

      public double distToCenterSqr(double p_203199_, double p_203200_, double p_203201_)
    • distToLowCornerSqr

      public double distToLowCornerSqr(double p_203203_, double p_203204_, double p_203205_)
    • 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()