This commit is contained in:
parent
5bfaa0e20b
commit
b3d5f35072
@ -4,8 +4,10 @@ import com.thebrokenrail.energonrelics.EnergonRelics;
|
|||||||
import com.thebrokenrail.energonrelics.config.HardcodedConfig;
|
import com.thebrokenrail.energonrelics.config.HardcodedConfig;
|
||||||
import com.thebrokenrail.energonrelics.structure.StructureContext;
|
import com.thebrokenrail.energonrelics.structure.StructureContext;
|
||||||
import com.thebrokenrail.energonrelics.util.WeightedList;
|
import com.thebrokenrail.energonrelics.util.WeightedList;
|
||||||
|
import net.minecraft.block.AnvilBlock;
|
||||||
import net.minecraft.block.BarrelBlock;
|
import net.minecraft.block.BarrelBlock;
|
||||||
import net.minecraft.block.BedBlock;
|
import net.minecraft.block.BedBlock;
|
||||||
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.BlockState;
|
import net.minecraft.block.BlockState;
|
||||||
import net.minecraft.block.Blocks;
|
import net.minecraft.block.Blocks;
|
||||||
import net.minecraft.block.ChestBlock;
|
import net.minecraft.block.ChestBlock;
|
||||||
@ -137,7 +139,15 @@ public abstract class AbstractResearchComplexRoomPart extends BaseResearchComple
|
|||||||
set(new BlockPos(2, 0, 2), chest.with(ChestBlock.CHEST_TYPE, ChestType.RIGHT));
|
set(new BlockPos(2, 0, 2), chest.with(ChestBlock.CHEST_TYPE, ChestType.RIGHT));
|
||||||
set(new BlockPos(3, 0, 2), chest.with(ChestBlock.CHEST_TYPE, ChestType.LEFT));
|
set(new BlockPos(3, 0, 2), chest.with(ChestBlock.CHEST_TYPE, ChestType.LEFT));
|
||||||
|
|
||||||
set(new BlockPos(4, 0, 4), Blocks.ANVIL.getDefaultState());
|
WeightedList<Block> anvilList = new WeightedList<>();
|
||||||
|
anvilList.add(1, Blocks.ANVIL);
|
||||||
|
anvilList.add(1, Blocks.CHIPPED_ANVIL);
|
||||||
|
anvilList.add(1, Blocks.DAMAGED_ANVIL);
|
||||||
|
BlockState anvil = anvilList.pick(getState().random).getDefaultState();
|
||||||
|
|
||||||
|
anvil = anvil.with(AnvilBlock.FACING, Direction.EAST);
|
||||||
|
|
||||||
|
set(new BlockPos(4, 0, 4), anvil);
|
||||||
set(new BlockPos(3, 0, 4), Blocks.BLAST_FURNACE.getDefaultState());
|
set(new BlockPos(3, 0, 4), Blocks.BLAST_FURNACE.getDefaultState());
|
||||||
set(new BlockPos(2, 0, 4), Blocks.SMOKER.getDefaultState());
|
set(new BlockPos(2, 0, 4), Blocks.SMOKER.getDefaultState());
|
||||||
set(new BlockPos(1, 0, 4), Blocks.FURNACE.getDefaultState());
|
set(new BlockPos(1, 0, 4), Blocks.FURNACE.getDefaultState());
|
||||||
|
Reference in New Issue
Block a user