public void removeBlock(Block block) { _blocksById.remove(block.getId()); _blocksByTitle.remove(block.getTitle()); }
public void addAllBlocks(Map<Byte, Block> blocks) { _blocksById.putAll(blocks); for (Block b : blocks.values()) { _blocksByTitle.put(b.getTitle(), b); } }
public void addBlock(Block block) { _blocksById.put(block.getId(), block); _blocksByTitle.put(block.getTitle(), block); }