Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package infectModding.mob.entity;
- import net.minecraft.block.Block;
- import net.minecraft.entity.Entity;
- import net.minecraft.entity.SharedMonsterAttributes;
- import net.minecraft.entity.monster.EntityMob;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.world.World;
- public class EntityHunch extends EntityMob {
- public EntityHunch(World par1World) {
- super(par1World);
- this.setSize(1.0F, 0.5F);
- // TODO Auto-generated constructor stub
- }
- protected String getLivingSound(){
- return "mob.wither.idle";
- }
- protected String getDeathSound(){
- return "mob.wither.death";
- }
- protected String getHurtSound(){
- return "mob.wither.hurt";
- }
- protected void func_145780_a(int p_145780_1_, int p_145780_2_, int p_145780_3_, Block p_145780_4_)
- {
- this.playSound("mob.pig.step", 0.15F, 1.0F);
- }
- protected Entity findPlayerToAttack(){
- EntityPlayer entityPlayer = this.worldObj.getClosestVulnerablePlayerToEntity(this, 16.0D);
- return entityPlayer != null && this.canEntityBeSeen(entityPlayer) ? entityPlayer : null;
- }
- public void applyEntityAttributes(){
- super.applyEntityAttributes();
- this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(10.0D);
- this.getEntityAttribute(SharedMonsterAttributes.followRange).setBaseValue(52.0D);
- this.getEntityAttribute(SharedMonsterAttributes.knockbackResistance).setBaseValue(0.D);
- this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.9D);
- this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(3.0D);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement