Guest User

Untitled

a guest
Dec 22nd, 2015
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. package jip.jipmod.init.modEntityClasses;
  2.  
  3. import jip.jipmod.Reference;
  4. import net.minecraft.entity.EnumCreatureType;
  5. import net.minecraft.world.biome.BiomeGenBase;
  6. import net.minecraftforge.fml.common.registry.EntityRegistry;
  7.  
  8. public class EntityRegisterHorror {
  9.  
  10. public static void registerMobs()
  11. {
  12. // http://www.colorpicker.com/ http://www.mathsisfun.com/hexadecimal-decimal-colors.html
  13.  
  14. EntityRegisterHorror.registerEntity(EntityHorror.class, "horror", 150, 4534038, 14071595);
  15. }
  16.  
  17. public static void registerEntity(Class entityClass, String name, int id, int primaryColor, int secondaryColor)
  18. {
  19.  
  20. EntityRegistry.registerModEntity(entityClass, name, id, Reference.MOD_ID, 80, 3, false,primaryColor,secondaryColor);
  21. }
  22.  
  23. public static void addSpawns()
  24. {
  25. EntityRegistry.addSpawn(EntityHorror.class, 100, 0, 0, EnumCreatureType.MONSTER, new BiomeGenBase[] { BiomeGenBase.iceMountains, BiomeGenBase.desert, BiomeGenBase.forest});
  26.  
  27. }
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment