mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-15 09:34:53 +00:00
Workaround for colouring supporters list with ANSI encoding
This commit is contained in:
1 parent
d25ba4df04
commit
aa4e9bc160
4 files changed
+18
-14
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user