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:
@@ -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) {
|
public boolean blocksUnequip(ItemStack stack, LivingEntity entity) {
|
||||||
for (IItemComponent c : components.values()) {
|
for (IItemComponent c : components.values()) {
|
||||||
if (c.blocksUnequip(stack, entity)) return true;
|
if (c.blocksUnequip(stack, entity)) return true;
|
||||||
|
|||||||
@@ -13,8 +13,6 @@ public interface IItemComponent {
|
|||||||
|
|
||||||
default void onUnequipped(ItemStack stack, LivingEntity entity) {}
|
default void onUnequipped(ItemStack stack, LivingEntity entity) {}
|
||||||
|
|
||||||
default void onWornTick(ItemStack stack, LivingEntity entity) {}
|
|
||||||
|
|
||||||
default boolean blocksUnequip(ItemStack stack, LivingEntity entity) {
|
default boolean blocksUnequip(ItemStack stack, LivingEntity entity) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user