Skip to content

Commit

Permalink
Add old computer block to the computer block entity type
Browse files Browse the repository at this point in the history
  • Loading branch information
kirderf1 committed Dec 6, 2024
1 parent a8d4c0c commit a0362df
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<BlockEntityType<?>> REGISTER = DeferredRegister.create(BuiltInRegistries.BLOCK_ENTITY_TYPE, Minestuck.MOD_ID);

public static final Supplier<BlockEntityType<ComputerBlockEntity>> 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<BlockEntityType<ComputerBlockEntity>> 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<BlockEntityType<MiniCruxtruderBlockEntity>> MINI_CRUXTRUDER = REGISTER.register("mini_cruxtruder", () -> BlockEntityType.Builder.of(MiniCruxtruderBlockEntity::new, MSBlocks.MINI_CRUXTRUDER.get()).build(null));
public static final Supplier<BlockEntityType<MiniTotemLatheBlockEntity>> MINI_TOTEM_LATHE = REGISTER.register("mini_totem_lathe", () -> BlockEntityType.Builder.of(MiniTotemLatheBlockEntity::new, MSBlocks.MINI_TOTEM_LATHE.get()).build(null));
public static final Supplier<BlockEntityType<MiniAlchemiterBlockEntity>> MINI_ALCHEMITER = REGISTER.register("mini_alchemiter", () -> BlockEntityType.Builder.of(MiniAlchemiterBlockEntity::new, MSBlocks.MINI_ALCHEMITER.get()).build(null));
Expand Down Expand Up @@ -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);
}
}
}

0 comments on commit a0362df

Please sign in to comment.