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$DensityInterpolatorintermediary net/minecraft/class_6568$class_5917official eke$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
FieldsModifier and TypeFieldDescriptionprivate final DensityFunction(package private) double[][]private double(package private) double[][]private doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleFields inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction
CODEC, FUNCTION_CODEC, REGISTRY_ENTRY_CODEC - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate double[][]createBuffer(int sizeZ, int sizeX) voidfill(double[] densities, DensityFunction.EachApplier applier) Fills an array of densities usingthisdensity function and theDensityFunction.EachApplier.(package private) voidinterpolateX(double deltaX) Interpolates the four remaining densities on the X axis.(package private) voidinterpolateY(double deltaY) Interpolates the eight densities on the Y axis.(package private) voidinterpolateZ(double deltaZ) Interpolates the two remaining densities on the Z axis.(package private) voidonSampledCellCorners(int cellY, int cellZ) Copies the densities of the eight corners of the current cell into their respective fields.doubleReturns the density value for the given block position.private voidnet.minecraft.world.gen.densityfunction.DensityFunctionTypes.Wrapping.Typetype()wrapped()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.gen.chunk.ChunkNoiseSampler.ParentedNoiseType
maxValue, minValueMethods inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction
abs, clamp, cube, halfNegative, quarterNegative, square, squeezeMethods inherited from interface net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Wrapper
apply, getCodecHolder 
- 
Field Details
- 
startDensityBuffer
double[][] startDensityBuffer- Mappings:
 Namespace Name Mixin selector named startDensityBufferLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;startDensityBuffer:[[Dintermediary field_29227Lnet/minecraft/class_6568$class_5917;field_29227:[[Dofficial eLeke$i;e:[[D
 - 
endDensityBuffer
double[][] endDensityBuffer- Mappings:
 Namespace Name Mixin selector named endDensityBufferLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;endDensityBuffer:[[Dintermediary field_29228Lnet/minecraft/class_6568$class_5917;field_29228:[[Dofficial fLeke$i;f:[[D
 - 
delegate
- Mappings:
 Namespace Name Mixin selector named delegateLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;delegate:Lnet/minecraft/world/gen/densityfunction/DensityFunction;intermediary field_34623Lnet/minecraft/class_6568$class_5917;field_34623:Lnet/minecraft/class_6910;official gLeke$i;g:Lejt;
 - 
x0y0z0
private double x0y0z0- Mappings:
 Namespace Name Mixin selector named x0y0z0Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0y0z0:Dintermediary field_29233Lnet/minecraft/class_6568$class_5917;field_29233:Dofficial hLeke$i;h:D
 - 
x0y0z1
private double x0y0z1- Mappings:
 Namespace Name Mixin selector named x0y0z1Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0y0z1:Dintermediary field_29234Lnet/minecraft/class_6568$class_5917;field_29234:Dofficial iLeke$i;i:D
 - 
x1y0z0
private double x1y0z0- Mappings:
 Namespace Name Mixin selector named x1y0z0Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1y0z0:Dintermediary field_29235Lnet/minecraft/class_6568$class_5917;field_29235:Dofficial jLeke$i;j:D
 - 
x1y0z1
private double x1y0z1- Mappings:
 Namespace Name Mixin selector named x1y0z1Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1y0z1:Dintermediary field_29236Lnet/minecraft/class_6568$class_5917;field_29236:Dofficial kLeke$i;k:D
 - 
x0y1z0
private double x0y1z0- Mappings:
 Namespace Name Mixin selector named x0y1z0Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0y1z0:Dintermediary field_29237Lnet/minecraft/class_6568$class_5917;field_29237:Dofficial lLeke$i;l:D
 - 
x0y1z1
private double x0y1z1- Mappings:
 Namespace Name Mixin selector named x0y1z1Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0y1z1:Dintermediary field_29238Lnet/minecraft/class_6568$class_5917;field_29238:Dofficial mLeke$i;m:D
 - 
x1y1z0
private double x1y1z0- Mappings:
 Namespace Name Mixin selector named x1y1z0Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1y1z0:Dintermediary field_29239Lnet/minecraft/class_6568$class_5917;field_29239:Dofficial nLeke$i;n:D
 - 
x1y1z1
private double x1y1z1- Mappings:
 Namespace Name Mixin selector named x1y1z1Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1y1z1:Dintermediary field_29240Lnet/minecraft/class_6568$class_5917;field_29240:Dofficial oLeke$i;o:D
 - 
x0z0
private double x0z0- Mappings:
 Namespace Name Mixin selector named x0z0Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0z0:Dintermediary field_29241Lnet/minecraft/class_6568$class_5917;field_29241:Dofficial pLeke$i;p:D
 - 
x1z0
private double x1z0- Mappings:
 Namespace Name Mixin selector named x1z0Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1z0:Dintermediary field_29242Lnet/minecraft/class_6568$class_5917;field_29242:Dofficial qLeke$i;q:D
 - 
x0z1
private double x0z1- Mappings:
 Namespace Name Mixin selector named x0z1Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0z1:Dintermediary field_29243Lnet/minecraft/class_6568$class_5917;field_29243:Dofficial rLeke$i;r:D
 - 
x1z1
private double x1z1- Mappings:
 Namespace Name Mixin selector named x1z1Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1z1:Dintermediary field_29244Lnet/minecraft/class_6568$class_5917;field_29244:Dofficial sLeke$i;s:D
 - 
z0
private double z0- Mappings:
 Namespace Name Mixin selector named z0Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;z0:Dintermediary field_29245Lnet/minecraft/class_6568$class_5917;field_29245:Dofficial tLeke$i;t:D
 - 
z1
private double z1- Mappings:
 Namespace Name Mixin selector named z1Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;z1:Dintermediary field_29246Lnet/minecraft/class_6568$class_5917;field_29246:Dofficial uLeke$i;u:D
 - 
result
private double result- Mappings:
 Namespace Name Mixin selector named resultLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;result:Dintermediary field_34624Lnet/minecraft/class_6568$class_5917;field_34624:Dofficial vLeke$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;)Vintermediary <init>Lnet/minecraft/class_6568$class_5917;<init>(Lnet/minecraft/class_6568;Lnet/minecraft/class_6910;)Vofficial <init>Leke$i;<init>(Leke;Lejt;)V
 
 - 
 - 
Method Details
- 
createBuffer
private double[][] createBuffer(int sizeZ, int sizeX) - Mappings:
 Namespace Name Mixin selector named createBufferLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;createBuffer(II)[[Dintermediary method_34293Lnet/minecraft/class_6568$class_5917;method_34293(II)[[Dofficial aLeke$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 onSampledCellCornersLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;onSampledCellCorners(II)Vintermediary method_34289Lnet/minecraft/class_6568$class_5917;method_34289(II)Vofficial bLeke$i;b(II)V
 - 
interpolateY
void interpolateY(double deltaY) Interpolates the eight densities on the Y axis.- Mappings:
 Namespace Name Mixin selector named interpolateYLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;interpolateY(D)Vintermediary method_34287Lnet/minecraft/class_6568$class_5917;method_34287(D)Vofficial aLeke$i;a(D)V
 - 
interpolateX
void interpolateX(double deltaX) Interpolates the four remaining densities on the X axis.- Mappings:
 Namespace Name Mixin selector named interpolateXLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;interpolateX(D)Vintermediary method_34292Lnet/minecraft/class_6568$class_5917;method_34292(D)Vofficial bLeke$i;b(D)V
 - 
interpolateZ
void interpolateZ(double deltaZ) Interpolates the two remaining densities on the Z axis.- Mappings:
 Namespace Name Mixin selector named interpolateZLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;interpolateZ(D)Vintermediary method_38363Lnet/minecraft/class_6568$class_5917;method_38363(D)Vofficial cLeke$i;c(D)V
 - 
sample
Returns the density value for the given block position.- Specified by:
 samplein interfaceDensityFunction- Parameters:
 pos- the block position- Returns:
 - the density value for the given block position
 - Mappings:
 Namespace Name Mixin selector named sampleLnet/minecraft/world/gen/densityfunction/DensityFunction;sample(Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;)Dintermediary method_40464Lnet/minecraft/class_6910;method_40464(Lnet/minecraft/class_6910$class_6912;)Dofficial aLejt;a(Lejt$b;)D
 - 
fill
Fills an array of densities usingthisdensity function and theDensityFunction.EachApplier.- Specified by:
 fillin interfaceDensityFunction- Parameters:
 densities- the array of densities to fill, like a buffer or a cacheapplier- theEachApplierto 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 fillLnet/minecraft/world/gen/densityfunction/DensityFunction;fill([DLnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;)Vintermediary method_40470Lnet/minecraft/class_6910;method_40470([DLnet/minecraft/class_6910$class_6911;)Vofficial aLejt;a([DLejt$a;)V
 - 
wrapped
- Specified by:
 wrappedin interfaceChunkNoiseSampler.ParentedNoiseType- Specified by:
 wrappedin interfaceDensityFunctionTypes.Wrapper- Mappings:
 Namespace Name Mixin selector named wrappedLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapper;wrapped()Lnet/minecraft/world/gen/densityfunction/DensityFunction;intermediary comp_469Lnet/minecraft/class_6916$class_7052;comp_469()Lnet/minecraft/class_6910;official kLeju$m;k()Lejt;
 - 
swapBuffers
private void swapBuffers()- Mappings:
 Namespace Name Mixin selector named swapBuffersLnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;swapBuffers()Vintermediary method_34291Lnet/minecraft/class_6568$class_5917;method_34291()Vofficial lLeke$i;l()V
 - 
type
public net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Wrapping.Type type()- Specified by:
 typein interfaceDensityFunctionTypes.Wrapper- Mappings:
 Namespace Name Mixin selector named typeLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapper;type()Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapping$Type;intermediary comp_383Lnet/minecraft/class_6916$class_7052;comp_383()Lnet/minecraft/class_6916$class_6927$class_6928;official jLeju$m;j()Leju$l$a;
 
 -