Java 类net.minecraft.entity.monster.EntitySilverfish 实例源码

项目:Bewitchment    文件:FortuneMeetUberSilverfish.java   
@Override
public boolean apply(EntityPlayer player) {
    for (int i = 0; i < 10; i++) {
        BlockPos pos = new BlockPos(player.posX + player.getRNG().nextGaussian() * 4, player.posY, player.posZ + player.getRNG().nextGaussian() * 4);
        EntitySilverfish silverfish = new EntitySilverfish(player.world);
        if (player.world.isAirBlock(pos) && player.world.isAirBlock(pos.up()) && player.world.getBlockState(pos.down()).canEntitySpawn(silverfish)) {
            silverfish.setPosition(pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5);
            silverfish.onInitialSpawn(player.world.getDifficultyForLocation(pos), null);
            player.world.spawnEntity(silverfish);
            if (player.getRNG().nextBoolean() && player.getRNG().nextBoolean())
                silverfish.addPotionEffect(new PotionEffect(MobEffects.RESISTANCE, 900, 2));
            if (player.getRNG().nextBoolean() && player.getRNG().nextBoolean())
                silverfish.addPotionEffect(new PotionEffect(MobEffects.STRENGTH, 900, 2));
            if (player.getRNG().nextBoolean() && player.getRNG().nextBoolean())
                silverfish.addPotionEffect(new PotionEffect(MobEffects.SPEED, 900, 2));
            if (player.getRNG().nextBoolean() && player.getRNG().nextBoolean())
                silverfish.addPotionEffect(new PotionEffect(MobEffects.REGENERATION, 900, 2));
            return true;
        }
    }
    return false;
}
项目:BetterWithAddons    文件:AnimalCrossbreedHandler.java   
public static void initialize()
{
    inLove = ReflectionHelper.findField(EntityAnimal.class, "field_70881_d", "inLove");

    //Standard
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnBabyAt(world,pos,new EntityCow(world)),100));
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnBabyAt(world,pos,new EntitySheep(world)),100));
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnBabyAt(world,pos,new EntityPig(world)),100));
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnBabyAt(world,pos,new EntityChicken(world)),50)); //Lower chance for egg hatching animal

    //Parent species
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnBabyAt(world,pos,mother.createChild(mother)),100));
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnBabyAt(world,pos,father.createChild(father)),100));

    //Abominations
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnEntityAt(world,pos,new EntitySilverfish(world)),200));
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnEntityAt(world,pos,new EntityCaveSpider(world)),100));
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnEntityAt(world,pos,new EntitySlime(world)),50));

    //Enviroment dependent
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnEntityAt(world,pos,new EntitySquid(world)),0).setCustomWeight(AnimalCrossbreedHandler::getSquidWeight));
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnBabyAt(world,pos,new EntityWolf(world)),0).setCustomWeight(AnimalCrossbreedHandler::getWolfWeight));
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnBabyAt(world,pos,new EntityOcelot(world)),0).setCustomWeight(AnimalCrossbreedHandler::getOcelotWeight));
}
项目:MidgarCrusade    文件:BiomGenMagic.java   
public BiomGenMagic(int p_i1971_1_) 
{
    super(p_i1971_1_);

    this.theBiomeDecorator = new BiomeDecoratorMagic();

    this.spawnableMonsterList.clear();
    this.spawnableCreatureList.clear();

       this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityLibellule.class, 24, 2, 4));
       this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityBelier.class, 24, 2, 4));

       this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySilverfish.class, 12, 4, 8));
       this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityCrocotta.class, 24, 4, 8));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntitySlave.class, 12, 1, 2));
}
项目:ARKCraft    文件:CommonEventHandler.java   
@SubscribeEvent
public void onEntityKilled(LivingDropsEvent event)
{
    // TODO remove when actual ark creatures are in place and dropping items
    if (event.getEntityLiving().world.isRemote) return;
    Random r = new Random();
    int x = r.nextInt(3) + 1;
    ItemStack meat = new ItemStack(ARKCraftItems.meat_raw, x);
    event.getDrops().add(new EntityItem(event.getEntityLiving().world, event.getEntityLiving().posX, event.getEntityLiving().posY,
            event.getEntityLiving().posZ, IDecayable.setDecayStart(meat, ARKCraft.proxy.getWorldTime())));
    if (r.nextDouble() < 0.05) event.getDrops().add(new EntityItem(event.getEntityLiving().world, event.getEntityLiving().posX,
            event.getEntityLiving().posY, event.getEntityLiving().posZ, IDecayable.setDecayStart(new ItemStack(
                    ARKCraftItems.primemeat_raw), ARKCraft.proxy.getWorldTime())));
    if (event.getEntityLiving() instanceof EntitySpider || event.getEntityLiving() instanceof EntitySilverfish
            || event.getEntityLiving() instanceof EntityEndermite) event.getDrops().add(new EntityItem(
                    event.getEntityLiving().world, event.getEntityLiving().posX, event.getEntityLiving().posY,
                    event.getEntityLiving().posZ, new ItemStack(ARKCraftItems.chitin, r.nextInt(3) + 1)));
    else event.getDrops().add(new EntityItem(event.getEntityLiving().world, event.getEntityLiving().posX,
            event.getEntityLiving().posY, event.getEntityLiving().posZ, new ItemStack(ARKCraftItems.hide, r.nextInt(3) + 1)));
}
项目:ZeldaSwordSkills    文件:ZSSItemEvents.java   
private static void init() {
    addDrop(EntityCreeper.class, SkillBase.armorBreak);
    addDrop(EntityIronGolem.class, SkillBase.armorBreak);
    addDrop(EntitySilverfish.class, SkillBase.dash);
    addDrop(EntityHorse.class, SkillBase.dash);
    addDrop(EntityEnderman.class, SkillBase.dodge);
    addDrop(EntityKeese.class, SkillBase.dodge);
    addDrop(EntitySpider.class, SkillBase.endingBlow);
    addDrop(EntityCaveSpider.class, SkillBase.leapingBlow);
    addDrop(EntityMagmaCube.class, SkillBase.leapingBlow);
    addDrop(EntityPigZombie.class, SkillBase.parry);
    addDrop(EntityOcelot.class, SkillBase.parry);
    addDrop(EntityOctorok.class, SkillBase.risingCut);
    addDrop(EntityBlaze.class, SkillBase.spinAttack);
    addDrop(EntityDarknut.class, SkillBase.spinAttack);
    addDrop(EntityZombie.class, SkillBase.swordBasic);
    addDrop(EntitySkeleton.class, SkillBase.swordBasic);
    addDrop(EntityGhast.class, SkillBase.swordBeam);
    addDrop(EntityWitch.class, SkillBase.swordBeam);
    addDrop(EntityWizzrobe.class, SkillBase.swordBreak);
}
项目:WuppyMods    文件:BlockExp.java   
@Override
public void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5)
{
    if (!par1World.isRemote && par5 == 1)
    {
        EntitySilverfish entitysilverfish = new EntitySilverfish(par1World);
        entitysilverfish.setLocationAndAngles((double)par2 + 0.5D, par3, (double)par4 + 0.5D, 0.0F, 0.0F);
        par1World.spawnEntityInWorld(entitysilverfish);
        entitysilverfish.spawnExplosionParticle();

        for (int i = 3 + par1World.rand.nextInt(5) + par1World.rand.nextInt(5); i > 0;)
        {
            int j = EntityXPOrb.getXPSplit(i);
            i -= j;
            par1World.spawnEntityInWorld(new EntityXPOrb(par1World, par2, par3, par4, j));
        }
    }

    super.onBlockDestroyedByPlayer(par1World, par2, par3, par4, par5);
}
项目:DecompiledMinecraft    文件:BlockSilverfish.java   
/**
 * Spawns this Block's drops into the World as EntityItems.
 */
