From a0362dfd953cd802dd680e28909c627e66649436 Mon Sep 17 00:00:00 2001 From: kirderf1 Date: Fri, 6 Dec 2024 21:03:48 +0100 Subject: [PATCH] Add old computer block to the computer block entity type --- .../mraof/minestuck/blockentity/MSBlockEntityTypes.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/mraof/minestuck/blockentity/MSBlockEntityTypes.java b/src/main/java/com/mraof/minestuck/blockentity/MSBlockEntityTypes.java index d2e33b83c7..9693c74ec4 100644 --- a/src/main/java/com/mraof/minestuck/blockentity/MSBlockEntityTypes.java +++ b/src/main/java/com/mraof/minestuck/blockentity/MSBlockEntityTypes.java @@ -18,11 +18,12 @@ import java.util.function.Supplier; @EventBusSubscriber(modid = Minestuck.MOD_ID, bus = EventBusSubscriber.Bus.MOD) -public class MSBlockEntityTypes +public final class MSBlockEntityTypes { public static final DeferredRegister> REGISTER = DeferredRegister.create(BuiltInRegistries.BLOCK_ENTITY_TYPE, Minestuck.MOD_ID); - public static final Supplier> COMPUTER = REGISTER.register("computer", () -> BlockEntityType.Builder.of(ComputerBlockEntity::new, MSBlocks.COMPUTER.get(), MSBlocks.CROCKERTOP.get(), MSBlocks.HUBTOP.get(), MSBlocks.LAPTOP.get(), MSBlocks.LUNCHTOP.get()).build(null)); + public static final Supplier> COMPUTER = REGISTER.register("computer", () -> BlockEntityType.Builder.of(ComputerBlockEntity::new, + MSBlocks.COMPUTER.get(), MSBlocks.LAPTOP.get(), MSBlocks.CROCKERTOP.get(), MSBlocks.HUBTOP.get(), MSBlocks.LUNCHTOP.get(), MSBlocks.OLD_COMPUTER.get()).build(null)); public static final Supplier> MINI_CRUXTRUDER = REGISTER.register("mini_cruxtruder", () -> BlockEntityType.Builder.of(MiniCruxtruderBlockEntity::new, MSBlocks.MINI_CRUXTRUDER.get()).build(null)); public static final Supplier> MINI_TOTEM_LATHE = REGISTER.register("mini_totem_lathe", () -> BlockEntityType.Builder.of(MiniTotemLatheBlockEntity::new, MSBlocks.MINI_TOTEM_LATHE.get()).build(null)); public static final Supplier> MINI_ALCHEMITER = REGISTER.register("mini_alchemiter", () -> BlockEntityType.Builder.of(MiniAlchemiterBlockEntity::new, MSBlocks.MINI_ALCHEMITER.get()).build(null)); @@ -132,4 +133,4 @@ public static void registerCapabilities(RegisterCapabilitiesEvent event) event.registerBlockEntity(Capabilities.ItemHandler.BLOCK, MSBlockEntityTypes.URANIUM_COOKER.get(), UraniumCookerBlockEntity::getItemHandler); event.registerBlockEntity(Capabilities.ItemHandler.BLOCK, MSBlockEntityTypes.ANTHVIL.get(), AnthvilBlockEntity::getItemHandler); } -} \ No newline at end of file +}