fix(D-01): remove dead onWornTick() until V2 tick mechanism exists (BUG-002)

Remove onWornTick() from IItemComponent (default method) and
ComponentHolder (aggregate method). No V2 tick caller invokes these,
so they create a broken contract. Can be re-added when a tick
mechanism is implemented.
This commit is contained in:
NotEvil
2026-04-14 02:26:31 +02:00
parent 1327e3bfc3
commit bb209bcd8e
2 changed files with 0 additions and 8 deletions

View File

@@ -51,12 +51,6 @@ public final class ComponentHolder {
}
}
public void onWornTick(ItemStack stack, LivingEntity entity) {
for (IItemComponent c : components.values()) {
c.onWornTick(stack, entity);
}
}
public boolean blocksUnequip(ItemStack stack, LivingEntity entity) {
for (IItemComponent c : components.values()) {
if (c.blocksUnequip(stack, entity)) return true;

View File

@@ -13,8 +13,6 @@ public interface IItemComponent {
default void onUnequipped(ItemStack stack, LivingEntity entity) {}
default void onWornTick(ItemStack stack, LivingEntity entity) {}
default boolean blocksUnequip(ItemStack stack, LivingEntity entity) {
return false;
}