删除先辈的部分方法
This commit is contained in:
parent
c2c7b90eaf
commit
721fdf4bdd
1 changed files with 1 additions and 22 deletions
|
@ -50,13 +50,7 @@ public class SenpaiEntity extends Monster implements GeoEntity {
|
||||||
@Override
|
@Override
|
||||||
protected void registerGoals() {
|
protected void registerGoals() {
|
||||||
super.registerGoals();
|
super.registerGoals();
|
||||||
this.goalSelector.addGoal(1, new MeleeAttackGoal(this, 1.4, false) {
|
this.goalSelector.addGoal(1, new MeleeAttackGoal(this, 1.4, false));
|
||||||
// TODO what is this?
|
|
||||||
// @Override
|
|
||||||
// protected double getAttackReachSqr(LivingEntity entity) {
|
|
||||||
// return this.mob.getBbWidth() * this.mob.getBbWidth() + entity.getBbWidth();
|
|
||||||
// }
|
|
||||||
});
|
|
||||||
this.targetSelector.addGoal(2, new HurtByTargetGoal(this).setAlertOthers());
|
this.targetSelector.addGoal(2, new HurtByTargetGoal(this).setAlertOthers());
|
||||||
this.goalSelector.addGoal(3, new RandomLookAroundGoal(this));
|
this.goalSelector.addGoal(3, new RandomLookAroundGoal(this));
|
||||||
this.goalSelector.addGoal(4, new FloatGoal(this));
|
this.goalSelector.addGoal(4, new FloatGoal(this));
|
||||||
|
@ -64,14 +58,6 @@ public class SenpaiEntity extends Monster implements GeoEntity {
|
||||||
this.targetSelector.addGoal(6, new NearestAttackableTargetGoal<>(this, Player.class, false, false));
|
this.targetSelector.addGoal(6, new NearestAttackableTargetGoal<>(this, Player.class, false, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// TODO mob type
|
|
||||||
// @Override
|
|
||||||
// public MobType getMobType() {
|
|
||||||
// return MobType.ILLAGER;
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ParametersAreNonnullByDefault
|
@ParametersAreNonnullByDefault
|
||||||
protected void dropCustomDeathLoot(ServerLevel level, DamageSource damageSource, boolean recentlyHit) {
|
protected void dropCustomDeathLoot(ServerLevel level, DamageSource damageSource, boolean recentlyHit) {
|
||||||
|
@ -172,13 +158,6 @@ public class SenpaiEntity extends Monster implements GeoEntity {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSyncedAnimation() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAnimation(String animation) {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void registerControllers(AnimatableManager.ControllerRegistrar data) {
|
public void registerControllers(AnimatableManager.ControllerRegistrar data) {
|
||||||
data.add(new AnimationController<>(this, "movement", 4, this::movementPredicate));
|
data.add(new AnimationController<>(this, "movement", 4, this::movementPredicate));
|
||||||
|
|
Loading…
Add table
Reference in a new issue