mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-12 06:07:31 +00:00
cleanup constants but keep some of the informative stuff
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user