package top.r3944realms.lib39.util;

import net.minecraft.resources.ResourceKey;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.level.block.Block;
import top.r3944realms.lib39.core.event.CommonEventHandler;
import top.r3944realms.lib39.util.block.BlockRegistryBuilder;

import java.util.function.Supplier;

/**
 * The type NeoForge block registry builder.
 */
public class NeoForgeBlockRegistryBuilder extends BlockRegistryBuilder {
    @SafeVarargs
    @Override
    protected final void registerBlockItem(Supplier<Block> blockObject, ResourceKey<CreativeModeTab>... creativeTabs) {
        CommonEventHandler.Mod.addItemToTabs(blockObject, creativeTabs);
    }
}
