429430431432433434435
addEntityEgg(EntityIronGolem.class, 0xC5C2C1, 0xffe1cc); } private static void addEntityEgg(Class<?> entity, int i, int j) { int id = (Integer)EntityList.classToIDMapping.get(entity); EntityList.entityEggs.put(id, new EntityEggInfo(id, i, j)); }
37383940414243
} public static void registerEntityEgg(Class<? extends Entity> entity, int primaryColor, int secondaryColor){ int id = getUniqueEntityId(); EntityList.IDtoClassMapping.put(id, entity); EntityList.entityEggs.put(id, new EntityEggInfo(id, primaryColor, secondaryColor)); }