mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 03:22:23 +00:00
Added Scripting Projectile and Barrier Syncing
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user