mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-26 15:13:01 +00:00
If a player is reading this and wants dynamic lights during alpha, please enable the module in the angelica-modules config file then the config option in the video settings will take effect. * Implement Dynamic Lights (#360) * inital dynamicLights * continue work * Add credit * More implementations * "Working" * NotFine 0.2.2 sync (#462) * Slight cleanup in ColorizeBlock * Don't call System.gc * Add toggle for Renderpass (forced to false) * Dont rebuild the same chunk 8 times * Use client pos * Fully working + configs * Clean up * Fix readme and gradle properties * Fix tooltip * nit changes --------- Co-authored-by: jss2a98aj <[email protected]> * Might help if the dynamic lights mixins follow the config setting * Fix shadows from showing on sides of blocks * Set dynamic lights module to off for alpha * Add missed enable checks --------- Co-authored-by: jss2a98aj <[email protected]> Co-authored-by: Jason Mitchell <[email protected]>
36 lines
656 B
Java
36 lines
656 B
Java
package com.gtnewhorizons.angelica.dynamiclights;
|
|
|
|
import java.util.Objects;
|
|
|
|
public enum DynamicLightsMode
|
|
{
|
|
OFF("Off", 0),
|
|
FASTEST("Fastest", 500),
|
|
FAST("Fast", 250),
|
|
FANCY("Fancy", 0);
|
|
|
|
private final String name;
|
|
private final int delay;
|
|
|
|
public boolean hasDelay() {
|
|
return delay > 0;
|
|
}
|
|
|
|
public int getDelay(){
|
|
return delay;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
DynamicLightsMode(String name, int delay) {
|
|
this.name = name;
|
|
this.delay = delay;
|
|
}
|
|
|
|
public boolean isEnabled() {
|
|
return !Objects.equals(this, DynamicLightsMode.OFF);
|
|
}
|
|
}
|