use of ivorius.ivtoolkit.tools.NBTCompoundObjects in project RecurrentComplex by Ivorforce.
the class SavedMazeReachability method writeToNBT.
@Override
public void writeToNBT(NBTTagCompound compound) {
NBTTagLists.writeTo(compound, "groups", Lists.transform(groups, NBTCompoundObjects::writeList));
NBTTagLists.writeTo(compound, "crossConnections", Lists.transform(crossConnections, input -> {
NBTTagCompound compound1 = new NBTTagCompound();
NBTCompoundObjects.writeTo(compound1, "key", input.getKey());
NBTCompoundObjects.writeTo(compound1, "val", input.getValue());
return compound1;
}));
compound.setBoolean("groupByDefault", groupByDefault);
}
Aggregations