use of de.sanandrew.mods.claysoldiers.registry.upgrade.UpgradeEntry in project ClaySoldiersMod by SanAndreasP.
the class EntityClaySoldier method writeSpawnData.
@Override
public void writeSpawnData(ByteBuf buffer) {
PacketSyncUpgrades pktu = new PacketSyncUpgrades(this, true, this.upgradeSyncList.stream().map(entry -> new UpgradeEntry(entry.getUpgrade(), entry.getUpgradeType())).toArray(UpgradeEntry[]::new));
pktu.toBytes(buffer);
PacketSyncEffects pkte = new PacketSyncEffects(this, true, this.effectSyncList.toArray(new ISoldierEffectInst[0]));
pkte.toBytes(buffer);
}
Aggregations