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 - official - dho$i- intermediary - net/minecraft/class_6568$class_5917- named - net/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator
- 
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 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.DensityFunctionCODEC, FUNCTION_CODEC, REGISTRY_ENTRY_CODEC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.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- 
startDensityBufferdouble[][] startDensityBuffer- Mappings:
- Namespace - Name - Mixin selector - official - e- Ldho$i;e:[[D- intermediary - field_29227- Lnet/minecraft/class_6568$class_5917;field_29227:[[D- named - startDensityBuffer- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;startDensityBuffer:[[D
 
- 
endDensityBufferdouble[][] endDensityBuffer- Mappings:
- Namespace - Name - Mixin selector - official - f- Ldho$i;f:[[D- intermediary - field_29228- Lnet/minecraft/class_6568$class_5917;field_29228:[[D- named - endDensityBuffer- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;endDensityBuffer:[[D
 
- 
delegate- Mappings:
- Namespace - Name - Mixin selector - official - g- Ldho$i;g:Ldhd;- intermediary - field_34623- Lnet/minecraft/class_6568$class_5917;field_34623:Lnet/minecraft/class_6910;- named - delegate- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;delegate:Lnet/minecraft/world/gen/densityfunction/DensityFunction;
 
- 
x0y0z0private double x0y0z0- Mappings:
- Namespace - Name - Mixin selector - official - h- Ldho$i;h:D- intermediary - field_29233- Lnet/minecraft/class_6568$class_5917;field_29233:D- named - x0y0z0- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0y0z0:D
 
- 
x0y0z1private double x0y0z1- Mappings:
- Namespace - Name - Mixin selector - official - i- Ldho$i;i:D- intermediary - field_29234- Lnet/minecraft/class_6568$class_5917;field_29234:D- named - x0y0z1- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0y0z1:D
 
- 
x1y0z0private double x1y0z0- Mappings:
- Namespace - Name - Mixin selector - official - j- Ldho$i;j:D- intermediary - field_29235- Lnet/minecraft/class_6568$class_5917;field_29235:D- named - x1y0z0- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1y0z0:D
 
- 
x1y0z1private double x1y0z1- Mappings:
- Namespace - Name - Mixin selector - official - k- Ldho$i;k:D- intermediary - field_29236- Lnet/minecraft/class_6568$class_5917;field_29236:D- named - x1y0z1- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1y0z1:D
 
- 
x0y1z0private double x0y1z0- Mappings:
- Namespace - Name - Mixin selector - official - l- Ldho$i;l:D- intermediary - field_29237- Lnet/minecraft/class_6568$class_5917;field_29237:D- named - x0y1z0- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0y1z0:D
 
- 
x0y1z1private double x0y1z1- Mappings:
- Namespace - Name - Mixin selector - official - m- Ldho$i;m:D- intermediary - field_29238- Lnet/minecraft/class_6568$class_5917;field_29238:D- named - x0y1z1- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0y1z1:D
 
- 
x1y1z0private double x1y1z0- Mappings:
- Namespace - Name - Mixin selector - official - n- Ldho$i;n:D- intermediary - field_29239- Lnet/minecraft/class_6568$class_5917;field_29239:D- named - x1y1z0- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1y1z0:D
 
- 
x1y1z1private double x1y1z1- Mappings:
- Namespace - Name - Mixin selector - official - o- Ldho$i;o:D- intermediary - field_29240- Lnet/minecraft/class_6568$class_5917;field_29240:D- named - x1y1z1- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1y1z1:D
 
- 
x0z0private double x0z0- Mappings:
- Namespace - Name - Mixin selector - official - p- Ldho$i;p:D- intermediary - field_29241- Lnet/minecraft/class_6568$class_5917;field_29241:D- named - x0z0- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0z0:D
 
- 
x1z0private double x1z0- Mappings:
- Namespace - Name - Mixin selector - official - q- Ldho$i;q:D- intermediary - field_29242- Lnet/minecraft/class_6568$class_5917;field_29242:D- named - x1z0- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1z0:D
 
- 
x0z1private double x0z1- Mappings:
- Namespace - Name - Mixin selector - official - r- Ldho$i;r:D- intermediary - field_29243- Lnet/minecraft/class_6568$class_5917;field_29243:D- named - x0z1- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x0z1:D
 
- 
x1z1private double x1z1- Mappings:
- Namespace - Name - Mixin selector - official - s- Ldho$i;s:D- intermediary - field_29244- Lnet/minecraft/class_6568$class_5917;field_29244:D- named - x1z1- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;x1z1:D
 
- 
z0private double z0- Mappings:
- Namespace - Name - Mixin selector - official - t- Ldho$i;t:D- intermediary - field_29245- Lnet/minecraft/class_6568$class_5917;field_29245:D- named - z0- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;z0:D
 
- 
z1private double z1- Mappings:
- Namespace - Name - Mixin selector - official - u- Ldho$i;u:D- intermediary - field_29246- Lnet/minecraft/class_6568$class_5917;field_29246:D- named - z1- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;z1:D
 
- 
resultprivate double result- Mappings:
- Namespace - Name - Mixin selector - official - v- Ldho$i;v:D- intermediary - field_34624- Lnet/minecraft/class_6568$class_5917;field_34624:D- named - result- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;result:D
 
 
- 
- 
Constructor Details- 
DensityInterpolatorDensityInterpolator(DensityFunction delegate) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Ldho$i;<init>(Ldho;Ldhd;)V- intermediary - <init>- Lnet/minecraft/class_6568$class_5917;<init>(Lnet/minecraft/class_6568;Lnet/minecraft/class_6910;)V- named - <init>- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;<init>(Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;Lnet/minecraft/world/gen/densityfunction/DensityFunction;)V
 
 
- 
- 
Method Details- 
createBufferprivate double[][] createBuffer(int sizeZ, int sizeX) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldho$i;a(II)[[D- intermediary - method_34293- Lnet/minecraft/class_6568$class_5917;method_34293(II)[[D- named - createBuffer- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;createBuffer(II)[[D
 
- 
onSampledCellCornersvoid 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 coordinate
- cellZ- the cell's chunk-local Z coordinate
- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldho$i;b(II)V- intermediary - method_34289- Lnet/minecraft/class_6568$class_5917;method_34289(II)V- named - onSampledCellCorners- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;onSampledCellCorners(II)V
 
- 
interpolateYvoid interpolateY(double deltaY) Interpolates the eight densities on the Y axis.- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldho$i;a(D)V- intermediary - method_34287- Lnet/minecraft/class_6568$class_5917;method_34287(D)V- named - interpolateY- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;interpolateY(D)V
 
- 
interpolateXvoid interpolateX(double deltaX) Interpolates the four remaining densities on the X axis.- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldho$i;b(D)V- intermediary - method_34292- Lnet/minecraft/class_6568$class_5917;method_34292(D)V- named - interpolateX- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;interpolateX(D)V
 
- 
interpolateZvoid interpolateZ(double deltaZ) Interpolates the two remaining densities on the Z axis.- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldho$i;c(D)V- intermediary - method_38363- Lnet/minecraft/class_6568$class_5917;method_38363(D)V- named - interpolateZ- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;interpolateZ(D)V
 
- 
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 - 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
 
- 
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 - 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:
- wrappedin interface- ChunkNoiseSampler.ParentedNoiseType
- Specified by:
- wrappedin interface- DensityFunctionTypes.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;
 
- 
swapBuffersprivate void swapBuffers()- Mappings:
- Namespace - Name - Mixin selector - official - l- Ldho$i;l()V- intermediary - method_34291- Lnet/minecraft/class_6568$class_5917;method_34291()V- named - swapBuffers- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$DensityInterpolator;swapBuffers()V
 
- 
typepublic net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Wrapping.Type type()- Specified by:
- typein interface- DensityFunctionTypes.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;
 
 
-