public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune)
{
    if (!worldIn.isRemote && worldIn.getGameRules().getBoolean("doTileDrops"))
    {
        EntitySilverfish entitysilverfish = new EntitySilverfish(worldIn);
        entitysilverfish.setLocationAndAngles((double)pos.getX() + 0.5D, (double)pos.getY(), (double)pos.getZ() + 0.5D, 0.0F, 0.0F);
        worldIn.spawnEntityInWorld(entitysilverfish);
        entitysilverfish.spawnExplosionParticle();
    }
}
项目:DecompiledMinecraft    文件:BlockSilverfish.java   
/**
 * Spawns this Block's drops into the World as EntityItems.
 */
public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune)
{
    if (!worldIn.isRemote && worldIn.getGameRules().getBoolean("doTileDrops"))
    {
        EntitySilverfish entitysilverfish = new EntitySilverfish(worldIn);
        entitysilverfish.setLocationAndAngles((double)pos.getX() + 0.5D, (double)pos.getY(), (double)pos.getZ() + 0.5D, 0.0F, 0.0F);
        worldIn.spawnEntityInWorld(entitysilverfish);
        entitysilverfish.spawnExplosionParticle();
    }
}
项目:BaseClient    文件:BlockSilverfish.java   
/**
 * Spawns this Block's drops into the World as EntityItems.
 */
public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune)
{
    if (!worldIn.isRemote && worldIn.getGameRules().getBoolean("doTileDrops"))
    {
        EntitySilverfish entitysilverfish = new EntitySilverfish(worldIn);
        entitysilverfish.setLocationAndAngles((double)pos.getX() + 0.5D, (double)pos.getY(), (double)pos.getZ() + 0.5D, 0.0F, 0.0F);
        worldIn.spawnEntityInWorld(entitysilverfish);
        entitysilverfish.spawnExplosionParticle();
    }
}
项目:BaseClient    文件:BlockSilverfish.java   
/**
 * Spawns this Block's drops into the World as EntityItems.
 */
public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune)
{
    if (!worldIn.isRemote && worldIn.getGameRules().getBoolean("doTileDrops"))
    {
        EntitySilverfish entitysilverfish = new EntitySilverfish(worldIn);
        entitysilverfish.setLocationAndAngles((double)pos.getX() + 0.5D, (double)pos.getY(), (double)pos.getZ() + 0.5D, 0.0F, 0.0F);
        worldIn.spawnEntityInWorld(entitysilverfish);
        entitysilverfish.spawnExplosionParticle();
    }
}
项目:Backmemed    文件:BlockSilverfish.java   
/**
 * Spawns this Block's drops into the World as EntityItems.
 */
public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune)
{
    if (!worldIn.isRemote && worldIn.getGameRules().getBoolean("doTileDrops"))
    {
        EntitySilverfish entitysilverfish = new EntitySilverfish(worldIn);
        entitysilverfish.setLocationAndAngles((double)pos.getX() + 0.5D, (double)pos.getY(), (double)pos.getZ() + 0.5D, 0.0F, 0.0F);
        worldIn.spawnEntityInWorld(entitysilverfish);
        entitysilverfish.spawnExplosionParticle();
    }
}
项目:CustomWorldGen    文件:BlockSilverfish.java   
/**
 * Spawns this Block's drops into the World as EntityItems.
 */
