package com.tiedup.remake.v2.bondage.component;

import com.google.gson.JsonObject;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.item.ItemStack;

/**
 * Component: permanent lock for organic items (slime, vine, web, tape).
 *
 * <p>These items cannot have a padlock attached but always require struggle
 * to remove — they behave as if permanently locked.</p>
 *
 * <p>JSON config: {@code "built_in_lock": {}}</p>
 */
public class BuiltInLockComponent implements IItemComponent {

    private BuiltInLockComponent() {}

    public static IItemComponent fromJson(JsonObject config) {
        return new BuiltInLockComponent();
    }

    @Override
    public boolean blocksUnequip(ItemStack stack, LivingEntity entity) {
        return true;
    }
}
