Class CachingLayerSampler
java.lang.Object
net.minecraft.world.biome.layer.util.CachingLayerSampler
- All Implemented Interfaces:
LayerSampler
public final class CachingLayerSampler extends Object implements LayerSampler
-
Field Summary
Fields Modifier and Type Field Description private Long2IntLinkedOpenHashMap
cache
private int
cacheCapacity
private LayerOperator
operator
-
Constructor Summary
Constructors Constructor Description CachingLayerSampler(Long2IntLinkedOpenHashMap cache, int cacheCapacity, LayerOperator operator)
-
Method Summary
Modifier and Type Method Description int
getCapacity()
int
sample(int x, int z)
-
Field Details
-
operator
-
cache
-
cacheCapacity
private final int cacheCapacity
-
-
Constructor Details
-
CachingLayerSampler
public CachingLayerSampler(Long2IntLinkedOpenHashMap cache, int cacheCapacity, LayerOperator operator)
-
-
Method Details
-
sample
public int sample(int x, int z)- Specified by:
sample
in interfaceLayerSampler
-
getCapacity
public int getCapacity()
-