public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune)
{
    if (!worldIn.isRemote && worldIn.getGameRules().getBoolean("doTileDrops"))
    {
        EntitySilverfish entitysilverfish = new EntitySilverfish(worldIn);
        entitysilverfish.setLocationAndAngles((double)pos.getX() + 0.5D, (double)pos.getY(), (double)pos.getZ() + 0.5D, 0.0F, 0.0F);
        worldIn.spawnEntityInWorld(entitysilverfish);
        entitysilverfish.spawnExplosionParticle();
    }
}
项目:ExtraUtilities    文件:EventHandlerServer.java   
@SubscribeEvent
public void silverFishDrop(final LivingDropsEvent event) {
    if (event.entityLiving instanceof EntitySilverfish && !event.entity.worldObj.isRemote && event.entity.worldObj.rand.nextInt(5) == 0 && event.recentlyHit && OreDictionary.getOres(this.silverName).size() > 0) {
        final ItemStack item = OreDictionary.getOres(this.silverName).get(0).copy();
        if (event.drops.size() > 0) {
            for (int i = 0; i < event.drops.size(); ++i) {
                final ItemStack t = event.drops.get(i).getEntityItem();
                if (t != null && (t.getItem() == item.getItem() || t.getItemDamage() == item.getItemDamage())) {
                    return;
                }
            }
        }
        event.drops.add(new EntityItem(event.entityLiving.worldObj, event.entityLiving.posX, event.entity.posY, event.entityLiving.posZ, item));
    }
}
项目:CivRadar    文件:Config.java   
public Config() {
    mobs = new ArrayList<Entity>(Arrays.asList(new Entity[]{
            new Entity(EntityBat.class), 
            new Entity(EntityChicken.class),
            new Entity(EntityCow.class),
            new Entity(EntityHorse.class),
            new Entity(EntityMooshroom.class),
            new Entity(EntityOcelot.class),
            new Entity(EntityPig.class),
            new Entity(EntityRabbit.class),
            new Entity(EntitySheep.class),
            new Entity(EntitySquid.class),
            new Entity(EntityVillager.class),
            new Entity(EntityWolf.class),
            new Entity(EntityBlaze.class),
            new Entity(EntityCaveSpider.class),
            new Entity(EntityCreeper.class),
            new Entity(EntityEnderman.class),
            new Entity(EntityGhast.class),
            new Entity(EntityGolem.class),
            new Entity(EntityGuardian.class),
            new Entity(EntityIronGolem.class),
            new Entity(EntityMagmaCube.class),
            new Entity(EntityPigZombie.class),
            new Entity(EntitySilverfish.class),
            new Entity(EntitySkeleton.class),
            new Entity(EntitySlime.class),
            new Entity(EntitySnowman.class),
            new Entity(EntitySpider.class),
            new Entity(EntityWitch.class),
            new Entity(EntityZombie.class),
            new Entity(EntityItem.class),
            new Entity(EntityMinecart.class),
            new Entity(EntityPlayer.class)
            }));
}
项目:ARKCraft-Code    文件:GlobalAdditions.java   
private static void removeTheseMCMobs()
{
    // Don't spawn the normal Minecraft hostile mobs?
    if (!CoreBalance.GEN.mcHostileMobs)
    {
        for (int i = 0; i < BiomeGenBase.getBiomeGenArray().length; i++)
        {
            if (BiomeGenBase.getBiomeGenArray()[i] != null)
            {
                EntityRegistry.removeSpawn(EntityZombie.class, EnumCreatureType.MONSTER,
                        BiomeGenBase.getBiomeGenArray()[i]);
                EntityRegistry.removeSpawn(EntityCreeper.class, EnumCreatureType.MONSTER,
                        BiomeGenBase.getBiomeGenArray()[i]);
                EntityRegistry.removeSpawn(EntitySkeleton.class, EnumCreatureType.MONSTER,
                        BiomeGenBase.getBiomeGenArray()[i]);
                EntityRegistry.removeSpawn(EntitySpider.class, EnumCreatureType.MONSTER,
                        BiomeGenBase.getBiomeGenArray()[i]);
                EntityRegistry.removeSpawn(EntitySilverfish.class, EnumCreatureType.MONSTER,
                        BiomeGenBase.getBiomeGenArray()[i]);
                EntityRegistry.removeSpawn(EntityWitch.class, EnumCreatureType.MONSTER,
                        BiomeGenBase.getBiomeGenArray()[i]);
                EntityRegistry.removeSpawn(EntityEnderman.class, EnumCreatureType.MONSTER,
                        BiomeGenBase.getBiomeGenArray()[i]);
                EntityRegistry.removeSpawn(EntityCaveSpider.class, EnumCreatureType.MONSTER,
                        BiomeGenBase.getBiomeGenArray()[i]);
            }
        }
    }
}
项目:Resilience-Client-Source    文件:BlockSilverfish.java   
public void onBlockDestroyedByPlayer(World p_149664_1_, int p_149664_2_, int p_149664_3_, int p_149664_4_, int p_149664_5_)
{
    if (!p_149664_1_.isClient)
    {
        EntitySilverfish var6 = new EntitySilverfish(p_149664_1_);
        var6.setLocationAndAngles((double)p_149664_2_ + 0.5D, (double)p_149664_3_, (double)p_149664_4_ + 0.5D, 0.0F, 0.0F);
        p_149664_1_.spawnEntityInWorld(var6);
        var6.spawnExplosionParticle();
    }

    super.onBlockDestroyedByPlayer(p_149664_1_, p_149664_2_, p_149664_3_, p_149664_4_, p_149664_5_);
}
项目:Resilience-Client-Source    文件:BlockSilverfish.java   
/**
 * Drops the block items with a specified chance of dropping the specified items
 */
public void dropBlockAsItemWithChance(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_, int p_149690_5_, float p_149690_6_, int p_149690_7_)
{
    if (!p_149690_1_.isClient)
    {
        EntitySilverfish var8 = new EntitySilverfish(p_149690_1_);
        var8.setLocationAndAngles((double)p_149690_2_ + 0.5D, (double)p_149690_3_, (double)p_149690_4_ + 0.5D, 0.0F, 0.0F);
        p_149690_1_.spawnEntityInWorld(var8);
        var8.spawnExplosionParticle();
    }
}
项目:ZeroQuest    文件:PestSlayer.java   
@Override
public void onLivingUpdate(EntityZertumEntity dog) {
    int level = dog.talents.getLevel(this);

    if(level >= 0) {
           byte damage = 1;

           if (level == 5)
               damage = 2;

           List list = dog.worldObj.getEntitiesWithinAABB(EntitySilverfish.class, new AxisAlignedBB(dog.posX, dog.posY, dog.posZ, dog.posX + 1.0D, dog.posY + 1.0D, dog.posZ + 1.0D).expand(level * 3, 4D, level * 3));
           Iterator iterator = list.iterator();

           while(iterator.hasNext()) {
            EntitySilverfish entitySilverfish = (EntitySilverfish)iterator.next();
            if(dog.getRNG().nextInt(20) == 0)
                entitySilverfish.attackEntityFrom(DamageSource.generic, damage);
           }

           List list2 = dog.worldObj.getEntitiesWithinAABB(EntitySlime.class, new AxisAlignedBB(dog.posX, dog.posY, dog.posZ, dog.posX + 1.0D, dog.posY + 1.0D, dog.posZ + 1.0D).expand(level * 3, 4D, level * 3));
           Iterator iterator2 = list2.iterator();

           while(iterator2.hasNext()) {
            EntitySlime entitySlime = (EntitySlime)iterator2.next();
            if(dog.getRNG().nextInt(20) == 0)
                entitySlime.attackEntityFrom(DamageSource.generic, damage);
           }
       }
}
项目:ExpandedRailsMod    文件:BlockSilverfish.java   
/**
 * Spawns this Block's drops into the World as EntityItems.
 */
