Package net.minecraft.world.gen.chunk
Class ChunkNoiseSampler.FlatCache
java.lang.Object
net.minecraft.world.gen.chunk.ChunkNoiseSampler.FlatCache
- All Implemented Interfaces:
- ChunkNoiseSampler.ParentedNoiseType,- DensityFunction,- DensityFunctionTypes.Wrapper
- Enclosing class:
- ChunkNoiseSampler
private class ChunkNoiseSampler.FlatCache
extends Object
implements DensityFunctionTypes.Wrapper, ChunkNoiseSampler.ParentedNoiseType
- Mappings:
- Namespace - Name - named - net/minecraft/world/gen/chunk/ChunkNoiseSampler$FlatCache- intermediary - net/minecraft/class_6568$class_6951- official - ecx$g
- 
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 SummaryFieldsModifier and TypeFieldDescription(package private) final double[][]private final DensityFunctionFields 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 - named - delegate- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$FlatCache;delegate:Lnet/minecraft/world/gen/densityfunction/DensityFunction;- intermediary - field_36612- Lnet/minecraft/class_6568$class_6951;field_36612:Lnet/minecraft/class_6910;- official - e- Lecx$g;e:Lecm;
 
- 
cachefinal double[][] cache- Mappings:
- Namespace - Name - Mixin selector - named - cache- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$FlatCache;cache:[[D- intermediary - field_36613- Lnet/minecraft/class_6568$class_6951;field_36613:[[D- official - f- Lecx$g;f:[[D
 
 
- 
- 
Constructor Details- 
FlatCacheFlatCache(DensityFunction delegate, boolean sample) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$FlatCache;<init>(Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;Lnet/minecraft/world/gen/densityfunction/DensityFunction;Z)V- intermediary - <init>- Lnet/minecraft/class_6568$class_6951;<init>(Lnet/minecraft/class_6568;Lnet/minecraft/class_6910;Z)V- official - <init>- Lecx$g;<init>(Lecx;Lecm;Z)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 - named - sample- Lnet/minecraft/world/gen/densityfunction/DensityFunction;sample(Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;)D- intermediary - method_40464- Lnet/minecraft/class_6910;method_40464(Lnet/minecraft/class_6910$class_6912;)D- official - a- Lecm;a(Lecm$b;)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 - named - fill- Lnet/minecraft/world/gen/densityfunction/DensityFunction;fill([DLnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;)V- intermediary - method_40470- Lnet/minecraft/class_6910;method_40470([DLnet/minecraft/class_6910$class_6911;)V- official - a- Lecm;a([DLecm$a;)V
 
- 
wrapped- Specified by:
- wrappedin interface- ChunkNoiseSampler.ParentedNoiseType
- Specified by:
- wrappedin interface- DensityFunctionTypes.Wrapper
- Mappings:
- Namespace - Name - Mixin selector - named - wrapped- Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapper;wrapped()Lnet/minecraft/world/gen/densityfunction/DensityFunction;- intermediary - comp_469- Lnet/minecraft/class_6916$class_7052;comp_469()Lnet/minecraft/class_6910;- official - k- Lecn$m;k()Lecm;
 
- 
typepublic net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Wrapping.Type type()- Specified by:
- typein interface- DensityFunctionTypes.Wrapper
- Mappings:
- Namespace - Name - Mixin selector - named - type- Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapper;type()Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapping$Type;- intermediary - comp_383- Lnet/minecraft/class_6916$class_7052;comp_383()Lnet/minecraft/class_6916$class_6927$class_6928;- official - j- Lecn$m;j()Lecn$l$a;
 
 
-