mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 13:09:11 +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
@@ -432,6 +432,22 @@ public class EntityAbilityDisc extends EntityEnergyProjectile {
|
||||
returning = nbt.getBoolean("Returning");
|
||||
}
|
||||
|
||||
// ==================== PROPERTY SYNC ====================
|
||||
|
||||
@Override
|
||||
protected void writeProjectileClientSyncData(NBTTagCompound nbt) {
|
||||
nbt.setFloat("DiscRadius", discRadius);
|
||||
nbt.setFloat("DiscThickness", discThickness);
|
||||
nbt.setBoolean("Vertical", vertical);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void applyProjectileClientSyncData(NBTTagCompound nbt) {
|
||||
discRadius = nbt.getFloat("DiscRadius");
|
||||
discThickness = nbt.getFloat("DiscThickness");
|
||||
vertical = nbt.getBoolean("Vertical");
|
||||
}
|
||||
|
||||
// ==================== NBT ====================
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user