public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune)
{
    if (!worldIn.isRemote && worldIn.getGameRules().getBoolean("doTileDrops"))
    {
        EntitySilverfish entitysilverfish = new EntitySilverfish(worldIn);
        entitysilverfish.setLocationAndAngles((double)pos.getX() + 0.5D, (double)pos.getY(), (double)pos.getZ() + 0.5D, 0.0F, 0.0F);
        worldIn.spawnEntityInWorld(entitysilverfish);
        entitysilverfish.spawnExplosionParticle();
    }
}
项目:Cauldron    文件:BlockSilverfish.java   
public void onBlockDestroyedByPlayer(World p_149664_1_, int p_149664_2_, int p_149664_3_, int p_149664_4_, int p_149664_5_)
{
    if (!p_149664_1_.isRemote)
    {
        EntitySilverfish entitysilverfish = new EntitySilverfish(p_149664_1_);
        entitysilverfish.setLocationAndAngles((double)p_149664_2_ + 0.5D, (double)p_149664_3_, (double)p_149664_4_ + 0.5D, 0.0F, 0.0F);
        p_149664_1_.spawnEntityInWorld(entitysilverfish);
        entitysilverfish.spawnExplosionParticle();
    }

    super.onBlockDestroyedByPlayer(p_149664_1_, p_149664_2_, p_149664_3_, p_149664_4_, p_149664_5_);
}
项目:Cauldron    文件:BlockSilverfish.java   
public void dropBlockAsItemWithChance(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_, int p_149690_5_, float p_149690_6_, int p_149690_7_)
{
    if (!p_149690_1_.isRemote)
    {
        EntitySilverfish entitysilverfish = new EntitySilverfish(p_149690_1_);
        entitysilverfish.setLocationAndAngles((double)p_149690_2_ + 0.5D, (double)p_149690_3_, (double)p_149690_4_ + 0.5D, 0.0F, 0.0F);
        p_149690_1_.spawnEntityInWorld(entitysilverfish);
        entitysilverfish.spawnExplosionParticle();
    }
}
项目:Cauldron    文件:BlockSilverfish.java   
public void onBlockDestroyedByPlayer(World p_149664_1_, int p_149664_2_, int p_149664_3_, int p_149664_4_, int p_149664_5_)
{
    if (!p_149664_1_.isRemote)
    {
        EntitySilverfish entitysilverfish = new EntitySilverfish(p_149664_1_);
        entitysilverfish.setLocationAndAngles((double)p_149664_2_ + 0.5D, (double)p_149664_3_, (double)p_149664_4_ + 0.5D, 0.0F, 0.0F);
        p_149664_1_.spawnEntityInWorld(entitysilverfish);
        entitysilverfish.spawnExplosionParticle();
    }

    super.onBlockDestroyedByPlayer(p_149664_1_, p_149664_2_, p_149664_3_, p_149664_4_, p_149664_5_);
}
项目:Cauldron    文件:BlockSilverfish.java   
public void dropBlockAsItemWithChance(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_, int p_149690_5_, float p_149690_6_, int p_149690_7_)
{
    if (!p_149690_1_.isRemote)
    {
        EntitySilverfish entitysilverfish = new EntitySilverfish(p_149690_1_);
        entitysilverfish.setLocationAndAngles((double)p_149690_2_ + 0.5D, (double)p_149690_3_, (double)p_149690_4_ + 0.5D, 0.0F, 0.0F);
        p_149690_1_.spawnEntityInWorld(entitysilverfish);
        entitysilverfish.spawnExplosionParticle();
    }
}
项目:RuneCraftery    文件:BlockSilverfish.java   
public void func_71898_d(World p_71898_1_, int p_71898_2_, int p_71898_3_, int p_71898_4_, int p_71898_5_) {
   if(!p_71898_1_.field_72995_K) {
      EntitySilverfish var6 = new EntitySilverfish(p_71898_1_);
      var6.func_70012_b((double)p_71898_2_ + 0.5D, (double)p_71898_3_, (double)p_71898_4_ + 0.5D, 0.0F, 0.0F);
      p_71898_1_.func_72838_d(var6);
      var6.func_70656_aK();
   }

   super.func_71898_d(p_71898_1_, p_71898_2_, p_71898_3_, p_71898_4_, p_71898_5_);
}
项目:RuneCraftery    文件:BlockSilverfish.java   
/**
 * Called right before the block is destroyed by a player.  Args: world, x, y, z, metaData
 */
public void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5)
{
    if (!par1World.isRemote)
    {
        EntitySilverfish entitysilverfish = new EntitySilverfish(par1World);
        entitysilverfish.setLocationAndAngles((double)par2 + 0.5D, (double)par3, (double)par4 + 0.5D, 0.0F, 0.0F);
        par1World.spawnEntityInWorld(entitysilverfish);
        entitysilverfish.spawnExplosionParticle();
    }

    super.onBlockDestroyedByPlayer(par1World, par2, par3, par4, par5);
}
项目:Decaying-World    文件:SilverDecay.java   
public void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5)
{
    if (!par1World.isRemote)
    {
        EntitySilverfish var6 = new EntitySilverfish(par1World);
        var6.setLocationAndAngles((double)par2 + 0.5D, (double)par3, (double)par4 + 0.5D, 0.0F, 0.0F);
        par1World.spawnEntityInWorld(var6);
        var6.spawnExplosionParticle();
    }

    super.onBlockDestroyedByPlayer(par1World, par2, par3, par4, par5);
}
项目:Decaying-World    文件:SilverDecay.java   
public void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5)
{
    if (!par1World.isRemote)
    {
        EntitySilverfish var6 = new EntitySilverfish(par1World);
        var6.setLocationAndAngles((double)par2 + 0.5D, (double)par3, (double)par4 + 0.5D, 0.0F, 0.0F);
        par1World.spawnEntityInWorld(var6);
        var6.spawnExplosionParticle();
    }

    super.onBlockDestroyedByPlayer(par1World, par2, par3, par4, par5);
}
项目:BetterNutritionMod    文件:BlockSilverfish.java   
/**
 * Called right before the block is destroyed by a player.  Args: world, x, y, z, metaData
 */
