1.15-pre1
This commit is contained in:
parent
f9b9279500
commit
c8ce611841
12 changed files with 25 additions and 18 deletions
|
@ -62,7 +62,7 @@ public class BlockAlarm extends BaseBlockEntityProvider {
|
|||
|
||||
public BlockAlarm() {
|
||||
super(Block.Settings.of(Material.STONE).strength(2f, 2f));
|
||||
this.setDefaultState(this.stateFactory.getDefaultState().with(FACING, Direction.NORTH).with(ACTIVE, false));
|
||||
this.setDefaultState(this.getStateManager().getDefaultState().with(FACING, Direction.NORTH).with(ACTIVE, false));
|
||||
this.shape = GenCuboidShapes(3, 10);
|
||||
BlockWrenchEventHandler.wrenableBlocks.add(this);
|
||||
}
|
||||
|
|
|
@ -90,7 +90,7 @@ public class CableBlock extends BlockWithEntity {
|
|||
public CableBlock(TRContent.Cables type) {
|
||||
super(Block.Settings.of(Material.STONE).strength(1f, 8f));
|
||||
this.type = type;
|
||||
setDefaultState(this.stateFactory.getDefaultState().with(EAST, false).with(WEST, false).with(NORTH, false)
|
||||
setDefaultState(this.getStateManager().getDefaultState().with(EAST, false).with(WEST, false).with(NORTH, false)
|
||||
.with(SOUTH, false).with(UP, false).with(DOWN, false));
|
||||
BlockWrenchEventHandler.wrenableBlocks.add(this);
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ public class BlockLamp extends BaseBlockEntityProvider {
|
|||
super(FabricBlockSettings.of(Material.REDSTONE_LAMP).strength(2f, 2f).lightLevel(brightness).build());
|
||||
this.shape = genCuboidShapes(depth, width);
|
||||
this.cost = cost;
|
||||
this.setDefaultState(this.stateFactory.getDefaultState().with(FACING, Direction.NORTH).with(ACTIVE, false));
|
||||
this.setDefaultState(this.getStateManager().getDefaultState().with(FACING, Direction.NORTH).with(ACTIVE, false));
|
||||
BlockWrenchEventHandler.wrenableBlocks.add(this);
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ public class BlockNuke extends BaseBlock {
|
|||
|
||||
public BlockNuke() {
|
||||
super(Block.Settings.of(Material.TNT));
|
||||
this.setDefaultState(this.stateFactory.getDefaultState().with(OVERLAY, false));
|
||||
this.setDefaultState(this.getStateManager().getDefaultState().with(OVERLAY, false));
|
||||
}
|
||||
|
||||
public void ignite(World worldIn, BlockPos pos, BlockState state, LivingEntity igniter) {
|
||||
|
|
|
@ -59,7 +59,7 @@ public abstract class BlockEnergyStorage extends BaseBlockEntityProvider {
|
|||
|
||||
public BlockEnergyStorage(String name, IMachineGuiHandler gui) {
|
||||
super(FabricBlockSettings.of(Material.METAL).strength(2f, 2f).build());
|
||||
this.setDefaultState(this.stateFactory.getDefaultState().with(FACING, Direction.NORTH));
|
||||
this.setDefaultState(this.getStateManager().getDefaultState().with(FACING, Direction.NORTH));
|
||||
this.name = name;
|
||||
this.gui = gui;
|
||||
BlockWrenchEventHandler.wrenableBlocks.add(this);
|
||||
|
|
|
@ -59,7 +59,7 @@ public class BlockPlayerDetector extends BlockMachineBase {
|
|||
|
||||
public BlockPlayerDetector() {
|
||||
super(Block.Settings.of(Material.METAL).strength(2f, 2f), true);
|
||||
this.setDefaultState(this.stateFactory.getDefaultState().with(TYPE, PlayerDetectorType.ALL));
|
||||
this.setDefaultState(this.getStateManager().getDefaultState().with(TYPE, PlayerDetectorType.ALL));
|
||||
}
|
||||
|
||||
// BlockMachineBase
|
||||
|
|
|
@ -56,7 +56,7 @@ public abstract class BlockTransformer extends BaseBlockEntityProvider {
|
|||
|
||||
public BlockTransformer(String name) {
|
||||
super(FabricBlockSettings.of(Material.METAL).strength(2f, 2f).build());
|
||||
this.setDefaultState(this.stateFactory.getDefaultState().with(FACING, Direction.NORTH));
|
||||
this.setDefaultState(this.getStateManager().getDefaultState().with(FACING, Direction.NORTH));
|
||||
this.name = name;
|
||||
BlockWrenchEventHandler.wrenableBlocks.add(this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue