Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Keep in mind that this is copy-pasted from the Zombie file, the model and texture are still the same.
- // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
- // Jad home page: http://www.kpdus.com/jad.html
- // Decompiler options: packimports(3) braces deadcode
- package net.minecraft.src;
- import java.util.Random;
- // Referenced classes of package net.minecraft.src:
- // EntityMob, World, MathHelper, Item
- public class EntityMimic extends EntityMob
- {
- public EntityMimic(World world)
- {
- super(world);
- texture = "/mob/zombie.png";
- moveSpeed = 1.5F;
- attackStrength = 5;
- }
- public void onLivingUpdate()
- {
- if(worldObj.isDaytime())
- {
- float f = getEntityBrightness(1.0F);
- if(f > 0.5F && worldObj.canBlockSeeTheSky(MathHelper.floor_double(posX), MathHelper.floor_double(posY), MathHelper.floor_double(posZ)) && rand.nextFloat() * 30F < (f - 0.4F) * 2.0F)
- {
- fire = 300;
- }
- }
- super.onLivingUpdate();
- }
- protected String getLivingSound()
- {
- return "mob.zombie";
- }
- protected String getHurtSound()
- {
- return "mob.zombiehurt";
- }
- protected String getDeathSound()
- {
- return "mob.zombiedeath";
- }
- protected int getDropItemId()
- {
- return Item.ingotIron.shiftedIndex;
- }
- ModLoader.removeSpawn(EntityMimic.class, EnumCreatureType.creature);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement