mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 18:59:49 +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
@@ -736,6 +736,22 @@ public class EntityAbilityBeam extends EntityEnergyProjectile {
|
||||
setTargetEntityId(-1);
|
||||
}
|
||||
|
||||
// ==================== PROPERTY SYNC ====================
|
||||
|
||||
@Override
|
||||
protected void writeProjectileClientSyncData(NBTTagCompound nbt) {
|
||||
nbt.setFloat("BeamWidth", beamWidth);
|
||||
nbt.setFloat("HeadSize", headSize);
|
||||
nbt.setBoolean("AttachedToOwner", isAttachedToOwner());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void applyProjectileClientSyncData(NBTTagCompound nbt) {
|
||||
beamWidth = nbt.getFloat("BeamWidth");
|
||||
headSize = nbt.getFloat("HeadSize");
|
||||
setAttachedToOwner(nbt.getBoolean("AttachedToOwner"));
|
||||
}
|
||||
|
||||
// ==================== NBT ====================
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user