Class StaticCache2D<T>

java.lang.Object
net.minecraft.util.StaticCache2D<T>

public class StaticCache2D<T> extends Object
  • Field Details

    • minX

      private final int minX
    • minZ

      private final int minZ
    • sizeX

      private final int sizeX
    • sizeZ

      private final int sizeZ
    • cache

      private final Object[] cache
  • Constructor Details

    • StaticCache2D

      private StaticCache2D(int p_342073_, int p_344333_, int p_344505_, int p_343577_, StaticCache2D.Initializer<T> p_342393_)
  • Method Details

    • create

      public static <T> StaticCache2D<T> create(int p_344065_, int p_343803_, int p_342635_, StaticCache2D.Initializer<T> p_344385_)
    • forEach

      public void forEach(Consumer<T> p_342330_)
    • get

      public T get(int p_345297_, int p_343942_)
    • contains

      public boolean contains(int p_344805_, int p_345047_)
    • toString

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

      private int getIndex(int p_343524_, int p_345052_)