refactor: make chunk states constants final
parent
9548841cc8
commit
cc68d3b434
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue