feature/d01-component-system #5

Merged
NotEvil merged 20 commits from feature/d01-component-system into develop 2026-04-14 00:54:17 +00:00
2 changed files with 0 additions and 8 deletions
Showing only changes of commit bb209bcd8e - Show all commits

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;
}