diff --git a/src/main/java/techreborn/blocks/GenericMachineBlock.java b/src/main/java/techreborn/blocks/GenericMachineBlock.java index 467c4b7f8..0575b5c05 100644 --- a/src/main/java/techreborn/blocks/GenericMachineBlock.java +++ b/src/main/java/techreborn/blocks/GenericMachineBlock.java @@ -24,6 +24,7 @@ package techreborn.blocks; +import net.minecraft.block.Block; import net.minecraft.block.entity.BlockEntity; import net.minecraft.world.BlockView; import reborncore.api.blockentity.IMachineGuiHandler; @@ -46,6 +47,12 @@ public class GenericMachineBlock extends BlockMachineBase { this.gui = gui; } + public GenericMachineBlock(Block.Settings settings, IMachineGuiHandler gui, Supplier blockEntityClass) { + super(settings); + this.blockEntityClass = blockEntityClass; + this.gui = gui; + } + @Override public BlockEntity createBlockEntity(BlockView worldIn) { if (blockEntityClass == null) {