package top.r3944realms.lib39.platform;

import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import top.r3944realms.lib39.core.event.CommonEventHandler;
import top.r3944realms.lib39.core.sync.SyncData2Manager;
import top.r3944realms.lib39.platform.services.IUtilHelper;
import top.r3944realms.lib39.util.NeoForgeBlockRegistryBuilder;
import top.r3944realms.lib39.util.block.BlockRegistryBuilder;

/**
 * The enum Forge util helper.
 */
public enum NeoForgeUtilHelper implements IUtilHelper {
    /**
     * Instance forge util helper.
     */
    INSTANCE;
    @Contract(value = " -> new", pure = true)
    @Override
    public @NotNull BlockRegistryBuilder getBlockRegistryBuilder() {
        return new NeoForgeBlockRegistryBuilder();
    }

    @Override
    public SyncData2Manager<?> getSyncData2Manager() {
        return CommonEventHandler.Game.getSyncData2Manager();
    }
}
