Class CachingLayerContext
java.lang.Object
net.minecraft.world.biome.layer.util.CachingLayerContext
- All Implemented Interfaces:
LayerRandomnessSource
,LayerSampleContext<CachingLayerSampler>
public class CachingLayerContext extends Object implements LayerSampleContext<CachingLayerSampler>
- Mappings:
Namespace Name official dba
intermediary net/minecraft/class_3631
named net/minecraft/world/biome/layer/util/CachingLayerContext
-
Field Summary
Fields Modifier and Type Field Description private Long2IntLinkedOpenHashMap
cache
private int
cacheCapacity
private long
localSeed
private PerlinNoiseSampler
noiseSampler
private long
worldSeed
-
Constructor Summary
Constructors Constructor Description CachingLayerContext(int cacheCapacity, long seed, long salt)
-
Method Summary
Modifier and Type Method Description private static long
addSalt(long seed, long salt)
CachingLayerSampler
createSampler(LayerOperator layerOperator)
CachingLayerSampler
createSampler(LayerOperator layerOperator, CachingLayerSampler cachingLayerSampler)
CachingLayerSampler
createSampler(LayerOperator layerOperator, CachingLayerSampler cachingLayerSampler, CachingLayerSampler cachingLayerSampler2)
PerlinNoiseSampler
getNoiseSampler()
void
initSeed(long x, long y)
int
nextInt(int bound)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.biome.layer.util.LayerSampleContext
choose, choose
-
Field Details
-
cache
- Mappings:
Namespace Name Mixin selector official a
Ldba;a:Lit/unimi/dsi/fastutil/longs/Long2IntLinkedOpenHashMap;
intermediary field_16045
Lnet/minecraft/class_3631;field_16045:Lit/unimi/dsi/fastutil/longs/Long2IntLinkedOpenHashMap;
named cache
Lnet/minecraft/world/biome/layer/util/CachingLayerContext;cache:Lit/unimi/dsi/fastutil/longs/Long2IntLinkedOpenHashMap;
-
cacheCapacity
private final int cacheCapacity- Mappings:
Namespace Name Mixin selector official b
Ldba;b:I
intermediary field_16044
Lnet/minecraft/class_3631;field_16044:I
named cacheCapacity
Lnet/minecraft/world/biome/layer/util/CachingLayerContext;cacheCapacity:I
-
noiseSampler
- Mappings:
Namespace Name Mixin selector official c
Ldba;c:Lczn;
intermediary field_16732
Lnet/minecraft/class_3631;field_16732:Lnet/minecraft/class_3756;
named noiseSampler
Lnet/minecraft/world/biome/layer/util/CachingLayerContext;noiseSampler:Lnet/minecraft/util/math/noise/PerlinNoiseSampler;
-
worldSeed
private final long worldSeed- Mappings:
Namespace Name Mixin selector official d
Ldba;d:J
intermediary field_16730
Lnet/minecraft/class_3631;field_16730:J
named worldSeed
Lnet/minecraft/world/biome/layer/util/CachingLayerContext;worldSeed:J
-
localSeed
private long localSeed- Mappings:
Namespace Name Mixin selector official e
Ldba;e:J
intermediary field_16729
Lnet/minecraft/class_3631;field_16729:J
named localSeed
Lnet/minecraft/world/biome/layer/util/CachingLayerContext;localSeed:J
-
-
Constructor Details
-
CachingLayerContext
public CachingLayerContext(int cacheCapacity, long seed, long salt)- Mappings:
Namespace Name Mixin selector official <init>
Ldba;<init>(IJJ)V
intermediary <init>
Lnet/minecraft/class_3631;<init>(IJJ)V
named <init>
Lnet/minecraft/world/biome/layer/util/CachingLayerContext;<init>(IJJ)V
-
-
Method Details
-
createSampler
- Specified by:
createSampler
in interfaceLayerSampleContext<CachingLayerSampler>
- Mappings:
Namespace Name Mixin selector official b
Ldba;b(Ldck;)Ldaw;
intermediary method_15837
Lnet/minecraft/class_3631;method_15837(Lnet/minecraft/class_4;)Lnet/minecraft/class_3626;
named createSampler
Lnet/minecraft/world/biome/layer/util/CachingLayerContext;createSampler(Lnet/minecraft/world/biome/layer/util/LayerOperator;)Lnet/minecraft/world/biome/layer/util/CachingLayerSampler;
-
createSampler
public CachingLayerSampler createSampler(LayerOperator layerOperator, CachingLayerSampler cachingLayerSampler)- Specified by:
createSampler
in interfaceLayerSampleContext<CachingLayerSampler>
- Mappings:
Namespace Name Mixin selector official a
Ldba;a(Ldck;Ldaw;)Ldaw;
intermediary method_15838
Lnet/minecraft/class_3631;method_15838(Lnet/minecraft/class_4;Lnet/minecraft/class_3626;)Lnet/minecraft/class_3626;
named createSampler
Lnet/minecraft/world/biome/layer/util/CachingLayerContext;createSampler(Lnet/minecraft/world/biome/layer/util/LayerOperator;Lnet/minecraft/world/biome/layer/util/CachingLayerSampler;)Lnet/minecraft/world/biome/layer/util/CachingLayerSampler;
-
createSampler
public CachingLayerSampler createSampler(LayerOperator layerOperator, CachingLayerSampler cachingLayerSampler, CachingLayerSampler cachingLayerSampler2)- Specified by:
createSampler
in interfaceLayerSampleContext<CachingLayerSampler>
- Mappings:
Namespace Name Mixin selector official a
Ldba;a(Ldck;Ldaw;Ldaw;)Ldaw;
intermediary method_15836
Lnet/minecraft/class_3631;method_15836(Lnet/minecraft/class_4;Lnet/minecraft/class_3626;Lnet/minecraft/class_3626;)Lnet/minecraft/class_3626;
named createSampler
Lnet/minecraft/world/biome/layer/util/CachingLayerContext;createSampler(Lnet/minecraft/world/biome/layer/util/LayerOperator;Lnet/minecraft/world/biome/layer/util/CachingLayerSampler;Lnet/minecraft/world/biome/layer/util/CachingLayerSampler;)Lnet/minecraft/world/biome/layer/util/CachingLayerSampler;
-
initSeed
public void initSeed(long x, long y)- Specified by:
initSeed
in interfaceLayerSampleContext<CachingLayerSampler>
- Mappings:
Namespace Name Mixin selector official a
Lday;a(JJ)V
intermediary method_15830
Lnet/minecraft/class_3628;method_15830(JJ)V
named initSeed
Lnet/minecraft/world/biome/layer/util/LayerSampleContext;initSeed(JJ)V
-
nextInt
public int nextInt(int bound)- Specified by:
nextInt
in interfaceLayerRandomnessSource
- Mappings:
Namespace Name Mixin selector official a
Ldaz;a(I)I
intermediary method_15834
Lnet/minecraft/class_3630;method_15834(I)I
named nextInt
Lnet/minecraft/world/biome/layer/util/LayerRandomnessSource;nextInt(I)I
-
getNoiseSampler
- Specified by:
getNoiseSampler
in interfaceLayerRandomnessSource
- Mappings:
Namespace Name Mixin selector official a
Ldaz;a()Lczn;
intermediary method_15835
Lnet/minecraft/class_3630;method_15835()Lnet/minecraft/class_3756;
named getNoiseSampler
Lnet/minecraft/world/biome/layer/util/LayerRandomnessSource;getNoiseSampler()Lnet/minecraft/util/math/noise/PerlinNoiseSampler;
-
addSalt
private static long addSalt(long seed, long salt)- Mappings:
Namespace Name Mixin selector official b
Ldba;b(JJ)J
intermediary method_22417
Lnet/minecraft/class_3631;method_22417(JJ)J
named addSalt
Lnet/minecraft/world/biome/layer/util/CachingLayerContext;addSalt(JJ)J
-