Package net.minecraft.world.gen.chunk
Class ChunkNoiseSampler.Cache2D
java.lang.Object
net.minecraft.world.gen.chunk.ChunkNoiseSampler.Cache2D
- All Implemented Interfaces:
ChunkNoiseSampler.ParentedNoiseType,DensityFunction,DensityFunctionTypes.Wrapper
- Enclosing class:
ChunkNoiseSampler
private static class ChunkNoiseSampler.Cache2D
extends Object
implements DensityFunctionTypes.Wrapper, ChunkNoiseSampler.ParentedNoiseType
- Mappings:
Namespace Name official dhl$dintermediary net/minecraft/class_6568$class_6948named net/minecraft/world/gen/chunk/ChunkNoiseSampler$Cache2D
-
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
FieldsFields 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 official aLdhl$d;a:Ldha;intermediary field_36599Lnet/minecraft/class_6568$class_6948;field_36599:Lnet/minecraft/class_6910;named delegateLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$Cache2D;delegate:Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
lastSamplingColumnPos
private long lastSamplingColumnPos- Mappings:
Namespace Name Mixin selector official eLdhl$d;e:Jintermediary field_36600Lnet/minecraft/class_6568$class_6948;field_36600:Jnamed lastSamplingColumnPosLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$Cache2D;lastSamplingColumnPos:J
-
lastSamplingResult
private double lastSamplingResult- Mappings:
Namespace Name Mixin selector official fLdhl$d;f:Dintermediary field_36601Lnet/minecraft/class_6568$class_6948;field_36601:Dnamed lastSamplingResultLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$Cache2D;lastSamplingResult:D
-
-
Constructor Details
-
Cache2D
Cache2D(DensityFunction delegate) - Mappings:
Namespace Name Mixin selector official <init>Ldhl$d;<init>(Ldha;)Vintermediary <init>Lnet/minecraft/class_6568$class_6948;<init>(Lnet/minecraft/class_6910;)Vnamed <init>Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$Cache2D;<init>(Lnet/minecraft/world/gen/densityfunction/DensityFunction;)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 official aLdha;a(Ldha$b;)Dintermediary method_40464Lnet/minecraft/class_6910;method_40464(Lnet/minecraft/class_6910$class_6912;)Dnamed sampleLnet/minecraft/world/gen/densityfunction/DensityFunction;sample(Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;)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 official aLdha;a([DLdha$a;)Vintermediary method_40470Lnet/minecraft/class_6910;method_40470([DLnet/minecraft/class_6910$class_6911;)Vnamed fillLnet/minecraft/world/gen/densityfunction/DensityFunction;fill([DLnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;)V
-
wrapped
- Specified by:
wrappedin interfaceChunkNoiseSampler.ParentedNoiseType- Specified by:
wrappedin interfaceDensityFunctionTypes.Wrapper- Mappings:
Namespace Name Mixin selector official kLdhb$m;k()Ldha;intermediary comp_469Lnet/minecraft/class_6916$class_7052;comp_469()Lnet/minecraft/class_6910;named wrappedLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapper;wrapped()Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
type
public net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Wrapping.Type type()- Specified by:
typein interfaceDensityFunctionTypes.Wrapper- Mappings:
Namespace Name Mixin selector official jLdhb$m;j()Ldhb$l$a;intermediary comp_383Lnet/minecraft/class_6916$class_7052;comp_383()Lnet/minecraft/class_6916$class_6927$class_6928;named typeLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapper;type()Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapping$Type;
-