}
}
public void placeObject(World w, int x, int y, int z, BlockFace direction, boolean active) {
final Block bottomLeftBlock = w.getBlock(x, y, z);
final Block bottomRightBlock = bottomLeftBlock.translate(direction, 3);
final Block topLeftBlock = bottomLeftBlock.translate(BlockFace.TOP, 4);
bottomLeftBlock.setMaterial(VanillaMaterials.OBSIDIAN);
bottomRightBlock.setMaterial(VanillaMaterials.OBSIDIAN);
topLeftBlock.setMaterial(VanillaMaterials.OBSIDIAN);
topLeftBlock.translate(direction, 3).setMaterial(VanillaMaterials.OBSIDIAN);
// Build vertical columns
for (int dy = 0; dy < 4; dy++) {
bottomLeftBlock.translate(BlockFace.TOP, dy).setMaterial(VanillaMaterials.OBSIDIAN);
bottomRightBlock.translate(BlockFace.TOP, dy).setMaterial(VanillaMaterials.OBSIDIAN);
}
// Build horizontal columns
for (int dw = 0; dw < 3; dw++) {
bottomLeftBlock.translate(direction, dw).setMaterial(VanillaMaterials.OBSIDIAN);
topLeftBlock.translate(direction, dw).setMaterial(VanillaMaterials.OBSIDIAN);
}
// Set the state of the portal
setActive(w, x, y, z, active);
}