package com.tiedup.remake.items;

import com.tiedup.remake.items.base.BlindfoldVariant;
import com.tiedup.remake.items.base.ItemBlindfold;
import net.minecraft.world.item.Item;

/**
 * Generic blindfold item created from BlindfoldVariant enum.
 * Replaces individual blindfold classes (ItemClassicBlindfold, ItemBlindfoldMask).
 *
 * Factory pattern: All blindfold variants are created using this single class.
 */
public class GenericBlindfold extends ItemBlindfold {

    private final BlindfoldVariant variant;

    public GenericBlindfold(BlindfoldVariant variant) {
        super(new Item.Properties().stacksTo(16));
        this.variant = variant;
    }

    /**
     * Get the variant this blindfold was created from.
     */
    public BlindfoldVariant getVariant() {
        return variant;
    }

    /**
     * Get the texture subfolder for this blindfold variant.
     * Issue #12 fix: Eliminates string checks in renderers.
     */
    @Override
    public String getTextureSubfolder() {
        return variant.getTextureSubfolder();
    }
}
