Block fullLight;
@Before
public void setup() throws Exception {
super.setup();
BlockManagerImpl blockManager = new BlockManagerImpl(new NullWorldAtlas(), new DefaultBlockFamilyFactoryRegistry());
CoreRegistry.put(BlockManager.class, blockManager);
airBlock = BlockManager.getAir();
solidBlock = new Block();
solidBlock.setDisplayName("Stone");
solidBlock.setUri(new BlockUri("engine:stone"));
solidBlock.setId((short) 1);
for (Side side : Side.values()) {
solidBlock.setFullSide(side, true);
}
solidBlock.setTranslucent(false);
blockManager.addBlockFamily(new SymmetricFamily(solidBlock.getURI(), solidBlock), true);
fullLight = new Block();
fullLight.setDisplayName("Torch");
fullLight.setUri(new BlockUri("engine:torch"));
fullLight.setId((short) 2);
fullLight.setLuminance(ChunkConstants.MAX_LIGHT);
blockManager.addBlockFamily(new SymmetricFamily(fullLight.getURI(), fullLight), true);
}