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 named net/minecraft/world/gen/chunk/ChunkNoiseSampler$Cache2D
intermediary net/minecraft/class_6568$class_6948
official edt$d
-
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
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 named delegate
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$Cache2D;delegate:Lnet/minecraft/world/gen/densityfunction/DensityFunction;
intermediary field_36599
Lnet/minecraft/class_6568$class_6948;field_36599:Lnet/minecraft/class_6910;
official a
Ledt$d;a:Ledi;
-
lastSamplingColumnPos
private long lastSamplingColumnPos- Mappings:
Namespace Name Mixin selector named lastSamplingColumnPos
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$Cache2D;lastSamplingColumnPos:J
intermediary field_36600
Lnet/minecraft/class_6568$class_6948;field_36600:J
official e
Ledt$d;e:J
-
lastSamplingResult
private double lastSamplingResult- Mappings:
Namespace Name Mixin selector named lastSamplingResult
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$Cache2D;lastSamplingResult:D
intermediary field_36601
Lnet/minecraft/class_6568$class_6948;field_36601:D
official f
Ledt$d;f:D
-
-
Constructor Details
-
Cache2D
Cache2D(DensityFunction delegate) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$Cache2D;<init>(Lnet/minecraft/world/gen/densityfunction/DensityFunction;)V
intermediary <init>
Lnet/minecraft/class_6568$class_6948;<init>(Lnet/minecraft/class_6910;)V
official <init>
Ledt$d;<init>(Ledi;)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 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
Ledi;a(Ledi$b;)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 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
Ledi;a([DLedi$a;)V
-
wrapped
- Specified by:
wrapped
in interfaceChunkNoiseSampler.ParentedNoiseType
- Specified by:
wrapped
in interfaceDensityFunctionTypes.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
Ledj$m;k()Ledi;
-
type
public net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Wrapping.Type type()- Specified by:
type
in interfaceDensityFunctionTypes.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
Ledj$m;j()Ledj$l$a;
-