Package net.minecraft.world.gen.chunk
Class ChunkNoiseSampler.CellCache
java.lang.Object
net.minecraft.world.gen.chunk.ChunkNoiseSampler.CellCache
- All Implemented Interfaces:
ChunkNoiseSampler.ParentedNoiseType
,DensityFunction
,DensityFunctionTypes.Wrapper
- Enclosing class:
ChunkNoiseSampler
private class ChunkNoiseSampler.CellCache
extends Object
implements DensityFunctionTypes.Wrapper, ChunkNoiseSampler.ParentedNoiseType
- Mappings:
Namespace Name official dho$e
intermediary net/minecraft/class_6568$class_6949
named net/minecraft/world/gen/chunk/ChunkNoiseSampler$CellCache
-
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
Modifier and TypeFieldDescription(package private) final double[]
(package private) final DensityFunction
Fields inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction
CODEC, FUNCTION_CODEC, REGISTRY_ENTRY_CODEC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fill
(double[] densities, DensityFunction.EachApplier applier) Fills an array of densities usingthis
density function and theDensityFunction.EachApplier
.double
Returns the density value for the given block position.net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Wrapping.Type
type()
wrapped()
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.gen.chunk.ChunkNoiseSampler.ParentedNoiseType
maxValue, minValue
Methods inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction
abs, clamp, cube, halfNegative, quarterNegative, square, squeeze
Methods inherited from interface net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Wrapper
apply, getCodecHolder
-
Field Details
-
delegate
- Mappings:
Namespace Name Mixin selector official e
Ldho$e;e:Ldhd;
intermediary field_36603
Lnet/minecraft/class_6568$class_6949;field_36603:Lnet/minecraft/class_6910;
named delegate
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$CellCache;delegate:Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
cache
final double[] cache- Mappings:
Namespace Name Mixin selector official f
Ldho$e;f:[D
intermediary field_36604
Lnet/minecraft/class_6568$class_6949;field_36604:[D
named cache
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$CellCache;cache:[D
-
-
Constructor Details
-
CellCache
CellCache(DensityFunction delegate) - Mappings:
Namespace Name Mixin selector official <init>
Ldho$e;<init>(Ldho;Ldhd;)V
intermediary <init>
Lnet/minecraft/class_6568$class_6949;<init>(Lnet/minecraft/class_6568;Lnet/minecraft/class_6910;)V
named <init>
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$CellCache;<init>(Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;Lnet/minecraft/world/gen/densityfunction/DensityFunction;)V
-
-
Method Details
-
sample
Returns the density value for the given block position.- Specified by:
sample
in interfaceDensityFunction
- 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
-
fill
Fills an array of densities usingthis
density function and theDensityFunction.EachApplier
.- Specified by:
fill
in interfaceDensityFunction
- Parameters:
densities
- the array of densities to fill, like a buffer or a cacheapplier
- theEachApplier
to 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:
wrapped
in interfaceChunkNoiseSampler.ParentedNoiseType
- Specified by:
wrapped
in interfaceDensityFunctionTypes.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;
-
type
public net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Wrapping.Type type()- Specified by:
type
in interfaceDensityFunctionTypes.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;
-