Guest User

Untitled

a guest
Sep 13th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1.  
  2.  
  3.  
  4. public static void registerEntityEgg(Class <? extends Entity> entity, int PrimaryColor, int secondaryColor) {
  5. int id = getUniqueEntityId();
  6. EntityList.IDtoClassMapping.put(id, entity);
  7. EntityList.entityEggs.put(id, new EntityEggInfo(id, PrimaryColor, secondaryColor));
  8. }
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15. EntityRegistry.registerGlobalEntityID(MyEntityApe.class, "Ape", MyEntityID);
  16. EntityRegistry.addSpawn(MyEntityApe.class, 88, 6, 12, EnumCreatureType.monster, BiomeGenBase.jungle);
  17. EntityRegistry.addSpawn(MyEntityApe.class, 88, 6, 12, EnumCreatureType.monster, BiomeGenBase.jungleHills);
  18. EntityRegistry.addSpawn(MyEntityApe.class, 5, 1, 5, EnumCreatureType.monster, MyBiome_1);
  19. registerEntityEgg(MyEntityApe.class, (new Color(97, 71, 52)).getRGB(), (new Color(151, 137, 111)).getRGB());
Advertisement
Add Comment
Please, Sign In to add comment