cleanup constants but keep some of the informative stuff

This commit is contained in:
FalsePattern committed 2023-04-06 11:44:41 +02:00
1 parent 8ae84392ba
commit a1d13d833d
2 files changed
+4 -6

No files matched your search

@@ -2,6 +2,7 @@ package com.falsepattern.endlessids.constants;
import com.falsepattern.endlessids.config.GeneralConfig;
@SuppressWarnings("unused")
public class ExtendedConstants {
//Tunables
public static final int bitsPerID = 24;
@@ -37,10 +38,7 @@ public class ExtendedConstants {
public static final int biomeIDMask = biomeIDCount - 1;
public static final int biomeIDNull = biomeIDMask;
public static final int bytesPerBiome = (bitsPerBiome + 7) / 8;
//Chunk
public static final int bytesPerChunk =
(GeneralConfig.extendBiome ? bytesPerBiome : VanillaConstants.bytesPerBiome) * 256 +
(GeneralConfig.extendBlockItem ? bytesPerEBS : VanillaConstants.bytesPerEBS) * 16;
//DataWatcher
public static final int watchableCount = 1 << watchableBits;
public static final int maxWatchableID = watchableCount - 1;
@@ -1,5 +1,6 @@
package com.falsepattern.endlessids.constants;
@SuppressWarnings("unused")
public class VanillaConstants {
//Tunables
public static final int bitsPerID = 12;
@@ -32,8 +33,7 @@ public class VanillaConstants {
public static final int biomeIDMask = biomeIDCount - 1;
public static final int biomeIDNull = biomeIDMask;
public static final int bytesPerBiome = (bitsPerBiome + 7) / 8;
//Chunk
public static final int bytesPerChunk = bytesPerBiome * 256 + bytesPerEBS * 16;
//DataWatcher
public static final int watchableCount = 1 << watchableBits;
public static final int maxWatchableID = watchableCount - 1;