Class DensityBuffer
java.lang.Object
net.minecraft.world.level.levelgen.densityfunction.DensityBuffer
- Direct Known Subclasses:
ScopedDensityBuffer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTo(int index, float value) intcapacity()voidcopyFrom(DensityBuffer other) static DensityBuffercreateUnpooled(int size) voidfill(float value) floatget(int index) voidset(int index, float value) voidsetRange(int index, int size, float value) intsize()
-
Field Details
-
values
protected final float[] values -
size
protected int size
-
-
Constructor Details
-
DensityBuffer
protected DensityBuffer(int size)
-
-
Method Details
-
createUnpooled
-
set
public void set(int index, float value) -
setRange
public void setRange(int index, int size, float value) -
addTo
public void addTo(int index, float value) -
get
public float get(int index) -
fill
public void fill(float value) -
copyFrom
-
capacity
public int capacity() -
size
public int size()
-