*
* @param footBlock of the bed
* @param facing of the bed
*/
public void create(Block footBlock, BlockFace facing) {
Block headBlock = footBlock.translate(facing);
if (headBlock.getWorld().getGenerator() instanceof NetherGenerator) {
ExplosionModel explosion = new ExplosionModelSpherical();
explosion.execute(headBlock.getPosition(), NETHER_EXPLOSION_SIZE, true, toCause(footBlock));
} else {
footBlock.setMaterial(this, 0x0, toCause(footBlock));
headBlock.setMaterial(this, 0x8, toCause(footBlock));
setFacing(footBlock, facing);
setFacing(headBlock, facing);
}
}