public void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5)
{
    if (!par1World.isRemote)
    {
        EntitySilverfish entitysilverfish = new EntitySilverfish(par1World);
        entitysilverfish.setLocationAndAngles((double)par2 + 0.5D, (double)par3, (double)par4 + 0.5D, 0.0F, 0.0F);
        par1World.spawnEntityInWorld(entitysilverfish);
        entitysilverfish.spawnExplosionParticle();
    }

    super.onBlockDestroyedByPlayer(par1World, par2, par3, par4, par5);
}
项目:Kingdom-Keys    文件:Munny10Drops.java   
@ForgeSubscribe
public void onHostileEntityDrop(LivingDropsEvent event) {
    if (event.source.getDamageType().equals("player")) {
        rand = Math.random();
        if (event.entityLiving instanceof EntitySkeleton || event.entityLiving instanceof EntityCreeper || event.entityLiving instanceof EntitySpider || event.entityLiving instanceof EntityCaveSpider || event.entityLiving instanceof EntityEnderman || event.entityLiving instanceof EntityZombie || event.entityLiving instanceof EntityPigZombie || event.entityLiving instanceof EntityIronGolem || event.entityLiving instanceof EntityBlaze || event.entityLiving instanceof EntitySlime || event.entityLiving instanceof EntityMagmaCube || event.entityLiving instanceof EntityWitch || event.entityLiving instanceof EntitySilverfish || event.entityLiving instanceof EntityGhast) {
            //The integer at the end relates to how many Items will be dropped(percentage). 
            if (rand < 0.22d && ConfigBooleans.munnyDrops){
                //The integer at the end relates to how many Items will be dropped(amount). 
                event.entityLiving.dropItem(AddedItems.Munny10.itemID, 1);
            }
        }
    }
}
项目:Kingdom-Keys    文件:Munny50Drops.java   
@ForgeSubscribe
public void onHostileEntityDrop(LivingDropsEvent event) {
    if (event.source.getDamageType().equals("player")) {
        rand = Math.random();
        if (event.entityLiving instanceof EntitySkeleton || event.entityLiving instanceof EntityCreeper || event.entityLiving instanceof EntitySpider || event.entityLiving instanceof EntityCaveSpider || event.entityLiving instanceof EntityEnderman || event.entityLiving instanceof EntityZombie || event.entityLiving instanceof EntityPigZombie || event.entityLiving instanceof EntityIronGolem || event.entityLiving instanceof EntityBlaze || event.entityLiving instanceof EntitySlime || event.entityLiving instanceof EntityMagmaCube || event.entityLiving instanceof EntityWitch || event.entityLiving instanceof EntitySilverfish || event.entityLiving instanceof EntityGhast) {
            //The integer at the end relates to how many Items will be dropped(percentage). 
            if (rand < 0.10d && ConfigBooleans.munnyDrops){
                //The integer at the end relates to how many Items will be dropped(amount). 
                event.entityLiving.dropItem(AddedItems.Munny50.itemID, 1);
            }
        }
    }
}
项目:Kingdom-Keys    文件:Munny5Drops.java   
@ForgeSubscribe
public void onHostileEntityDrop(LivingDropsEvent event) {
    if (event.source.getDamageType().equals("player")) {
        rand = Math.random();
        if (event.entityLiving instanceof EntitySkeleton || event.entityLiving instanceof EntityCreeper || event.entityLiving instanceof EntitySpider || event.entityLiving instanceof EntityCaveSpider || event.entityLiving instanceof EntityEnderman || event.entityLiving instanceof EntityZombie || event.entityLiving instanceof EntityPigZombie || event.entityLiving instanceof EntityIronGolem || event.entityLiving instanceof EntityBlaze || event.entityLiving instanceof EntitySlime || event.entityLiving instanceof EntityMagmaCube || event.entityLiving instanceof EntityWitch || event.entityLiving instanceof EntitySilverfish || event.entityLiving instanceof EntityGhast) {
            //The integer at the end relates to how many Items will be dropped(percentage). 
            if (rand < 0.40d && ConfigBooleans.munnyDrops){
                //The integer at the end relates to how many Items will be dropped(amount). 
                event.entityLiving.dropItem(AddedItems.Munny5.itemID, 1);
            }
        }
    }
}
项目:Kingdom-Keys    文件:Munny20Drops.java   
@ForgeSubscribe
public void onHostileEntityDrop(LivingDropsEvent event) {
    if (event.source.getDamageType().equals("player")) {
        rand = Math.random();
        if (event.entityLiving instanceof EntitySkeleton || event.entityLiving instanceof EntityCreeper || event.entityLiving instanceof EntitySpider || event.entityLiving instanceof EntityCaveSpider || event.entityLiving instanceof EntityEnderman || event.entityLiving instanceof EntityZombie || event.entityLiving instanceof EntityPigZombie || event.entityLiving instanceof EntityIronGolem || event.entityLiving instanceof EntityBlaze || event.entityLiving instanceof EntitySlime || event.entityLiving instanceof EntityMagmaCube || event.entityLiving instanceof EntityWitch || event.entityLiving instanceof EntitySilverfish || event.entityLiving instanceof EntityGhast) {
            //The integer at the end relates to how many Items will be dropped(percentage). 
            if (rand < 0.10d && ConfigBooleans.munnyDrops){
                //The integer at the end relates to how many Items will be dropped(amount). 
                event.entityLiving.dropItem(AddedItems.Munny.itemID, 1);
            }
        }
    }
}
项目:Kingdom-Keys    文件:Munny1Drops.java   
@ForgeSubscribe
public void onHostileEntityDrop(LivingDropsEvent event) {
    if (event.source.getDamageType().equals("player")) {
        rand = Math.random();
        if (event.entityLiving instanceof EntitySkeleton || event.entityLiving instanceof EntityCreeper || event.entityLiving instanceof EntitySpider || event.entityLiving instanceof EntityCaveSpider || event.entityLiving instanceof EntityEnderman || event.entityLiving instanceof EntityZombie || event.entityLiving instanceof EntityPigZombie || event.entityLiving instanceof EntityIronGolem || event.entityLiving instanceof EntityBlaze || event.entityLiving instanceof EntitySlime || event.entityLiving instanceof EntityMagmaCube || event.entityLiving instanceof EntityWitch || event.entityLiving instanceof EntitySilverfish || event.entityLiving instanceof EntityGhast) {
            //The integer at the end relates to how many Items will be dropped(percentage). 
            if (rand < 0.66d && ConfigBooleans.munnyDrops){
                //The integer at the end relates to how many Items will be dropped(amount). 
                event.entityLiving.dropItem(AddedItems.Munny1.itemID, 1);
            }
        }
    }
}
项目:DecompiledMinecraft    文件:RenderManager.java   
public RenderManager(TextureManager renderEngineIn, RenderItem itemRendererIn)
{
    this.renderEngine = renderEngineIn;
    this.entityRenderMap.put(EntityCaveSpider.class, new RenderCaveSpider(this));
    this.entityRenderMap.put(EntitySpider.class, new RenderSpider(this));
    this.entityRenderMap.put(EntityPig.class, new RenderPig(this, new ModelPig(), 0.7F));
    this.entityRenderMap.put(EntitySheep.class, new RenderSheep(this, new ModelSheep2(), 0.7F));
    this.entityRenderMap.put(EntityCow.class, new RenderCow(this, new ModelCow(), 0.7F));
    this.entityRenderMap.put(EntityMooshroom.class, new RenderMooshroom(this, new ModelCow(), 0.7F));
    this.entityRenderMap.put(EntityWolf.class, new RenderWolf(this, new ModelWolf(), 0.5F));
    this.entityRenderMap.put(EntityChicken.class, new RenderChicken(this, new ModelChicken(), 0.3F));
    this.entityRenderMap.put(EntityOcelot.class, new RenderOcelot(this, new ModelOcelot(), 0.4F));
    this.entityRenderMap.put(EntityRabbit.class, new RenderRabbit(this, new ModelRabbit(), 0.3F));
    this.entityRenderMap.put(EntitySilverfish.class, new RenderSilverfish(this));
    this.entityRenderMap.put(EntityEndermite.class, new RenderEndermite(this));
    this.entityRenderMap.put(EntityCreeper.class, new RenderCreeper(this));
    this.entityRenderMap.put(EntityEnderman.class, new RenderEnderman(this));
    this.entityRenderMap.put(EntitySnowman.class, new RenderSnowMan(this));
    this.entityRenderMap.put(EntitySkeleton.class, new RenderSkeleton(this));
    this.entityRenderMap.put(EntityWitch.class, new RenderWitch(this));
    this.entityRenderMap.put(EntityBlaze.class, new RenderBlaze(this));
    this.entityRenderMap.put(EntityPigZombie.class, new RenderPigZombie(this));
    this.entityRenderMap.put(EntityZombie.class, new RenderZombie(this));
    this.entityRenderMap.put(EntitySlime.class, new RenderSlime(this, new ModelSlime(16), 0.25F));
    this.entityRenderMap.put(EntityMagmaCube.class, new RenderMagmaCube(this));
    this.entityRenderMap.put(EntityGiantZombie.class, new RenderGiantZombie(this, new ModelZombie(), 0.5F, 6.0F));
    this.entityRenderMap.put(EntityGhast.class, new RenderGhast(this));
    this.entityRenderMap.put(EntitySquid.class, new RenderSquid(this, new ModelSquid(), 0.7F));
    this.entityRenderMap.put(EntityVillager.class, new RenderVillager(this));
    this.entityRenderMap.put(EntityIronGolem.class, new RenderIronGolem(this));
    this.entityRenderMap.put(EntityBat.class, new RenderBat(this));
    this.entityRenderMap.put(EntityGuardian.class, new RenderGuardian(this));
    this.entityRenderMap.put(EntityDragon.class, new RenderDragon(this));
    this.entityRenderMap.put(EntityEnderCrystal.class, new RenderEnderCrystal(this));
    this.entityRenderMap.put(EntityWither.class, new RenderWither(this));
    this.entityRenderMap.put(Entity.class, new RenderEntity(this));
    this.entityRenderMap.put(EntityPainting.class, new RenderPainting(this));
    this.entityRenderMap.put(EntityItemFrame.class, new RenderItemFrame(this, itemRendererIn));
    this.entityRenderMap.put(EntityLeashKnot.class, new RenderLeashKnot(this));
    this.entityRenderMap.put(EntityArrow.class, new RenderArrow(this));
    this.entityRenderMap.put(EntitySnowball.class, new RenderSnowball(this, Items.snowball, itemRendererIn));
    this.entityRenderMap.put(EntityEnderPearl.class, new RenderSnowball(this, Items.ender_pearl, itemRendererIn));
    this.entityRenderMap.put(EntityEnderEye.class, new RenderSnowball(this, Items.ender_eye, itemRendererIn));
    this.entityRenderMap.put(EntityEgg.class, new RenderSnowball(this, Items.egg, itemRendererIn));
    this.entityRenderMap.put(EntityPotion.class, new RenderPotion(this, itemRendererIn));
    this.entityRenderMap.put(EntityExpBottle.class, new RenderSnowball(this, Items.experience_bottle, itemRendererIn));
    this.entityRenderMap.put(EntityFireworkRocket.class, new RenderSnowball(this, Items.fireworks, itemRendererIn));
    this.entityRenderMap.put(EntityLargeFireball.class, new RenderFireball(this, 2.0F));
    this.entityRenderMap.put(EntitySmallFireball.class, new RenderFireball(this, 0.5F));
    this.entityRenderMap.put(EntityWitherSkull.class, new RenderWitherSkull(this));
    this.entityRenderMap.put(EntityItem.class, new RenderEntityItem(this, itemRendererIn));
    this.entityRenderMap.put(EntityXPOrb.class, new RenderXPOrb(this));
    this.entityRenderMap.put(EntityTNTPrimed.class, new RenderTNTPrimed(this));
    this.entityRenderMap.put(EntityFallingBlock.class, new RenderFallingBlock(this));
    this.entityRenderMap.put(EntityArmorStand.class, new ArmorStandRenderer(this));
    this.entityRenderMap.put(EntityMinecartTNT.class, new RenderTntMinecart(this));
    this.entityRenderMap.put(EntityMinecartMobSpawner.class, new RenderMinecartMobSpawner(this));
    this.entityRenderMap.put(EntityMinecart.class, new RenderMinecart(this));
    this.entityRenderMap.put(EntityBoat.class, new RenderBoat(this));
    this.entityRenderMap.put(EntityFishHook.class, new RenderFish(this));
    this.entityRenderMap.put(EntityHorse.class, new RenderHorse(this, new ModelHorse(), 0.75F));
    this.entityRenderMap.put(EntityLightningBolt.class, new RenderLightningBolt(this));
    this.playerRenderer = new RenderPlayer(this);
    this.skinMap.put("default", this.playerRenderer);
    this.skinMap.put("slim", new RenderPlayer(this, true));
}
项目:DecompiledMinecraft    文件:RenderSilverfish.java   
protected float getDeathMaxRotation(EntitySilverfish entityLivingBaseIn)
{
    return 180.0F;
}
项目:DecompiledMinecraft    文件:RenderSilverfish.java   
/**
 * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
 */
