添加部分实体的同步机制
This commit is contained in:
parent
0d39d50968
commit
3492be3ce5
2 changed files with 10 additions and 7 deletions
|
@ -323,13 +323,6 @@ public class JavelinMissileEntity extends FastThrowableProjectile implements Geo
|
||||||
return 0F;
|
return 0F;
|
||||||
}
|
}
|
||||||
|
|
||||||
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", 0, this::movementPredicate));
|
data.add(new AnimationController<>(this, "movement", 0, this::movementPredicate));
|
||||||
|
@ -339,4 +332,9 @@ public class JavelinMissileEntity extends FastThrowableProjectile implements Geo
|
||||||
public AnimatableInstanceCache getAnimatableInstanceCache() {
|
public AnimatableInstanceCache getAnimatableInstanceCache() {
|
||||||
return this.cache;
|
return this.cache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean shouldSyncMotion() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -196,4 +196,9 @@ public class RpgRocketEntity extends FastThrowableProjectile implements GeoEntit
|
||||||
public AnimatableInstanceCache getAnimatableInstanceCache() {
|
public AnimatableInstanceCache getAnimatableInstanceCache() {
|
||||||
return this.cache;
|
return this.cache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean shouldSyncMotion() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue