mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
30 lines
924 B
Java
30 lines
924 B
Java
package com.hbm.world.generator.room;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import com.hbm.world.generator.CellularDungeon;
|
|
import com.hbm.world.generator.CellularDungeonRoom;
|
|
import com.hbm.world.generator.DungeonToolbox;
|
|
|
|
import net.minecraft.init.Blocks;
|
|
import net.minecraft.world.World;
|
|
import net.minecraftforge.common.util.ForgeDirection;
|
|
|
|
public class TestDungeonRoom5 extends CellularDungeonRoom {
|
|
|
|
public TestDungeonRoom5(CellularDungeon parent) {
|
|
super(parent);
|
|
}
|
|
|
|
public void generateMain(World world, int x, int y, int z) {
|
|
|
|
super.generateMain(world, x, y, z);
|
|
DungeonToolbox.generateBox(world, x, y + parent.height - 2, z, parent.width, 1, parent.width, new ArrayList() {{ add(Blocks.air); add(Blocks.web); }});
|
|
}
|
|
|
|
public void generateWall(World world, int x, int y, int z, ForgeDirection wall, boolean door) {
|
|
|
|
if(wall != ForgeDirection.SOUTH)
|
|
super.generateWall(world, x, y, z, wall, door);
|
|
}
|
|
} |