From 721fdf4bddf65bf8846e71fea183599d09e7c453 Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Wed, 9 Apr 2025 01:58:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=85=88=E8=BE=88=E7=9A=84?= =?UTF-8?q?=E9=83=A8=E5=88=86=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../superbwarfare/entity/SenpaiEntity.java | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/SenpaiEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/SenpaiEntity.java index c904e94cd..3fba5c032 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/SenpaiEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/SenpaiEntity.java @@ -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));