Refactoring and commenting

This commit is contained in:
James Seibel
2021-08-08 16:30:04 -05:00
parent ce5f8708cd
commit 6520cdb184
8 changed files with 159 additions and 90 deletions
@@ -34,16 +34,22 @@ import net.minecraft.world.server.ServerChunkProvider;
import net.minecraft.world.server.ServerWorld;
/**
* This class holds methods that may be used in multiple places.
* This class holds methods and constants that may be used in multiple places.
*
* @author James Seibel
* @version 06-27-2021
* @version 8-8-2021
*/
public class LodUtil
{
private static Minecraft mc = Minecraft.getInstance();
/** alpha used when drawing chunks in debug mode */
public static final int DEBUG_ALPHA = 255; // 0 - 255
public static final Color COLOR_DEBUG_BLACK = new Color(0, 0, 0, DEBUG_ALPHA);
public static final Color COLOR_DEBUG_WHITE = new Color(255, 255, 255, DEBUG_ALPHA);
public static final Color COLOR_INVISIBLE = new Color(0,0,0,0);
/**
* Gets the first valid ServerWorld.