Add the beginnings of a Constants class, to document/clean some of the magic numbers that are in the MC code base.

This commit is contained in:
Lex Manos 2014-02-05 01:14:57 -08:00
parent e68577ffd3
commit 1e2c63f486

View file

@ -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;
}
}