protected ResourceLocation getEntityTexture(EntitySilverfish entity)
{
    return silverfishTextures;
}
项目:BaseClient    文件:RenderManager.java   
public RenderManager(TextureManager renderEngineIn, RenderItem itemRendererIn)
{
    this.renderEngine = renderEngineIn;
    this.entityRenderMap.put(EntityCaveSpider.class, new RenderCaveSpider(this));
    this.entityRenderMap.put(EntitySpider.class, new RenderSpider(this));
    this.entityRenderMap.put(EntityPig.class, new RenderPig(this, new ModelPig(), 0.7F));
    this.entityRenderMap.put(EntitySheep.class, new RenderSheep(this, new ModelSheep2(), 0.7F));
    this.entityRenderMap.put(EntityCow.class, new RenderCow(this, new ModelCow(), 0.7F));
    this.entityRenderMap.put(EntityMooshroom.class, new RenderMooshroom(this, new ModelCow(), 0.7F));
    this.entityRenderMap.put(EntityWolf.class, new RenderWolf(this, new ModelWolf(), 0.5F));
    this.entityRenderMap.put(EntityChicken.class, new RenderChicken(this, new ModelChicken(), 0.3F));
    this.entityRenderMap.put(EntityOcelot.class, new RenderOcelot(this, new ModelOcelot(), 0.4F));
    this.entityRenderMap.put(EntityRabbit.class, new RenderRabbit(this, new ModelRabbit(), 0.3F));
    this.entityRenderMap.put(EntitySilverfish.class, new RenderSilverfish(this));
    this.entityRenderMap.put(EntityEndermite.class, new RenderEndermite(this));
    this.entityRenderMap.put(EntityCreeper.class, new RenderCreeper(this));
    this.entityRenderMap.put(EntityEnderman.class, new RenderEnderman(this));
    this.entityRenderMap.put(EntitySnowman.class, new RenderSnowMan(this));
    this.entityRenderMap.put(EntitySkeleton.class, new RenderSkeleton(this));
    this.entityRenderMap.put(EntityWitch.class, new RenderWitch(this));
    this.entityRenderMap.put(EntityBlaze.class, new RenderBlaze(this));
    this.entityRenderMap.put(EntityPigZombie.class, new RenderPigZombie(this));
    this.entityRenderMap.put(EntityZombie.class, new RenderZombie(this));
    this.entityRenderMap.put(EntitySlime.class, new RenderSlime(this, new ModelSlime(16), 0.25F));
    this.entityRenderMap.put(EntityMagmaCube.class, new RenderMagmaCube(this));
    this.entityRenderMap.put(EntityGiantZombie.class, new RenderGiantZombie(this, new ModelZombie(), 0.5F, 6.0F));
    this.entityRenderMap.put(EntityGhast.class, new RenderGhast(this));
    this.entityRenderMap.put(EntitySquid.class, new RenderSquid(this, new ModelSquid(), 0.7F));
    this.entityRenderMap.put(EntityVillager.class, new RenderVillager(this));
    this.entityRenderMap.put(EntityIronGolem.class, new RenderIronGolem(this));
    this.entityRenderMap.put(EntityBat.class, new RenderBat(this));
    this.entityRenderMap.put(EntityGuardian.class, new RenderGuardian(this));
    this.entityRenderMap.put(EntityDragon.class, new RenderDragon(this));
    this.entityRenderMap.put(EntityEnderCrystal.class, new RenderEnderCrystal(this));
    this.entityRenderMap.put(EntityWither.class, new RenderWither(this));
    this.entityRenderMap.put(Entity.class, new RenderEntity(this));
    this.entityRenderMap.put(EntityPainting.class, new RenderPainting(this));
    this.entityRenderMap.put(EntityItemFrame.class, new RenderItemFrame(this, itemRendererIn));
    this.entityRenderMap.put(EntityLeashKnot.class, new RenderLeashKnot(this));
    this.entityRenderMap.put(EntityArrow.class, new RenderArrow(this));
    this.entityRenderMap.put(EntitySnowball.class, new RenderSnowball(this, Items.snowball, itemRendererIn));
    this.entityRenderMap.put(EntityEnderPearl.class, new RenderSnowball(this, Items.ender_pearl, itemRendererIn));
    this.entityRenderMap.put(EntityEnderEye.class, new RenderSnowball(this, Items.ender_eye, itemRendererIn));
    this.entityRenderMap.put(EntityEgg.class, new RenderSnowball(this, Items.egg, itemRendererIn));
    this.entityRenderMap.put(EntityPotion.class, new RenderPotion(this, itemRendererIn));
    this.entityRenderMap.put(EntityExpBottle.class, new RenderSnowball(this, Items.experience_bottle, itemRendererIn));
    this.entityRenderMap.put(EntityFireworkRocket.class, new RenderSnowball(this, Items.fireworks, itemRendererIn));
    this.entityRenderMap.put(EntityLargeFireball.class, new RenderFireball(this, 2.0F));
    this.entityRenderMap.put(EntitySmallFireball.class, new RenderFireball(this, 0.5F));
    this.entityRenderMap.put(EntityWitherSkull.class, new RenderWitherSkull(this));
    this.entityRenderMap.put(EntityItem.class, new RenderEntityItem(this, itemRendererIn));
    this.entityRenderMap.put(EntityXPOrb.class, new RenderXPOrb(this));
    this.entityRenderMap.put(EntityTNTPrimed.class, new RenderTNTPrimed(this));
    this.entityRenderMap.put(EntityFallingBlock.class, new RenderFallingBlock(this));
    this.entityRenderMap.put(EntityArmorStand.class, new ArmorStandRenderer(this));
    this.entityRenderMap.put(EntityMinecartTNT.class, new RenderTntMinecart(this));
    this.entityRenderMap.put(EntityMinecartMobSpawner.class, new RenderMinecartMobSpawner(this));
    this.entityRenderMap.put(EntityMinecart.class, new RenderMinecart(this));
    this.entityRenderMap.put(EntityBoat.class, new RenderBoat(this));
    this.entityRenderMap.put(EntityFishHook.class, new RenderFish(this));
    this.entityRenderMap.put(EntityHorse.class, new RenderHorse(this, new ModelHorse(), 0.75F));
    this.entityRenderMap.put(EntityLightningBolt.class, new RenderLightningBolt(this));
    this.playerRenderer = new RenderPlayer(this);
    this.skinMap.put("default", this.playerRenderer);
    this.skinMap.put("slim", new RenderPlayer(this, true));
    PlayerItemsLayer.register(this.skinMap);

    if (Reflector.RenderingRegistry_loadEntityRenderers.exists())
    {
        Reflector.call(Reflector.RenderingRegistry_loadEntityRenderers, new Object[] {this.entityRenderMap});
    }
}
项目:BaseClient    文件:RenderSilverfish.java   
protected float getDeathMaxRotation(EntitySilverfish entityLivingBaseIn)
{
    return 180.0F;
}
项目:BaseClient    文件:RenderSilverfish.java   
/**
 * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
 */
