添加部分实体的同步机制

This commit is contained in:
17146 2025-03-20 17:18:27 +08:00
parent 0d39d50968
commit 3492be3ce5
2 changed files with 10 additions and 7 deletions

View file

@ -323,13 +323,6 @@ public class JavelinMissileEntity extends FastThrowableProjectile implements Geo
return 0F;
}
public String getSyncedAnimation() {
return null;
}
public void setAnimation(String animation) {
}
@Override
public void registerControllers(AnimatableManager.ControllerRegistrar data) {
data.add(new AnimationController<>(this, "movement", 0, this::movementPredicate));
@ -339,4 +332,9 @@ public class JavelinMissileEntity extends FastThrowableProjectile implements Geo
public AnimatableInstanceCache getAnimatableInstanceCache() {
return this.cache;
}
@Override
public boolean shouldSyncMotion() {
return true;
}
}

View file

@ -196,4 +196,9 @@ public class RpgRocketEntity extends FastThrowableProjectile implements GeoEntit
public AnimatableInstanceCache getAnimatableInstanceCache() {
return this.cache;
}
@Override
public boolean shouldSyncMotion() {
return true;
}
}