use of com.elmakers.mine.bukkit.api.block.BlockData in project MagicPlugin by elBukkit.
the class BlockList method load.
@Override
public void load(ConfigurationSection node) {
worldName = node.getString("world");
List<String> blockData = node.getStringList("blocks");
if (blockData != null) {
for (String blockString : blockData) {
BlockData deserialized = com.elmakers.mine.bukkit.block.BlockData.fromString(blockString);
if (worldName == null)
worldName = deserialized.getWorldName();
add(deserialized);
}
}
}
use of com.elmakers.mine.bukkit.api.block.BlockData in project MagicPlugin by elBukkit.
the class BlockList method setBlockList.
public void setBlockList(Collection<BlockData> blockList) {
this.blockList = null;
if (blockList != null) {
this.blockList = new ArrayDeque<>(blockList);
blockIdMap = new HashSet<>();
for (BlockData block : blockList) {
blockIdMap.add(block.getId());
}
}
}
Aggregations