feat(D-01/E): BuiltInLockComponent for organic items (E2)
- New BuiltInLockComponent: blocksUnequip() returns true (permanent lock) - ComponentType: add BUILT_IN_LOCK enum value - 8 organic item JSONs updated (slime, vine, web, tape variants) - DataDrivenBondageItem: add hasBuiltInLock() static helper
This commit is contained in:
@@ -7,6 +7,7 @@ import com.tiedup.remake.v2.bondage.IV2BondageEquipment;
|
||||
import com.tiedup.remake.v2.bondage.TyingInteractionHelper;
|
||||
import com.tiedup.remake.v2.bondage.V2BondageItems;
|
||||
import com.tiedup.remake.v2.bondage.capability.V2EquipmentHelper;
|
||||
import com.tiedup.remake.v2.bondage.component.BuiltInLockComponent;
|
||||
import com.tiedup.remake.v2.bondage.component.ComponentHolder;
|
||||
import com.tiedup.remake.v2.bondage.component.ComponentType;
|
||||
import com.tiedup.remake.v2.bondage.component.IItemComponent;
|
||||
@@ -436,6 +437,11 @@ public class DataDrivenBondageItem extends AbstractV2BondageItem {
|
||||
);
|
||||
}
|
||||
|
||||
/** Check if the item has a built-in lock (organic items: slime, vine, web, tape). */
|
||||
public static boolean hasBuiltInLock(ItemStack stack) {
|
||||
return getComponent(stack, ComponentType.BUILT_IN_LOCK, BuiltInLockComponent.class) != null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Stack-aware padlock attachment check for data-driven items.
|
||||
* Returns false for organic items (slime, vine, web, tape) that have
|
||||
|
||||
Reference in New Issue
Block a user