2012-01-24 07:04:18 +01:00
|
|
|
package net.minecraft.server;
|
|
|
|
|
|
|
|
public class EntityComplex extends EntityLiving {
|
|
|
|
|
2012-07-29 09:33:13 +02:00
|
|
|
protected int a = 100;
|
2012-01-24 07:04:18 +01:00
|
|
|
|
|
|
|
public EntityComplex(World world) {
|
|
|
|
super(world);
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getMaxHealth() {
|
2012-07-29 09:33:13 +02:00
|
|
|
return this.a;
|
2012-01-24 07:04:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean a(EntityComplexPart entitycomplexpart, DamageSource damagesource, int i) {
|
|
|
|
return this.damageEntity(damagesource, i);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean damageEntity(DamageSource damagesource, int i) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2012-02-29 22:31:04 +01:00
|
|
|
public boolean dealDamage(DamageSource damagesource, int i) { // CraftBukkit - protected -> public
|
2012-01-24 07:04:18 +01:00
|
|
|
return super.damageEntity(damagesource, i);
|
|
|
|
}
|
|
|
|
}
|