Package net.minecraft.world.gen
Class Heightmap
- java.lang.Object
-
- net.minecraft.world.gen.Heightmap
-
public class Heightmap extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Heightmap.Type
static class
Heightmap.Usage
-
Field Summary
Fields Modifier and Type Field Description private IChunk
chunk
private BitArray
data
private java.util.function.Predicate<BlockState>
isOpaque
private static java.util.function.Predicate<BlockState>
MATERIAL_MOTION_BLOCKING
private static java.util.function.Predicate<BlockState>
NOT_AIR
-
Constructor Summary
Constructors Constructor Description Heightmap(IChunk p_i48695_1_, Heightmap.Type p_i48695_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
getFirstAvailable(int p_202274_1_)
int
getFirstAvailable(int p_202273_1_, int p_202273_2_)
private static int
getIndex(int p_202267_0_, int p_202267_1_)
long[]
getRawData()
static void
primeHeightmaps(IChunk p_222690_0_, java.util.Set<Heightmap.Type> p_222690_1_)
private void
setHeight(int p_202272_1_, int p_202272_2_, int p_202272_3_)
void
setRawData(long[] p_202268_1_)
boolean
update(int p_202270_1_, int p_202270_2_, int p_202270_3_, BlockState p_202270_4_)
-
-
-
Field Detail
-
NOT_AIR
private static final java.util.function.Predicate<BlockState> NOT_AIR
-
MATERIAL_MOTION_BLOCKING
private static final java.util.function.Predicate<BlockState> MATERIAL_MOTION_BLOCKING
-
data
private final BitArray data
-
isOpaque
private final java.util.function.Predicate<BlockState> isOpaque
-
chunk
private final IChunk chunk
-
-
Constructor Detail
-
Heightmap
public Heightmap(IChunk p_i48695_1_, Heightmap.Type p_i48695_2_)
-
-
Method Detail
-
primeHeightmaps
public static void primeHeightmaps(IChunk p_222690_0_, java.util.Set<Heightmap.Type> p_222690_1_)
-
update
public boolean update(int p_202270_1_, int p_202270_2_, int p_202270_3_, BlockState p_202270_4_)
-
getFirstAvailable
public int getFirstAvailable(int p_202273_1_, int p_202273_2_)
-
getFirstAvailable
private int getFirstAvailable(int p_202274_1_)
-
setHeight
private void setHeight(int p_202272_1_, int p_202272_2_, int p_202272_3_)
-
setRawData
public void setRawData(long[] p_202268_1_)
-
getRawData
public long[] getRawData()
-
getIndex
private static int getIndex(int p_202267_0_, int p_202267_1_)
-
-