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 Long2IntLinkedOpenHashMapcacheprivate intcacheCapacityprivate LayerOperatoroperator -
Constructor Summary
Constructors Constructor Description CachingLayerSampler(Long2IntLinkedOpenHashMap cache, int cacheCapacity, LayerOperator operator) -
Method Summary
Modifier and Type Method Description intgetCapacity()intsample(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:
samplein interfaceLayerSampler
-
getCapacity
public int getCapacity()
-