feature/d01-component-system #5
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user