diff --git a/src/main/java/techreborn/blocks/lighting/LampBlock.java b/src/main/java/techreborn/blocks/lighting/LampBlock.java index 1aa4bf426..2da57a837 100644 --- a/src/main/java/techreborn/blocks/lighting/LampBlock.java +++ b/src/main/java/techreborn/blocks/lighting/LampBlock.java @@ -54,8 +54,8 @@ import java.util.function.ToIntFunction; public class LampBlock extends BaseBlockEntityProvider { - public static DirectionProperty FACING = Properties.FACING; - public static BooleanProperty ACTIVE; + public static final DirectionProperty FACING = Properties.FACING; + public static final BooleanProperty ACTIVE = BooleanProperty.of("active"); protected final VoxelShape[] shape; private final int cost; @@ -116,7 +116,6 @@ public class LampBlock extends BaseBlockEntityProvider { // Block @Override protected void appendProperties(StateManager.Builder builder) { - ACTIVE = BooleanProperty.of("active"); builder.add(FACING, ACTIVE); } diff --git a/src/main/java/techreborn/blocks/machine/tier1/PlayerDetectorBlock.java b/src/main/java/techreborn/blocks/machine/tier1/PlayerDetectorBlock.java index 8defc5069..4f42ea3a7 100644 --- a/src/main/java/techreborn/blocks/machine/tier1/PlayerDetectorBlock.java +++ b/src/main/java/techreborn/blocks/machine/tier1/PlayerDetectorBlock.java @@ -56,7 +56,7 @@ import techreborn.utils.MessageIDs; public class PlayerDetectorBlock extends BlockMachineBase { - public static EnumProperty TYPE; + public static final EnumProperty TYPE = EnumProperty.of("type", PlayerDetectorType.class); public PlayerDetectorBlock() { super(Block.Settings.of(Material.METAL).strength(2f, 2f), true); @@ -143,7 +143,6 @@ public class PlayerDetectorBlock extends BlockMachineBase { @Override protected void appendProperties(StateManager.Builder builder) { - TYPE = EnumProperty.of("type", PlayerDetectorType.class); builder.add(TYPE); } diff --git a/src/main/java/techreborn/blocks/machine/tier1/ResinBasinBlock.java b/src/main/java/techreborn/blocks/machine/tier1/ResinBasinBlock.java index 2be3e6fc8..fa597d169 100644 --- a/src/main/java/techreborn/blocks/machine/tier1/ResinBasinBlock.java +++ b/src/main/java/techreborn/blocks/machine/tier1/ResinBasinBlock.java @@ -26,9 +26,9 @@ import java.util.function.Supplier; public class ResinBasinBlock extends BaseBlockEntityProvider { - public static DirectionProperty FACING = Properties.HORIZONTAL_FACING; - public static BooleanProperty POURING = BooleanProperty.of("pouring"); - public static BooleanProperty FULL = BooleanProperty.of("full"); + public static final DirectionProperty FACING = Properties.HORIZONTAL_FACING; + public static final BooleanProperty POURING = BooleanProperty.of("pouring"); + public static final BooleanProperty FULL = BooleanProperty.of("full"); Supplier blockEntityClass; public ResinBasinBlock(Supplier blockEntityClass) { @@ -51,9 +51,6 @@ public class ResinBasinBlock extends BaseBlockEntityProvider { // Block @Override protected void appendProperties(StateManager.Builder builder) { - FACING = DirectionProperty.of("facing", Direction.Type.HORIZONTAL); - POURING = BooleanProperty.of("pouring"); - FULL = BooleanProperty.of("full"); builder.add(FACING, POURING, FULL); } diff --git a/src/main/java/techreborn/blocks/misc/BlockAlarm.java b/src/main/java/techreborn/blocks/misc/BlockAlarm.java index 8079aa9b1..2afb09fff 100644 --- a/src/main/java/techreborn/blocks/misc/BlockAlarm.java +++ b/src/main/java/techreborn/blocks/misc/BlockAlarm.java @@ -55,8 +55,8 @@ import org.jetbrains.annotations.Nullable; import java.util.List; public class BlockAlarm extends BaseBlockEntityProvider { - public static DirectionProperty FACING = Properties.FACING; - public static BooleanProperty ACTIVE; + public static final DirectionProperty FACING = Properties.FACING; + public static final BooleanProperty ACTIVE = BooleanProperty.of("active"); protected final VoxelShape[] shape; public BlockAlarm() { @@ -107,7 +107,6 @@ public class BlockAlarm extends BaseBlockEntityProvider { // Block @Override protected void appendProperties(StateManager.Builder builder) { - ACTIVE = BooleanProperty.of("active"); builder.add(FACING, ACTIVE); }