-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the beginnings of a Constants class, to document/clean some of th…
…e magic numbers that are in the MC code base.
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
src/main/java/net/minecraftforge/common/util/Constants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package net.minecraftforge.common.util; | ||
|
||
/** | ||
* A class containing constants for magic numbers used in the minecraft codebase. | ||
* Everything here should be checked each update, and have a comment relating to where to check it. | ||
*/ | ||
public class Constants | ||
{ | ||
/** | ||
* NBT Tag type IDS, used when storing the nbt to disc, Should align with NBTBase.getId, | ||
* table used in NBTBase.func_150283_g | ||
* | ||
* Main use is checking tag type in NBTTagCompound.func_150297_b(String, int) | ||
* | ||
*/ | ||
public static class NBT | ||
{ | ||
public static final int TAG_END = 0; | ||
public static final int TAG_BYTE = 1; | ||
public static final int TAG_SHORT = 2; | ||
public static final int TAG_INT = 3; | ||
public static final int TAG_LONG = 4; | ||
public static final int TAG_FLOAT = 5; | ||
public static final int TAG_DOUBLE = 6; | ||
public static final int TAG_BYTE_ARRAY = 7; | ||
public static final int TAG_STRING = 8; | ||
public static final int TAG_LIST = 9; | ||
public static final int TAG_COMPOUND = 10; | ||
public static final int TAG_INT_ARRAY = 11; | ||
public static final int TAG_ANY_NUMERIC = 99; | ||
} | ||
} |