package net.halbear.aotg.registries;

import net.halbear.aotg.AgeoftheGods;
import net.halbear.aotg.custom.blocks.AlloyFurnace.AlloyFurnaceBlockEntity;
import net.halbear.aotg.custom.blocks.Forge.ForgeWorkbenchBlockEntity;
import net.minecraft.core.registries.Registries;
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.neoforged.neoforge.registries.DeferredRegister;

import java.util.function.Supplier;

public class ModBlockEntities {
    public static final DeferredRegister<BlockEntityType<?>> BLOCK_ENTITY_TYPES =
            DeferredRegister.create(Registries.BLOCK_ENTITY_TYPE, AgeoftheGods.MODID);

    public static final Supplier<BlockEntityType<AlloyFurnaceBlockEntity>> ALLOY_FURNACE_BLOCK_ENTITY = BLOCK_ENTITY_TYPES.register(
            "alloy_furnace_block_entity",
            () -> new BlockEntityType<>(
                    AlloyFurnaceBlockEntity::new,
                    false,
                    ModBlocks.ALLOY_FURNACE.get()
            )
    );
    public static final Supplier<BlockEntityType<ForgeWorkbenchBlockEntity>> FORGE_WORKBENCH_BLOCK_ENTITY = BLOCK_ENTITY_TYPES.register(
            "forge_workbench_block_entity",
            () -> new BlockEntityType<>(
                    ForgeWorkbenchBlockEntity::new,
                    false,
                    ModBlocks.FORGE_WORKBENCH.get()
            )
    );
}
