Class Vec3i

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

@Unmodifiable public class Vec3i extends Object implements Comparable<Vec3i>
A vector composed of 3 integers.

This class is very often used to hold the coordinates. To hold a block position specifically, use BlockPos instead, which extends Vec3i. To hold positions for entities and other non-voxels, consider using Vec3d that holds values using double instead.

Vec3i is read-only, but subclasses like BlockPos.Mutable may be mutable. Make sure to sanitize inputs of Vec3i if needed, such as calling BlockPos.toImmutable() or making new copies.

See Also:
Mappings:
Namespace Name
named net/minecraft/util/math/Vec3i
intermediary net/minecraft/class_2382
official kd
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<Vec3i>
     
    private int
     
    private int
     
    private int
     
    static final Vec3i
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Vec3i(int x, int y, int z)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    add(int x, int y, int z)
    Returns another Vec3i whose coordinates have the parameter x, y, and z added to the coordinates of this vector.
    add(Vec3i vec)
    Returns another Vec3i whose coordinates have the coordinates of vec added to the coordinates of this vector.
    int
     
    static com.mojang.serialization.Codec<Vec3i>
    createOffsetCodec(int maxAbsValue)
     
     
    Returns a vector which is offset by 1 in the downward direction.
    down(int distance)
    Returns a vector which is offset by distance in the downward direction.
    Returns a vector which is offset by 1 in the eastward direction.
    east(int distance)
    Returns a vector which is offset by distance in the eastward direction.
    boolean
     
    int
    Returns the component on the axis axis.
    int
    Returns the Manhattan distance between here and vec.
    double
    getSquaredDistance(double x, double y, double z)
    Returns the squared distance between here and (x, y, z).
    double
    Returns the squared distance between here and pos.
    double
    Returns the squared distance between here (center) and vec.
    double
    getSquaredDistanceFromCenter(double x, double y, double z)
    Returns the squared distance between the center of this voxel and (x, y, z).
    int
     
    int
     
    int
     
    int
     
    boolean
    isWithinDistance(Position pos, double distance)
    Returns whether the distance between here and pos is less than distance.
    boolean
    isWithinDistance(Vec3i vec, double distance)
    Returns whether the distance between here and vec is less than distance.
    multiply(int scale)
    Returns a vector with all components multiplied by scale.
    Returns a vector which is offset by 1 in the northward direction.
    north(int distance)
    Returns a vector which is offset by distance in the northward direction.
    offset(Direction direction)
    Returns a vector which is offset by 1 in direction direction.
    offset(Direction.Axis axis, int distance)
    Returns a vector which is offset by distance on axis axis.
    offset(Direction direction, int distance)
    Returns a vector which is offset by distance in direction direction.
    protected Vec3i
    setX(int x)
     
    protected Vec3i
    setY(int y)
     
    protected Vec3i
    setZ(int z)
     
    Returns a vector which is offset by 1 in the southward direction.
    south(int distance)
    Returns a vector which is offset by distance in the southward direction.
    Returns another Vec3i whose coordinates have the coordinates of vec subtracted from the coordinates of this vector.
    Returns the coordinates joined with a colon and a space.
     
    up()
    Returns a vector which is offset by 1 in the upward direction.
    up(int distance)
    Returns a vector which is offset by distance in the upward direction.
    Returns a vector which is offset by 1 in the westward direction.
    west(int distance)
    Returns a vector which is offset by distance in the westward direction.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<Vec3i> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/util/math/Vec3i;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_25123 Lnet/minecraft/class_2382;field_25123:Lcom/mojang/serialization/Codec;
      official f Lkd;f:Lcom/mojang/serialization/Codec;
    • ZERO

      public static final Vec3i ZERO
      Mappings:
      Namespace Name Mixin selector
      named ZERO Lnet/minecraft/util/math/Vec3i;ZERO:Lnet/minecraft/util/math/Vec3i;
      intermediary field_11176 Lnet/minecraft/class_2382;field_11176:Lnet/minecraft/class_2382;
      official g Lkd;g:Lkd;
    • x

      private int x
      Mappings:
      Namespace Name Mixin selector
      named x Lnet/minecraft/util/math/Vec3i;x:I
      intermediary field_11175 Lnet/minecraft/class_2382;field_11175:I
      official a Lkd;a:I
    • y

      private int y
      Mappings:
      Namespace Name Mixin selector
      named y Lnet/minecraft/util/math/Vec3i;y:I
      intermediary field_11174 Lnet/minecraft/class_2382;field_11174:I
      official b Lkd;b:I
    • z

      private int z
      Mappings:
      Namespace Name Mixin selector
      named z Lnet/minecraft/util/math/Vec3i;z:I
      intermediary field_11173 Lnet/minecraft/class_2382;field_11173:I
      official c Lkd;c:I
  • Constructor Details

    • Vec3i

      public Vec3i(int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/math/Vec3i;<init>(III)V
      intermediary <init> Lnet/minecraft/class_2382;<init>(III)V
      official <init> Lkd;<init>(III)V
  • Method Details

    • createOffsetCodec

      public static com.mojang.serialization.Codec<Vec3i> createOffsetCodec(int maxAbsValue)
      Mappings:
      Namespace Name Mixin selector
      named createOffsetCodec Lnet/minecraft/util/math/Vec3i;createOffsetCodec(I)Lcom/mojang/serialization/Codec;
      intermediary method_39677 Lnet/minecraft/class_2382;method_39677(I)Lcom/mojang/serialization/Codec;
      official v Lkd;v(I)Lcom/mojang/serialization/Codec;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/util/math/Vec3i;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2382;equals(Ljava/lang/Object;)Z
      official equals Lkd;equals(Ljava/lang/Object;)Z
    • hashCode

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

      public int compareTo(Vec3i vec3i)
      Specified by:
      compareTo in interface Comparable<Vec3i>
      Mappings:
      Namespace Name Mixin selector
      named compareTo Lnet/minecraft/util/math/Vec3i;compareTo(Lnet/minecraft/util/math/Vec3i;)I
      intermediary method_10265 Lnet/minecraft/class_2382;method_10265(Lnet/minecraft/class_2382;)I
      official i Lkd;i(Lkd;)I
    • getX

      public int getX()
      Mappings:
      Namespace Name Mixin selector
      named getX Lnet/minecraft/util/math/Vec3i;getX()I
      intermediary method_10263 Lnet/minecraft/class_2382;method_10263()I
      official u Lkd;u()I
    • getY

      public int getY()
      Mappings:
      Namespace Name Mixin selector
      named getY Lnet/minecraft/util/math/Vec3i;getY()I
      intermediary method_10264 Lnet/minecraft/class_2382;method_10264()I
      official v Lkd;v()I
    • getZ

      public int getZ()
      Mappings:
      Namespace Name Mixin selector
      named getZ Lnet/minecraft/util/math/Vec3i;getZ()I
      intermediary method_10260 Lnet/minecraft/class_2382;method_10260()I
      official w Lkd;w()I
    • setX

      protected Vec3i setX(int x)
      Mappings:
      Namespace Name Mixin selector
      named setX Lnet/minecraft/util/math/Vec3i;setX(I)Lnet/minecraft/util/math/Vec3i;
      intermediary method_20787 Lnet/minecraft/class_2382;method_20787(I)Lnet/minecraft/class_2382;
      official u Lkd;u(I)Lkd;
    • setY

      protected Vec3i setY(int y)
      Mappings:
      Namespace Name Mixin selector
      named setY Lnet/minecraft/util/math/Vec3i;setY(I)Lnet/minecraft/util/math/Vec3i;
      intermediary method_10099 Lnet/minecraft/class_2382;method_10099(I)Lnet/minecraft/class_2382;
      official t Lkd;t(I)Lkd;
    • setZ

      protected Vec3i setZ(int z)
      Mappings:
      Namespace Name Mixin selector
      named setZ Lnet/minecraft/util/math/Vec3i;setZ(I)Lnet/minecraft/util/math/Vec3i;
      intermediary method_20788 Lnet/minecraft/class_2382;method_20788(I)Lnet/minecraft/class_2382;
      official s Lkd;s(I)Lkd;
    • add

      public Vec3i add(int x, int y, int z)
      Returns another Vec3i whose coordinates have the parameter x, y, and z added to the coordinates of this vector.

      This method always returns an immutable object.

      Returns:
      another Vec3i whose coordinates have the parameter x, y, and z added to the coordinates of this vector
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/util/math/Vec3i;add(III)Lnet/minecraft/util/math/Vec3i;
      intermediary method_34592 Lnet/minecraft/class_2382;method_34592(III)Lnet/minecraft/class_2382;
      official c Lkd;c(III)Lkd;
    • add

      public Vec3i add(Vec3i vec)
      Returns another Vec3i whose coordinates have the coordinates of vec added to the coordinates of this vector.

      This method always returns an immutable object.

      Returns:
      another Vec3i whose coordinates have the coordinates of vec added to the coordinates of this vector
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/util/math/Vec3i;add(Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/util/math/Vec3i;
      intermediary method_35853 Lnet/minecraft/class_2382;method_35853(Lnet/minecraft/class_2382;)Lnet/minecraft/class_2382;
      official f Lkd;f(Lkd;)Lkd;
    • subtract

      public Vec3i subtract(Vec3i vec)
      Returns another Vec3i whose coordinates have the coordinates of vec subtracted from the coordinates of this vector.

      This method always returns an immutable object.

      Returns:
      another Vec3i whose coordinates have the coordinates of vec subtracted from the coordinates of this vector
      Mappings:
      Namespace Name Mixin selector
      named subtract Lnet/minecraft/util/math/Vec3i;subtract(Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/util/math/Vec3i;
      intermediary method_35852 Lnet/minecraft/class_2382;method_35852(Lnet/minecraft/class_2382;)Lnet/minecraft/class_2382;
      official e Lkd;e(Lkd;)Lkd;
    • multiply

      public Vec3i multiply(int scale)
      Returns a vector with all components multiplied by scale.
      Returns:
      a vector with all components multiplied by scale
      Implementation Note:
      This can return the same vector if scale equals 1.
      Mappings:
      Namespace Name Mixin selector
      named multiply Lnet/minecraft/util/math/Vec3i;multiply(I)Lnet/minecraft/util/math/Vec3i;
      intermediary method_35862 Lnet/minecraft/class_2382;method_35862(I)Lnet/minecraft/class_2382;
      official o Lkd;o(I)Lkd;
    • up

      public Vec3i up()
      Returns a vector which is offset by 1 in the upward direction.
      Returns:
      a vector which is offset by 1 in the upward direction
      Mappings:
      Namespace Name Mixin selector
      named up Lnet/minecraft/util/math/Vec3i;up()Lnet/minecraft/util/math/Vec3i;
      intermediary method_30931 Lnet/minecraft/class_2382;method_30931()Lnet/minecraft/class_2382;
      official p Lkd;p()Lkd;
    • up

      public Vec3i up(int distance)
      Returns a vector which is offset by distance in the upward direction.
      Returns:
      a vector which is offset by distance in the upward direction
      Implementation Note:
      This can return the same vector if distance equals 0.
      Mappings:
      Namespace Name Mixin selector
      named up Lnet/minecraft/util/math/Vec3i;up(I)Lnet/minecraft/util/math/Vec3i;
      intermediary method_30930 Lnet/minecraft/class_2382;method_30930(I)Lnet/minecraft/class_2382;
      official n Lkd;n(I)Lkd;
    • down

      public Vec3i down()
      Returns a vector which is offset by 1 in the downward direction.
      Returns:
      a vector which is offset by 1 in the downward direction
      Mappings:
      Namespace Name Mixin selector
      named down Lnet/minecraft/util/math/Vec3i;down()Lnet/minecraft/util/math/Vec3i;
      intermediary method_23228 Lnet/minecraft/class_2382;method_23228()Lnet/minecraft/class_2382;
      official o Lkd;o()Lkd;
    • down

      public Vec3i down(int distance)
      Returns a vector which is offset by distance in the downward direction.
      Returns:
      a vector which is offset by distance in the downward direction
      Implementation Note:
      This can return the same vector if distance equals 0.
      Mappings:
      Namespace Name Mixin selector
      named down Lnet/minecraft/util/math/Vec3i;down(I)Lnet/minecraft/util/math/Vec3i;
      intermediary method_23227 Lnet/minecraft/class_2382;method_23227(I)Lnet/minecraft/class_2382;
      official m Lkd;m(I)Lkd;
    • north

      public Vec3i north()
      Returns a vector which is offset by 1 in the northward direction.
      Returns:
      a vector which is offset by 1 in the northward direction
      Mappings:
      Namespace Name Mixin selector
      named north Lnet/minecraft/util/math/Vec3i;north()Lnet/minecraft/util/math/Vec3i;
      intermediary method_35861 Lnet/minecraft/class_2382;method_35861()Lnet/minecraft/class_2382;
      official n Lkd;n()Lkd;
    • north

      public Vec3i north(int distance)
      Returns a vector which is offset by distance in the northward direction.
      Returns:
      a vector which is offset by distance in the northward direction
      Implementation Note:
      This can return the same vector if distance equals 0.
      Mappings:
      Namespace Name Mixin selector
      named north Lnet/minecraft/util/math/Vec3i;north(I)Lnet/minecraft/util/math/Vec3i;
      intermediary method_35860 Lnet/minecraft/class_2382;method_35860(I)Lnet/minecraft/class_2382;
      official l Lkd;l(I)Lkd;
    • south

      public Vec3i south()
      Returns a vector which is offset by 1 in the southward direction.
      Returns:
      a vector which is offset by 1 in the southward direction
      Mappings:
      Namespace Name Mixin selector
      named south Lnet/minecraft/util/math/Vec3i;south()Lnet/minecraft/util/math/Vec3i;
      intermediary method_35859 Lnet/minecraft/class_2382;method_35859()Lnet/minecraft/class_2382;
      official m Lkd;m()Lkd;
    • south

      public Vec3i south(int distance)
      Returns a vector which is offset by distance in the southward direction.
      Returns:
      a vector which is offset by distance in the southward direction
      Implementation Note:
      This can return the same vector if distance equals 0.
      Mappings:
      Namespace Name Mixin selector
      named south Lnet/minecraft/util/math/Vec3i;south(I)Lnet/minecraft/util/math/Vec3i;
      intermediary method_35858 Lnet/minecraft/class_2382;method_35858(I)Lnet/minecraft/class_2382;
      official k Lkd;k(I)Lkd;
    • west

      public Vec3i west()
      Returns a vector which is offset by 1 in the westward direction.
      Returns:
      a vector which is offset by 1 in the westward direction
      Mappings:
      Namespace Name Mixin selector
      named west Lnet/minecraft/util/math/Vec3i;west()Lnet/minecraft/util/math/Vec3i;
      intermediary method_35857 Lnet/minecraft/class_2382;method_35857()Lnet/minecraft/class_2382;
      official l Lkd;l()Lkd;
    • west

      public Vec3i west(int distance)
      Returns a vector which is offset by distance in the westward direction.
      Returns:
      a vector which is offset by distance in the westward direction
      Implementation Note:
      This can return the same vector if distance equals 0.
      Mappings:
      Namespace Name Mixin selector
      named west Lnet/minecraft/util/math/Vec3i;west(I)Lnet/minecraft/util/math/Vec3i;
      intermediary method_35856 Lnet/minecraft/class_2382;method_35856(I)Lnet/minecraft/class_2382;
      official j Lkd;j(I)Lkd;
    • east

      public Vec3i east()
      Returns a vector which is offset by 1 in the eastward direction.
      Returns:
      a vector which is offset by 1 in the eastward direction
      Mappings:
      Namespace Name Mixin selector
      named east Lnet/minecraft/util/math/Vec3i;east()Lnet/minecraft/util/math/Vec3i;
      intermediary method_35855 Lnet/minecraft/class_2382;method_35855()Lnet/minecraft/class_2382;
      official k Lkd;k()Lkd;
    • east

      public Vec3i east(int distance)
      Returns a vector which is offset by distance in the eastward direction.
      Returns:
      a vector which is offset by distance in the eastward direction
      Implementation Note:
      This can return the same vector if distance equals 0.
      Mappings:
      Namespace Name Mixin selector
      named east Lnet/minecraft/util/math/Vec3i;east(I)Lnet/minecraft/util/math/Vec3i;
      intermediary method_35854 Lnet/minecraft/class_2382;method_35854(I)Lnet/minecraft/class_2382;
      official i Lkd;i(I)Lkd;
    • offset

      public Vec3i offset(Direction direction)
      Returns a vector which is offset by 1 in direction direction.
      Returns:
      a vector which is offset by 1 in direction direction
      Mappings:
      Namespace Name Mixin selector
      named offset Lnet/minecraft/util/math/Vec3i;offset(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/Vec3i;
      intermediary method_35851 Lnet/minecraft/class_2382;method_35851(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2382;
      official b Lkd;b(Lje;)Lkd;
    • offset

      public Vec3i offset(Direction direction, int distance)
      Returns a vector which is offset by distance in direction direction.
      Returns:
      a vector which is offset by distance in direction direction
      Implementation Note:
      This can return the same vector if distance equals 0.
      Mappings:
      Namespace Name Mixin selector
      named offset Lnet/minecraft/util/math/Vec3i;offset(Lnet/minecraft/util/math/Direction;I)Lnet/minecraft/util/math/Vec3i;
      intermediary method_23226 Lnet/minecraft/class_2382;method_23226(Lnet/minecraft/class_2350;I)Lnet/minecraft/class_2382;
      official b Lkd;b(Lje;I)Lkd;
    • offset

      public Vec3i offset(Direction.Axis axis, int distance)
      Returns a vector which is offset by distance on axis axis.
      Returns:
      a vector which is offset by distance on axis axis
      Implementation Note:
      This can return the same vector if distance equals 0.
      Mappings:
      Namespace Name Mixin selector
      named offset Lnet/minecraft/util/math/Vec3i;offset(Lnet/minecraft/util/math/Direction$Axis;I)Lnet/minecraft/util/math/Vec3i;
      intermediary method_35850 Lnet/minecraft/class_2382;method_35850(Lnet/minecraft/class_2350$class_2351;I)Lnet/minecraft/class_2382;
      official b Lkd;b(Lje$a;I)Lkd;
    • crossProduct

      public Vec3i crossProduct(Vec3i vec)
      Mappings:
      Namespace Name Mixin selector
      named crossProduct Lnet/minecraft/util/math/Vec3i;crossProduct(Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/util/math/Vec3i;
      intermediary method_10259 Lnet/minecraft/class_2382;method_10259(Lnet/minecraft/class_2382;)Lnet/minecraft/class_2382;
      official d Lkd;d(Lkd;)Lkd;
    • isWithinDistance

      public boolean isWithinDistance(Vec3i vec, double distance)
      Returns whether the distance between here and vec is less than distance.
      Returns:
      whether the distance between here and vec is less than distance
      Mappings:
      Namespace Name Mixin selector
      named isWithinDistance Lnet/minecraft/util/math/Vec3i;isWithinDistance(Lnet/minecraft/util/math/Vec3i;D)Z
      intermediary method_19771 Lnet/minecraft/class_2382;method_19771(Lnet/minecraft/class_2382;D)Z
      official a Lkd;a(Lkd;D)Z
    • isWithinDistance

      public boolean isWithinDistance(Position pos, double distance)
      Returns whether the distance between here and pos is less than distance.
      Returns:
      whether the distance between here and pos is less than distance
      Mappings:
      Namespace Name Mixin selector
      named isWithinDistance Lnet/minecraft/util/math/Vec3i;isWithinDistance(Lnet/minecraft/util/math/Position;D)Z
      intermediary method_19769 Lnet/minecraft/class_2382;method_19769(Lnet/minecraft/class_2374;D)Z
      official a Lkd;a(Ljs;D)Z
    • getSquaredDistance

      public double getSquaredDistance(Vec3i vec)
      Returns the squared distance between here (center) and vec.
      Returns:
      the squared distance between here (center) and vec
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getSquaredDistance Lnet/minecraft/util/math/Vec3i;getSquaredDistance(Lnet/minecraft/util/math/Vec3i;)D
      intermediary method_10262 Lnet/minecraft/class_2382;method_10262(Lnet/minecraft/class_2382;)D
      official j Lkd;j(Lkd;)D
    • getSquaredDistance

      public double getSquaredDistance(Position pos)
      Returns the squared distance between here and pos.
      Returns:
      the squared distance between here and pos
      Mappings:
      Namespace Name Mixin selector
      named getSquaredDistance Lnet/minecraft/util/math/Vec3i;getSquaredDistance(Lnet/minecraft/util/math/Position;)D
      intermediary method_19770 Lnet/minecraft/class_2382;method_19770(Lnet/minecraft/class_2374;)D
      official b Lkd;b(Ljs;)D
    • getSquaredDistanceFromCenter

      public double getSquaredDistanceFromCenter(double x, double y, double z)
      Returns the squared distance between the center of this voxel and (x, y, z). This is equivalent to Vec3d.ofCenter(this).squaredDistanceTo(x, y, z).
      Returns:
      the squared distance between the center of this voxel and (x, y, z)
      Mappings:
      Namespace Name Mixin selector
      named getSquaredDistanceFromCenter Lnet/minecraft/util/math/Vec3i;getSquaredDistanceFromCenter(DDD)D
      intermediary method_10268 Lnet/minecraft/class_2382;method_10268(DDD)D
      official c Lkd;c(DDD)D
    • getSquaredDistance

      public double getSquaredDistance(double x, double y, double z)
      Returns the squared distance between here and (x, y, z). This is equivalent to Vec3d.of(this).squaredDistanceTo(x, y, z).
      Returns:
      the squared distance between here and (x, y, z)
      Mappings:
      Namespace Name Mixin selector
      named getSquaredDistance Lnet/minecraft/util/math/Vec3i;getSquaredDistance(DDD)D
      intermediary method_40081 Lnet/minecraft/class_2382;method_40081(DDD)D
      official d Lkd;d(DDD)D
    • getManhattanDistance

      public int getManhattanDistance(Vec3i vec)
      Returns the Manhattan distance between here and vec.

      Manhattan distance, also called taxicab distance or snake distance, is the distance measured as the sum of the absolute differences of their coordinates. For example, the Manhattan distance between (0, 0, 0) and (1, 1, 1) is 3.

      Returns:
      the Manhattan distance between here and vec
      Mappings:
      Namespace Name Mixin selector
      named getManhattanDistance Lnet/minecraft/util/math/Vec3i;getManhattanDistance(Lnet/minecraft/util/math/Vec3i;)I
      intermediary method_19455 Lnet/minecraft/class_2382;method_19455(Lnet/minecraft/class_2382;)I
      official k Lkd;k(Lkd;)I
    • getComponentAlongAxis

      public int getComponentAlongAxis(Direction.Axis axis)
      Returns the component on the axis axis.
      Returns:
      the component on the axis axis
      Mappings:
      Namespace Name Mixin selector
      named getComponentAlongAxis Lnet/minecraft/util/math/Vec3i;getComponentAlongAxis(Lnet/minecraft/util/math/Direction$Axis;)I
      intermediary method_30558 Lnet/minecraft/class_2382;method_30558(Lnet/minecraft/class_2350$class_2351;)I
      official a Lkd;a(Lje$a;)I
    • toString

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

      public String toShortString()
      Returns the coordinates joined with a colon and a space.
      Returns:
      the coordinates joined with a colon and a space
      Mappings:
      Namespace Name Mixin selector
      named toShortString Lnet/minecraft/util/math/Vec3i;toShortString()Ljava/lang/String;
      intermediary method_23854 Lnet/minecraft/class_2382;method_23854()Ljava/lang/String;
      official x Lkd;x()Ljava/lang/String;