Search in sources :

Example 1 with BlockSet

use of at.haha007.edenclient.utils.config.wrappers.BlockSet in project EdenClient by HahaOO7.

the class BlockSetLoader method save.

public NbtList save(Object value) {
    BlockSet list = cast(value);
    NbtList nbt = new NbtList();
    for (Block item : list) {
        nbt.add(PerWorldConfig.get().toNbt(item));
    }
    return nbt;
}
Also used : BlockSet(at.haha007.edenclient.utils.config.wrappers.BlockSet) NbtList(net.minecraft.nbt.NbtList) Block(net.minecraft.block.Block)

Aggregations

BlockSet (at.haha007.edenclient.utils.config.wrappers.BlockSet)1 Block (net.minecraft.block.Block)1 NbtList (net.minecraft.nbt.NbtList)1