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.FabricCommonEventHandler;
import top.r3944realms.lib39.util.block.BlockRegistryBuilder;

import java.util.function.Supplier;

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