use of com.minecolonies.api.util.constant.NbtTagConstants.TAG_MAX_CITIZENS in project minecolonies by Minecolonies.
the class CitizenManager method writeToNBT.
@Override
public void writeToNBT(@NotNull final NBTTagCompound compound) {
compound.setInteger(TAG_MAX_CITIZENS, maxCitizens);
@NotNull final NBTTagList citizenTagList = citizens.values().stream().map(citizen -> citizen.writeToNBT(new NBTTagCompound())).collect(NBTUtils.toNBTTagList());
compound.setTag(TAG_CITIZENS, citizenTagList);
}
Aggregations