/*
 * 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.item.client;

import com.remains_cave.item.custom.BoneHelmetItem;
import software.bernie.geckolib.cache.object.GeoBone;
import software.bernie.geckolib.model.GeoModel;
import software.bernie.geckolib.renderer.GeoArmorRenderer;

import javax.annotation.Nullable;

public class BoneHelmetRenderer extends GeoArmorRenderer<BoneHelmetItem> {
    public BoneHelmetRenderer() {
        super(new BoneHelmetModel());
    }

    @Override
    @Nullable
    public GeoBone getHeadBone(GeoModel<BoneHelmetItem> model) {
        return model.getBone("head").orElse(null);
    }

    // 如果需要身体或其他骨骼，可以重写对应方法
}