Class ModBlocksInitializer

java.lang.Object
com.minecolonies.apiimp.initializer.ModBlocksInitializer

public final class ModBlocksInitializer extends Object
This class deals with the initialization of blocks and their items.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    init(net.minecraft.core.Registry<net.minecraft.world.level.block.Block> registry)
    Initializes ModBlocks with the block instances.
    static void
    registerBlockItem(net.minecraft.core.Registry<net.minecraft.world.item.Item> registry)
    Initializes the registry with the relevant item produced by the relevant blocks.
    static void
    registerBlocks(net.neoforged.neoforge.registries.RegisterEvent event)
     
    static void
    registerItems(net.neoforged.neoforge.registries.RegisterEvent event)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • registerBlocks

      public static void registerBlocks(net.neoforged.neoforge.registries.RegisterEvent event)
    • init

      public static void init(net.minecraft.core.Registry<net.minecraft.world.level.block.Block> registry)
      Initializes ModBlocks with the block instances.
      Parameters:
      registry - The registry to register the new blocks.
    • registerItems

      public static void registerItems(net.neoforged.neoforge.registries.RegisterEvent event)
    • registerBlockItem

      public static void registerBlockItem(net.minecraft.core.Registry<net.minecraft.world.item.Item> registry)
      Initializes the registry with the relevant item produced by the relevant blocks.
      Parameters:
      registry - The item registry to add the items too.