Package net.minecraft.world.gen.chunk
Class ChunkNoiseSampler.CacheOnce
java.lang.Object
net.minecraft.world.gen.chunk.ChunkNoiseSampler.CacheOnce
- All Implemented Interfaces:
ChunkNoiseSampler.ParentedNoiseType,DensityFunction,DensityFunctionTypes.Wrapper
- Enclosing class:
ChunkNoiseSampler
private class ChunkNoiseSampler.CacheOnce
extends Object
implements DensityFunctionTypes.Wrapper, ChunkNoiseSampler.ParentedNoiseType
- Mappings:
Namespace Name named net/minecraft/world/gen/chunk/ChunkNoiseSampler$CacheOnceintermediary net/minecraft/class_6568$class_6950official dzc$f
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction
DensityFunction.Base, DensityFunction.DensityFunctionVisitor, DensityFunction.EachApplier, DensityFunction.Noise, DensityFunction.NoisePos, DensityFunction.UnblendedNoisePos -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @org.jetbrains.annotations.Nullable double[]private longprivate final DensityFunctionprivate doubleprivate longFields inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction
CODEC, FUNCTION_CODEC, REGISTRY_ENTRY_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfill(double[] densities, DensityFunction.EachApplier applier) Fills an array of densities usingthisdensity function and theDensityFunction.EachApplier.doubleReturns the density value for the given block position.net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Wrapping.Typetype()wrapped()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.gen.chunk.ChunkNoiseSampler.ParentedNoiseType
maxValue, minValueMethods inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction
abs, clamp, cube, halfNegative, quarterNegative, square, squeezeMethods inherited from interface net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Wrapper
apply, getCodecHolder
-
Field Details
-
delegate
- Mappings:
Namespace Name Mixin selector named delegateLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$CacheOnce;delegate:Lnet/minecraft/world/gen/densityfunction/DensityFunction;intermediary field_36606Lnet/minecraft/class_6568$class_6950;field_36606:Lnet/minecraft/class_6910;official eLdzc$f;e:Ldyr;
-
sampleUniqueIndex
private long sampleUniqueIndex- Mappings:
Namespace Name Mixin selector named sampleUniqueIndexLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$CacheOnce;sampleUniqueIndex:Jintermediary field_36607Lnet/minecraft/class_6568$class_6950;field_36607:Jofficial fLdzc$f;f:J
-
cacheOnceUniqueIndex
private long cacheOnceUniqueIndex- Mappings:
Namespace Name Mixin selector named cacheOnceUniqueIndexLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$CacheOnce;cacheOnceUniqueIndex:Jintermediary field_36608Lnet/minecraft/class_6568$class_6950;field_36608:Jofficial gLdzc$f;g:J
-
lastSamplingResult
private double lastSamplingResult- Mappings:
Namespace Name Mixin selector named lastSamplingResultLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$CacheOnce;lastSamplingResult:Dintermediary field_36609Lnet/minecraft/class_6568$class_6950;field_36609:Dofficial hLdzc$f;h:D
-
cache
- Mappings:
Namespace Name Mixin selector named cacheLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$CacheOnce;cache:[Dintermediary field_36610Lnet/minecraft/class_6568$class_6950;field_36610:[Dofficial iLdzc$f;i:[D
-
-
Constructor Details
-
CacheOnce
CacheOnce(DensityFunction delegate) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$CacheOnce;<init>(Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Vintermediary <init>Lnet/minecraft/class_6568$class_6950;<init>(Lnet/minecraft/class_6568;Lnet/minecraft/class_6910;)Vofficial <init>Ldzc$f;<init>(Ldzc;Ldyr;)V
-
-
Method Details
-
sample
Returns the density value for the given block position.- Specified by:
samplein interfaceDensityFunction- Parameters:
pos- the block position- Returns:
- the density value for the given block position
- Mappings:
Namespace Name Mixin selector named sampleLnet/minecraft/world/gen/densityfunction/DensityFunction;sample(Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;)Dintermediary method_40464Lnet/minecraft/class_6910;method_40464(Lnet/minecraft/class_6910$class_6912;)Dofficial aLdyr;a(Ldyr$b;)D
-
fill
Fills an array of densities usingthisdensity function and theDensityFunction.EachApplier.- Specified by:
fillin interfaceDensityFunction- Parameters:
densities- the array of densities to fill, like a buffer or a cacheapplier- theEachApplierto use. It has a method for filling the array, as well as to get a block position for an index- Mappings:
Namespace Name Mixin selector named fillLnet/minecraft/world/gen/densityfunction/DensityFunction;fill([DLnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;)Vintermediary method_40470Lnet/minecraft/class_6910;method_40470([DLnet/minecraft/class_6910$class_6911;)Vofficial aLdyr;a([DLdyr$a;)V
-
wrapped
- Specified by:
wrappedin interfaceChunkNoiseSampler.ParentedNoiseType- Specified by:
wrappedin interfaceDensityFunctionTypes.Wrapper- Mappings:
Namespace Name Mixin selector named wrappedLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapper;wrapped()Lnet/minecraft/world/gen/densityfunction/DensityFunction;intermediary comp_469Lnet/minecraft/class_6916$class_7052;comp_469()Lnet/minecraft/class_6910;official kLdys$m;k()Ldyr;
-
type
public net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Wrapping.Type type()- Specified by:
typein interfaceDensityFunctionTypes.Wrapper- Mappings:
Namespace Name Mixin selector named typeLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapper;type()Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapping$Type;intermediary comp_383Lnet/minecraft/class_6916$class_7052;comp_383()Lnet/minecraft/class_6916$class_6927$class_6928;official jLdys$m;j()Ldys$l$a;
-