/*
 * Copyright (c) 2026 盐灯水母
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
 */

package com.remains_cave.event;

import com.remains_cave.entity.*;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.fml.common.EventBusSubscriber;
import net.neoforged.neoforge.event.entity.EntityAttributeCreationEvent;

import static com.remains_cave.RemainsCaveMod.MODID;

@EventBusSubscriber(modid = MODID, value = Dist.CLIENT)
public class ModEventBusEvents {
    @SubscribeEvent
    public static void registerAttributes(EntityAttributeCreationEvent event) {
        event.put(ModEntities.SKELETON_WARRIOR.get(), SkeletonWarriorEntity.createAttributes().build());
        event.put(ModEntities.SKELETON_ARCHER.get(), SkeletonArcherEntity.createAttributes().build());
        event.put(ModEntities.SKELETON_WARLOCK.get(), SkeletonWarlockEntity.createAttributes().build());
        event.put(ModEntities.SKELETON_KING.get(), SkeletonKingEntity.createAttributes().build());
    }
}