Advertisement
Starstorms21

ModEntityRegistry

Apr 28th, 2020
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1.  
  2. public class ModEntityRegistry {
  3. static int entityId = 0;
  4.  
  5. public static HashMap<String,Class<? extends Entity>> modEntities = new HashMap<>();
  6.  
  7.  
  8. public static void registerEntities(){
  9. registerEntity("test",EntityTest.class);
  10. }
  11. public static void bindRenders(){
  12. RenderingRegistry.registerEntityRenderingHandler(EntityTest.class,);
  13. }
  14.  
  15.  
  16.  
  17.  
  18. public static void registerEntity(String name,Class<? extends Entity> entityIn){
  19. modEntities.put(name,entityIn);
  20. }
  21.  
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement