9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-26 18:39:23 +00:00

Add back Lithium: equipment tracking

This commit is contained in:
Dreeam
2025-04-18 04:38:18 -04:00
parent 6cd78606b4
commit df9edc4fa1
56 changed files with 191 additions and 270 deletions

View File

@@ -1,17 +0,0 @@
package net.caffeinemc.mods.lithium.common.entity;
import net.caffeinemc.mods.lithium.common.util.change_tracking.ChangeSubscriber;
import net.minecraft.world.item.ItemStack;
public interface EquipmentEntity {
void onEquipmentReplaced(ItemStack oldStack, ItemStack newStack);
interface EquipmentTrackingEntity {
void onEquipmentChanged();
}
interface TickableEnchantmentTrackingEntity extends ChangeSubscriber.EnchantmentSubscriber<ItemStack> {
void updateHasTickableEnchantments(ItemStack oldStack, ItemStack newStack);
}
}

View File

@@ -0,0 +1,10 @@
package net.caffeinemc.mods.lithium.common.entity;
public interface EquipmentInfo {
boolean shouldTickEnchantments();
boolean hasUnsentEquipmentChanges();
void onEquipmentChangesSent();
}