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 class
Heightmap.Purpose
static class
Heightmap.Type
-
Field Summary
Fields Modifier and Type Field Description private static Predicate<BlockState>
ALWAYS_TRUE
private Predicate<BlockState>
blockPredicate
private Chunk
chunk
private PackedIntegerArray
storage
private 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 int
get(int index)
int
get(int x, int z)
static void
populateHeightmaps(Chunk chunk, Set<Heightmap.Type> types)
private void
set(int x, int z, int height)
void
setTo(long[] heightmap)
private static int
toIndex(int x, int z)
boolean
trackUpdate(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)
-