1.15-pre1

This commit is contained in:
modmuss50 2019-11-21 21:51:30 +00:00
parent f9b9279500
commit c8ce611841
12 changed files with 25 additions and 18 deletions

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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) {

View file

@ -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);

View file

@ -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

View file

@ -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);
}