protected ResourceLocation getEntityTexture(EntitySilverfish entity)
{
    return silverfishTextures;
}
项目:BaseClient    文件:RenderManager.java   
public RenderManager(TextureManager renderEngineIn, RenderItem itemRendererIn)
{
    this.renderEngine = renderEngineIn;
    this.entityRenderMap.put(EntityCaveSpider.class, new RenderCaveSpider(this));
    this.entityRenderMap.put(EntitySpider.class, new RenderSpider(this));
    this.entityRenderMap.put(EntityPig.class, new RenderPig(this, new ModelPig(), 0.7F));
    this.entityRenderMap.put(EntitySheep.class, new RenderSheep(this, new ModelSheep2(), 0.7F));
    this.entityRenderMap.put(EntityCow.class, new RenderCow(this, new ModelCow(), 0.7F));
    this.entityRenderMap.put(EntityMooshroom.class, new RenderMooshroom(this, new ModelCow(), 0.7F));
    this.entityRenderMap.put(EntityWolf.class, new RenderWolf(this, new ModelWolf(), 0.5F));
    this.entityRenderMap.put(EntityChicken.class, new RenderChicken(this, new ModelChicken(), 0.3F));
    this.entityRenderMap.put(EntityOcelot.class, new RenderOcelot(this, new ModelOcelot(), 0.4F));
    this.entityRenderMap.put(EntityRabbit.class, new RenderRabbit(this, new ModelRabbit(), 0.3F));
    this.entityRenderMap.put(EntitySilverfish.class, new RenderSilverfish(this));
    this.entityRenderMap.put(EntityEndermite.class, new RenderEndermite(this));
    this.entityRenderMap.put(EntityCreeper.class, new RenderCreeper(this));
    this.entityRenderMap.put(EntityEnderman.class, new RenderEnderman(this));
    this.entityRenderMap.put(EntitySnowman.class, new RenderSnowMan(this));
    this.entityRenderMap.put(EntitySkeleton.class, new RenderSkeleton(this));
    this.entityRenderMap.put(EntityWitch.class, new RenderWitch(this));
    this.entityRenderMap.put(EntityBlaze.class, new RenderBlaze(this));
    this.entityRenderMap.put(EntityPigZombie.class, new RenderPigZombie(this));
    this.entityRenderMap.put(EntityZombie.class, new RenderZombie(this));
    this.entityRenderMap.put(EntitySlime.class, new RenderSlime(this, new ModelSlime(16), 0.25F));
    this.entityRenderMap.put(EntityMagmaCube.class, new RenderMagmaCube(this));
    this.entityRenderMap.put(EntityGiantZombie.class, new RenderGiantZombie(this, new ModelZombie(), 0.5F, 6.0F));
    this.entityRenderMap.put(EntityGhast.class, new RenderGhast(this));
    this.entityRenderMap.put(EntitySquid.class, new RenderSquid(this, new ModelSquid(), 0.7F));
    this.entityRenderMap.put(EntityVillager.class, new RenderVillager(this));
    this.entityRenderMap.put(EntityIronGolem.class, new RenderIronGolem(this));
    this.entityRenderMap.put(EntityBat.class, new RenderBat(this));
    this.entityRenderMap.put(EntityGuardian.class, new RenderGuardian(this));
    this.entityRenderMap.put(EntityDragon.class, new RenderDragon(this));
    this.entityRenderMap.put(EntityEnderCrystal.class, new RenderEnderCrystal(this));
    this.entityRenderMap.put(EntityWither.class, new RenderWither(this));
    this.entityRenderMap.put(Entity.class, new RenderEntity(this));
    this.entityRenderMap.put(EntityPainting.class, new RenderPainting(this));
    this.entityRenderMap.put(EntityItemFrame.class, new RenderItemFrame(this, itemRendererIn));
    this.entityRenderMap.put(EntityLeashKnot.class, new RenderLeashKnot(this));
    this.entityRenderMap.put(EntityArrow.class, new RenderArrow(this));
    this.entityRenderMap.put(EntitySnowball.class, new RenderSnowball(this, Items.snowball, itemRendererIn));
    this.entityRenderMap.put(EntityEnderPearl.class, new RenderSnowball(this, Items.ender_pearl, itemRendererIn));
    this.entityRenderMap.put(EntityEnderEye.class, new RenderSnowball(this, Items.ender_eye, itemRendererIn));
    this.entityRenderMap.put(EntityEgg.class, new RenderSnowball(this, Items.egg, itemRendererIn));
    this.entityRenderMap.put(EntityPotion.class, new RenderPotion(this, itemRendererIn));
    this.entityRenderMap.put(EntityExpBottle.class, new RenderSnowball(this, Items.experience_bottle, itemRendererIn));
    this.entityRenderMap.put(EntityFireworkRocket.class, new RenderSnowball(this, Items.fireworks, itemRendererIn));
    this.entityRenderMap.put(EntityLargeFireball.class, new RenderFireball(this, 2.0F));
    this.entityRenderMap.put(EntitySmallFireball.class, new RenderFireball(this, 0.5F));
    this.entityRenderMap.put(EntityWitherSkull.class, new RenderWitherSkull(this));
    this.entityRenderMap.put(EntityItem.class, new RenderEntityItem(this, itemRendererIn));
    this.entityRenderMap.put(EntityXPOrb.class, new RenderXPOrb(this));
    this.entityRenderMap.put(EntityTNTPrimed.class, new RenderTNTPrimed(this));
    this.entityRenderMap.put(EntityFallingBlock.class, new RenderFallingBlock(this));
    this.entityRenderMap.put(EntityArmorStand.class, new ArmorStandRenderer(this));
    this.entityRenderMap.put(EntityMinecartTNT.class, new RenderTntMinecart(this));
    this.entityRenderMap.put(EntityMinecartMobSpawner.class, new RenderMinecartMobSpawner(this));
    this.entityRenderMap.put(EntityMinecart.class, new RenderMinecart(this));
    this.entityRenderMap.put(EntityBoat.class, new RenderBoat(this));
    this.entityRenderMap.put(EntityFishHook.class, new RenderFish(this));
    this.entityRenderMap.put(EntityHorse.class, new RenderHorse(this, new ModelHorse(), 0.75F));
    this.entityRenderMap.put(EntityLightningBolt.class, new RenderLightningBolt(this));
    this.playerRenderer = new RenderPlayer(this);
    this.skinMap.put("default", this.playerRenderer);
    this.skinMap.put("slim", new RenderPlayer(this, true));
}