Advertisement
mDiyo

mod_Mimic.java

May 27th, 2011
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3. import java.util.Random;
  4. import java.util.Map;
  5.  
  6. public class mod_Mimic extends BaseMod
  7.    
  8.     public mod_Mimic()
  9.     {
  10.         ModLoader.RegisterEntityID(EntityMimic.class, "mimic", ModLoader.getUniqueEntityId());
  11.  
  12.                
  13.         ModLoader.AddSpawn(EntityMimic.class, 50, EnumCreatureType.monster);
  14.  
  15.     }
  16.    
  17.     //Renderers
  18.     public void AddRenderer(Map map)
  19.     {
  20.         map.put(EntityMimic.class, new RenderMimic(new ModelMimic(), 0.5F));
  21.         //This assigns the entity class to the appropriate renderer and model class
  22.     }
  23.        
  24.     public String Version()
  25.     {
  26.         return "0.1";
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement