Class Vec2i

java.lang.Object
com.minecolonies.api.util.Vec2i

public class Vec2i extends Object
Data structure to hold a two dimensional point. Uses x and z, because y is typically the third dimension in minecraft.
  • Constructor Details

    • Vec2i

      public Vec2i(int x, int z)
  • Method Details

    • distanceSq

      public long distanceSq(@NotNull @NotNull Vec2i vec2i)
    • distanceSq

      public long distanceSq(int x, int y)
    • getX

      public int getX()
    • getZ

      public int getZ()
    • hashCode

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object