refactor: make chunk states constants final

treemaps-chunkstates-spacefilling
EmaMaker 2022-08-23 21:08:47 +02:00
parent 9548841cc8
commit cc68d3b434
1 changed files with 4 additions and 4 deletions

View File

@ -14,10 +14,10 @@ public class Chunk {
// A bit field representing the state of the chunk, where each bit is an operation done on the chunk
private byte state = 0;
// Convenient access to the bit field, each state is the position in the byte (0 is LSB)
public static byte CHUNK_STATE_GENERATED = 1;
public static byte CHUNK_STATE_MESHED = 2;
public static byte CHUNK_STATE_LOADED = 4;
public static byte CHUNK_STATE_EMPTY = 64;
public static final byte CHUNK_STATE_GENERATED = 1;
public static final byte CHUNK_STATE_MESHED = 2;
public static final byte CHUNK_STATE_LOADED = 4;
public static final byte CHUNK_STATE_EMPTY = 64;
public Chunk() {
this(0,0,0);