Added Scripting Projectile and Barrier Syncing

This commit is contained in:
Kam committed 2026-03-08 22:49:34 -04:00
1 parent ed176cfaf5
commit 182f7d8c9c
15 files changed
+440 -2

No files matched your search

@@ -712,6 +712,22 @@ public class EntityEnergyPanel extends EntityEnergyBarrier {
this.mode = mode;
}
// ==================== CLIENT SYNC ====================
@Override
protected void writeBarrierClientSyncData(NBTTagCompound nbt) {
nbt.setFloat("PanelWidth", panelData.panelWidth);
nbt.setFloat("PanelHeight", panelData.panelHeight);
nbt.setFloat("PanelYaw", panelYaw);
}
@Override
protected void applyBarrierClientSyncData(NBTTagCompound nbt) {
panelData.panelWidth = nbt.getFloat("PanelWidth");
panelData.panelHeight = nbt.getFloat("PanelHeight");
panelYaw = nbt.getFloat("PanelYaw");
}
// ==================== NBT ====================
@Override