Guest User

Untitled

a guest
Jun 21st, 2015
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.14 KB | None | 0 0
  1. public class EntityLibrary {
  2.    
  3.     /*
  4.     Unknown error happened before, so this code was left behind.
  5.     public static void register() {
  6.         int entityID = EntityRegistry.findGlobalUniqueEntityId();
  7.         // EntityRegistry.registerGlobalEntityID(EntityDataLoyalist.class, "entityDataLoyalist", entityID, 0, 0);
  8.         // EntityRegistry.registerModEntity(EntityDataGeneric.class, "entityDataGeneric", entityID, Main.instance, 0, 0, true);
  9.         EntityRegistry.registerModEntity(EntityDataLoyalist.class, "entityDataLoyalist", entityID, Main.instance, 0, 0, true);
  10.         // EntityList EntityEggInfo(ID, primary, secondary);
  11.         EntityList.entityEggs.put(Integer.valueOf(entityID), new EntityList.EntityEggInfo(entityID, 0, 0));
  12.         RenderingRegistry.registerEntityRenderingHandler(EntityDataGeneric.class, new RenderBiped(new ModelBiped(), 1));
  13.        
  14.     }
  15.     */
  16.    
  17.     public static void register() {
  18.         EntityRegistry.registerGlobalEntityID(EntityDataSwordman.class, "entityDataSwordman", EntityRegistry.findGlobalUniqueEntityId());
  19.         EntityRegistry.registerModEntity(EntityDataSwordman.class, "entityDataSwordman", EntityRegistry.findGlobalUniqueEntityId(), Main.instance, 1, 1, true);
  20.     }
  21.    
  22. }
Advertisement
Add Comment
Please, Sign In to add comment