Package net.minecraft.world
Class Heightmap
java.lang.Object
net.minecraft.world.Heightmap
public class Heightmap extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHeightmap.Purposestatic classHeightmap.Type -
Field Summary
Fields Modifier and Type Field Description private static Predicate<BlockState>ALWAYS_TRUEprivate Predicate<BlockState>blockPredicateprivate Chunkchunkprivate PackedIntegerArraystorageprivate static Predicate<BlockState>SUFFOCATES -
Constructor Summary
Constructors Constructor Description Heightmap(Chunk chunk, Heightmap.Type type) -
Method Summary
Modifier and Type Method Description long[]asLongArray()private intget(int index)intget(int x, int z)static voidpopulateHeightmaps(Chunk chunk, Set<Heightmap.Type> types)private voidset(int x, int z, int height)voidsetTo(long[] heightmap)private static inttoIndex(int x, int z)booleantrackUpdate(int x, int y, int z, BlockState state)
-
Field Details
-
ALWAYS_TRUE
-
SUFFOCATES
-
storage
-
blockPredicate
-
chunk
-
-
Constructor Details
-
Heightmap
-
-
Method Details
-
populateHeightmaps
-
trackUpdate
-
get
public int get(int x, int z) -
get
private int get(int index) -
set
private void set(int x, int z, int height) -
setTo
public void setTo(long[] heightmap) -
asLongArray
public long[] asLongArray() -
toIndex
private static int toIndex(int x, int z)
-