Package net.minecraft.world.gen.chunk
Class ChunkNoiseSampler.DensityInterpolator
java.lang.Object
net.minecraft.world.gen.chunk.ChunkNoiseSampler.DensityInterpolator
- All Implemented Interfaces:
ChunkNoiseSampler.ParentedNoiseType
,DensityFunction
,DensityFunctionTypes.Wrapper
- Enclosing class:
ChunkNoiseSampler
public class ChunkNoiseSampler.DensityInterpolator
extends Object
implements DensityFunctionTypes.Wrapper, ChunkNoiseSampler.ParentedNoiseType
- Mappings:
Namespace Name named net/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator
intermediary net/minecraft/class_6568$class_5917
official dzc$i
-
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 TypeFieldDescriptionprivate final DensityFunction
(package private) double[][]
private double
(package private) double[][]
private double
private double
private double
private double
private double
private double
private double
private double
private double
private double
private double
private double
private double
private double
Fields inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction
CODEC, FUNCTION_CODEC, REGISTRY_ENTRY_CODEC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate double[][]
createBuffer
(int sizeZ, int sizeX) void
fill
(double[] densities, DensityFunction.EachApplier applier) Fills an array of densities usingthis
density function and theDensityFunction.EachApplier
.(package private) void
interpolateX
(double deltaX) Interpolates the four remaining densities on the X axis.(package private) void
interpolateY
(double deltaY) Interpolates the eight densities on the Y axis.(package private) void
interpolateZ
(double deltaZ) Interpolates the two remaining densities on the Z axis.(package private) void
onSampledCellCorners
(int cellY, int cellZ) Copies the densities of the eight corners of the current cell into their respective fields.double
Returns the density value for the given block position.private void
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
-
startDensityBuffer
double[][] startDensityBuffer- Mappings:
Namespace Name Mixin selector named startDensityBuffer
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;startDensityBuffer:[[D
intermediary field_29227
Lnet/minecraft/class_6568$class_5917;field_29227:[[D
official e
Ldzc$i;e:[[D
-
endDensityBuffer
double[][] endDensityBuffer- Mappings:
Namespace Name Mixin selector named endDensityBuffer
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;endDensityBuffer:[[D
intermediary field_29228
Lnet/minecraft/class_6568$class_5917;field_29228:[[D
official f
Ldzc$i;f:[[D
-
delegate
- Mappings:
Namespace Name Mixin selector named delegate
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;delegate:Lnet/minecraft/world/gen/densityfunction/DensityFunction;
intermediary field_34623
Lnet/minecraft/class_6568$class_5917;field_34623:Lnet/minecraft/class_6910;
official g
Ldzc$i;g:Ldyr;
-
x0y0z0
private double x0y0z0- Mappings:
Namespace Name Mixin selector named x0y0z0
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0y0z0:D
intermediary field_29233
Lnet/minecraft/class_6568$class_5917;field_29233:D
official h
Ldzc$i;h:D
-
x0y0z1
private double x0y0z1- Mappings:
Namespace Name Mixin selector named x0y0z1
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0y0z1:D
intermediary field_29234
Lnet/minecraft/class_6568$class_5917;field_29234:D
official i
Ldzc$i;i:D
-
x1y0z0
private double x1y0z0- Mappings:
Namespace Name Mixin selector named x1y0z0
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1y0z0:D
intermediary field_29235
Lnet/minecraft/class_6568$class_5917;field_29235:D
official j
Ldzc$i;j:D
-
x1y0z1
private double x1y0z1- Mappings:
Namespace Name Mixin selector named x1y0z1
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1y0z1:D
intermediary field_29236
Lnet/minecraft/class_6568$class_5917;field_29236:D
official k
Ldzc$i;k:D
-
x0y1z0
private double x0y1z0- Mappings:
Namespace Name Mixin selector named x0y1z0
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0y1z0:D
intermediary field_29237
Lnet/minecraft/class_6568$class_5917;field_29237:D
official l
Ldzc$i;l:D
-
x0y1z1
private double x0y1z1- Mappings:
Namespace Name Mixin selector named x0y1z1
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0y1z1:D
intermediary field_29238
Lnet/minecraft/class_6568$class_5917;field_29238:D
official m
Ldzc$i;m:D
-
x1y1z0
private double x1y1z0- Mappings:
Namespace Name Mixin selector named x1y1z0
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1y1z0:D
intermediary field_29239
Lnet/minecraft/class_6568$class_5917;field_29239:D
official n
Ldzc$i;n:D
-
x1y1z1
private double x1y1z1- Mappings:
Namespace Name Mixin selector named x1y1z1
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1y1z1:D
intermediary field_29240
Lnet/minecraft/class_6568$class_5917;field_29240:D
official o
Ldzc$i;o:D
-
x0z0
private double x0z0- Mappings:
Namespace Name Mixin selector named x0z0
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0z0:D
intermediary field_29241
Lnet/minecraft/class_6568$class_5917;field_29241:D
official p
Ldzc$i;p:D
-
x1z0
private double x1z0- Mappings:
Namespace Name Mixin selector named x1z0
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1z0:D
intermediary field_29242
Lnet/minecraft/class_6568$class_5917;field_29242:D
official q
Ldzc$i;q:D
-
x0z1
private double x0z1- Mappings:
Namespace Name Mixin selector named x0z1
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0z1:D
intermediary field_29243
Lnet/minecraft/class_6568$class_5917;field_29243:D
official r
Ldzc$i;r:D
-
x1z1
private double x1z1- Mappings:
Namespace Name Mixin selector named x1z1
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1z1:D
intermediary field_29244
Lnet/minecraft/class_6568$class_5917;field_29244:D
official s
Ldzc$i;s:D
-
z0
private double z0- Mappings:
Namespace Name Mixin selector named z0
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;z0:D
intermediary field_29245
Lnet/minecraft/class_6568$class_5917;field_29245:D
official t
Ldzc$i;t:D
-
z1
private double z1- Mappings:
Namespace Name Mixin selector named z1
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;z1:D
intermediary field_29246
Lnet/minecraft/class_6568$class_5917;field_29246:D
official u
Ldzc$i;u:D
-
result
private double result- Mappings:
Namespace Name Mixin selector named result
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;result:D
intermediary field_34624
Lnet/minecraft/class_6568$class_5917;field_34624:D
official v
Ldzc$i;v:D
-
-
Constructor Details
-
DensityInterpolator
DensityInterpolator(DensityFunction delegate) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;<init>(Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;Lnet/minecraft/world/gen/densityfunction/DensityFunction;)V
intermediary <init>
Lnet/minecraft/class_6568$class_5917;<init>(Lnet/minecraft/class_6568;Lnet/minecraft/class_6910;)V
official <init>
Ldzc$i;<init>(Ldzc;Ldyr;)V
-
-
Method Details
-
createBuffer
private double[][] createBuffer(int sizeZ, int sizeX) - Mappings:
Namespace Name Mixin selector named createBuffer
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;createBuffer(II)[[D
intermediary method_34293
Lnet/minecraft/class_6568$class_5917;method_34293(II)[[D
official a
Ldzc$i;a(II)[[D
-
onSampledCellCorners
void onSampledCellCorners(int cellY, int cellZ) Copies the densities of the eight corners of the current cell into their respective fields.- Parameters:
cellY
- the cell's Y coordinatecellZ
- the cell's chunk-local Z coordinate- Mappings:
Namespace Name Mixin selector named onSampledCellCorners
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;onSampledCellCorners(II)V
intermediary method_34289
Lnet/minecraft/class_6568$class_5917;method_34289(II)V
official b
Ldzc$i;b(II)V
-
interpolateY
void interpolateY(double deltaY) Interpolates the eight densities on the Y axis.- Mappings:
Namespace Name Mixin selector named interpolateY
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;interpolateY(D)V
intermediary method_34287
Lnet/minecraft/class_6568$class_5917;method_34287(D)V
official a
Ldzc$i;a(D)V
-
interpolateX
void interpolateX(double deltaX) Interpolates the four remaining densities on the X axis.- Mappings:
Namespace Name Mixin selector named interpolateX
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;interpolateX(D)V
intermediary method_34292
Lnet/minecraft/class_6568$class_5917;method_34292(D)V
official b
Ldzc$i;b(D)V
-
interpolateZ
void interpolateZ(double deltaZ) Interpolates the two remaining densities on the Z axis.- Mappings:
Namespace Name Mixin selector named interpolateZ
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;interpolateZ(D)V
intermediary method_38363
Lnet/minecraft/class_6568$class_5917;method_38363(D)V
official c
Ldzc$i;c(D)V
-
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
Ldyr;a(Ldyr$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
Ldyr;a([DLdyr$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
Ldys$m;k()Ldyr;
-
swapBuffers
private void swapBuffers()- Mappings:
Namespace Name Mixin selector named swapBuffers
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;swapBuffers()V
intermediary method_34291
Lnet/minecraft/class_6568$class_5917;method_34291()V
official l
Ldzc$i;l()V
-
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
Ldys$m;j()Ldys$l$a;
-