删除先辈的部分方法

This commit is contained in:
17146 2025-04-09 01:58:59 +08:00
parent c2c7b90eaf
commit 721fdf4bdd

View file

@ -50,13 +50,7 @@ public class SenpaiEntity extends Monster implements GeoEntity {
@Override
protected void registerGoals() {
super.registerGoals();
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.goalSelector.addGoal(1, new MeleeAttackGoal(this, 1.4, false));
this.targetSelector.addGoal(2, new HurtByTargetGoal(this).setAlertOthers());
this.goalSelector.addGoal(3, new RandomLookAroundGoal(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));
}
// TODO mob type
// @Override
// public MobType getMobType() {
// return MobType.ILLAGER;
// }
@Override
@ParametersAreNonnullByDefault
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
public void registerControllers(AnimatableManager.ControllerRegistrar data) {
data.add(new AnimationController<>(this, "movement", 4, this::movementPredicate));