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 - dho$d- intermediary - net/minecraft/class_6568$class_6948- named - net/minecraft/world/gen/chunk/ChunkNoiseSampler$Cache2D
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.world.gen.densityfunction.DensityFunctionDensityFunction.Base, DensityFunction.DensityFunctionVisitor, DensityFunction.EachApplier, DensityFunction.Noise, DensityFunction.NoisePos, DensityFunction.UnblendedNoisePos
- 
Field SummaryFieldsFields inherited from interface net.minecraft.world.gen.densityfunction.DensityFunctionCODEC, FUNCTION_CODEC, REGISTRY_ENTRY_CODEC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.gen.chunk.ChunkNoiseSampler.ParentedNoiseTypemaxValue, minValueMethods inherited from interface net.minecraft.world.gen.densityfunction.DensityFunctionabs, clamp, cube, halfNegative, quarterNegative, square, squeezeMethods inherited from interface net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Wrapperapply, getCodecHolder
- 
Field Details- 
delegate- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldho$d;a:Ldhd;- intermediary - field_36599- Lnet/minecraft/class_6568$class_6948;field_36599:Lnet/minecraft/class_6910;- named - delegate- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$Cache2D;delegate:Lnet/minecraft/world/gen/densityfunction/DensityFunction;
 
- 
lastSamplingColumnPosprivate long lastSamplingColumnPos- Mappings:
- Namespace - Name - Mixin selector - official - e- Ldho$d;e:J- intermediary - field_36600- Lnet/minecraft/class_6568$class_6948;field_36600:J- named - lastSamplingColumnPos- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$Cache2D;lastSamplingColumnPos:J
 
- 
lastSamplingResultprivate double lastSamplingResult- Mappings:
- Namespace - Name - Mixin selector - official - f- Ldho$d;f:D- intermediary - field_36601- Lnet/minecraft/class_6568$class_6948;field_36601:D- named - lastSamplingResult- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$Cache2D;lastSamplingResult:D
 
 
- 
- 
Constructor Details- 
Cache2DCache2D(DensityFunction delegate) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Ldho$d;<init>(Ldhd;)V- intermediary - <init>- Lnet/minecraft/class_6568$class_6948;<init>(Lnet/minecraft/class_6910;)V- named - <init>- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$Cache2D;<init>(Lnet/minecraft/world/gen/densityfunction/DensityFunction;)V
 
 
- 
- 
Method Details- 
sampleReturns the density value for the given block position.- Specified by:
- samplein interface- DensityFunction
- Parameters:
- pos- the block position
- Returns:
- the density value for the given block position
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldhd;a(Ldhd$b;)D- intermediary - method_40464- Lnet/minecraft/class_6910;method_40464(Lnet/minecraft/class_6910$class_6912;)D- named - sample- Lnet/minecraft/world/gen/densityfunction/DensityFunction;sample(Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;)D
 
- 
fillFills an array of densities usingthisdensity function and theDensityFunction.EachApplier.- Specified by:
- fillin interface- DensityFunction
- Parameters:
- densities- the array of densities to fill, like a buffer or a cache
- applier- the- EachApplierto 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 - a- Ldhd;a([DLdhd$a;)V- intermediary - method_40470- Lnet/minecraft/class_6910;method_40470([DLnet/minecraft/class_6910$class_6911;)V- named - fill- Lnet/minecraft/world/gen/densityfunction/DensityFunction;fill([DLnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;)V
 
- 
wrapped- Specified by:
- wrappedin interface- ChunkNoiseSampler.ParentedNoiseType
- Specified by:
- wrappedin interface- DensityFunctionTypes.Wrapper
- Mappings:
- Namespace - Name - Mixin selector - official - k- Ldhe$m;k()Ldhd;- intermediary - comp_469- Lnet/minecraft/class_6916$class_7052;comp_469()Lnet/minecraft/class_6910;- named - wrapped- Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapper;wrapped()Lnet/minecraft/world/gen/densityfunction/DensityFunction;
 
- 
typepublic net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Wrapping.Type type()- Specified by:
- typein interface- DensityFunctionTypes.Wrapper
- Mappings:
- Namespace - Name - Mixin selector - official - j- Ldhe$m;j()Ldhe$l$a;- intermediary - comp_383- Lnet/minecraft/class_6916$class_7052;comp_383()Lnet/minecraft/class_6916$class_6927$class_6928;- named - type- Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapper;type()Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapping$Type;
 
 
-