Class BlockUtil

java.lang.Object
com.hypixel.hytale.math.block.BlockUtil

@Deprecated public class BlockUtil extends Object
Deprecated.
packs Y into a signed 9 bit field (-512..511), which cannot represent cubic world coordinates. Key positional maps and sets by the three int coordinates instead, e.g. Int3OpenHashSet and Int3ObjectOpenHashMap.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final long
    Deprecated.
     
    static final long
    Deprecated.
     
    static final long
    Deprecated.
     
    static final long
    Deprecated.
     
    static final long
    Deprecated.
     
    static final long
    Deprecated.
     
    static final long
    Deprecated.
     
    static final long
    Deprecated.
     
    static final long
    Deprecated.
     
    static final long
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static long
    pack(int x, int y, int z)
    Deprecated.
     
    static long
    packUnchecked(int x, int y, int z)
    Deprecated.
    Used when we don't care about going out of the accepted range because the bounds don't affect us.
    static int
    unpackX(long packed)
    Deprecated.
     
    static int
    unpackY(long packed)
    Deprecated.
     
    static int
    unpackZ(long packed)
    Deprecated.
     

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • BlockUtil

      public BlockUtil()
      Deprecated.
  • Method Details

    • pack

      public static long pack(int x, int y, int z)
      Deprecated.
    • packUnchecked

      public static long packUnchecked(int x, int y, int z)
      Deprecated.
      Used when we don't care about going out of the accepted range because the bounds don't affect us.
    • unpackX

      public static int unpackX(long packed)
      Deprecated.
    • unpackY

      public static int unpackY(long packed)
      Deprecated.
    • unpackZ

      public static int unpackZ(long packed)
      Deprecated.