mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-11 20:13:55 +00:00
@ -1,7 +1,32 @@
|
||||
package com.boydti.fawe.object;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public enum RelightMode {
|
||||
NONE, // no relighting
|
||||
OPTIMAL, // relight changed light sources and changed blocks
|
||||
ALL // relight every single block
|
||||
NONE(0), // no relighting
|
||||
OPTIMAL(1), // relight changed light sources and changed blocks
|
||||
ALL(2); // relight every single block
|
||||
|
||||
private static final Map<Integer, RelightMode> map = new HashMap<>();
|
||||
|
||||
static {
|
||||
for (RelightMode mode : RelightMode.values()) {
|
||||
map.put(mode.mode, mode);
|
||||
}
|
||||
}
|
||||
|
||||
private final int mode;
|
||||
|
||||
RelightMode(int mode) {
|
||||
this.mode = mode;
|
||||
}
|
||||
|
||||
public static RelightMode valueOf(int mode) {
|
||||
return map.get(mode);
|
||||
}
|
||||
|
||||
public int getMode() {
|
||||
return mode;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user