Workaround for colouring supporters list with ANSI encoding

This commit is contained in:
Chicken-Bomes committed 2014-08-04 23:15:48 +10:00
1 parent d25ba4df04
commit aa4e9bc160
4 files changed
+18 -14

No files matched your search

+8
View File
@@ -4,6 +4,8 @@ import java.io.File;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.FMLInjectionData;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityList;
import net.minecraft.world.World;
import net.minecraftforge.common.DimensionManager;
@@ -39,4 +41,10 @@ public class CommonUtils
return child.getPath().substring(parent.getPath().length() + 1);
}
public static void registerHandledEntity(Class<? extends Entity> entityClass, String identifier)
{
EntityList.classToStringMapping.put(entityClass, identifier);
EntityList.stringToClassMapping.put(identifier, entityClass);
}
}