From a31702624fd8bbd15d91b1844c8eb4611742a726 Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Tue, 11 Feb 2025 23:17:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=BF=80=E5=85=89?= =?UTF-8?q?=E5=A1=94=E7=9A=84=E6=9E=84=E9=80=A0=E5=87=BD=E6=95=B0=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../superbwarfare/entity/vehicle/LaserTowerEntity.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/LaserTowerEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/LaserTowerEntity.java index 49de8fa86..4fff6e2b6 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/LaserTowerEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/LaserTowerEntity.java @@ -51,6 +51,7 @@ import java.util.stream.StreamSupport; import static com.atsuishio.superbwarfare.tools.ParticleTool.sendParticle; public class LaserTowerEntity extends EnergyVehicleEntity implements GeoEntity, OwnableEntity { + public static final EntityDataAccessor COOL_DOWN = SynchedEntityData.defineId(LaserTowerEntity.class, EntityDataSerializers.INT); public static final EntityDataAccessor ACTIVE = SynchedEntityData.defineId(LaserTowerEntity.class, EntityDataSerializers.BOOLEAN); public static final EntityDataAccessor> OWNER_UUID = SynchedEntityData.defineId(LaserTowerEntity.class, EntityDataSerializers.OPTIONAL_UUID); @@ -71,7 +72,7 @@ public class LaserTowerEntity extends EnergyVehicleEntity implements GeoEntity, } public LaserTowerEntity(LivingEntity owner, Level level) { - super(ModEntities.CLAYMORE.get(), level); + super(ModEntities.LASER_TOWER.get(), level); this.setOwnerUUID(owner.getUUID()); } @@ -310,8 +311,6 @@ public class LaserTowerEntity extends EnergyVehicleEntity implements GeoEntity, }).min(Comparator.comparingDouble(e -> e.distanceTo(this))).orElse(null); } - - private PlayState movementPredicate(AnimationState event) { if (this.entityData.get(COOL_DOWN) > 10) { return event.setAndContinue(RawAnimation.begin().thenPlay("animation.lt.fire"));