Package net.minecraft.util
Class StaticCache2D<T>
java.lang.Object
net.minecraft.util.StaticCache2D<T>
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
StaticCache2D
(int p_342073_, int p_344333_, int p_344505_, int p_343577_, StaticCache2D.Initializer<T> p_342393_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(int p_344805_, int p_345047_) static <T> StaticCache2D
<T> create
(int p_344065_, int p_343803_, int p_342635_, StaticCache2D.Initializer<T> p_344385_) void
get
(int p_345297_, int p_343942_) private int
getIndex
(int p_343524_, int p_345052_) toString()
-
Field Details
-
minX
private final int minX -
minZ
private final int minZ -
sizeX
private final int sizeX -
sizeZ
private final int sizeZ -
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
-
get
-
contains
public boolean contains(int p_344805_, int p_345047_) -
toString
-
getIndex
private int getIndex(int p_343524_, int p_345052_)
-