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:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package net.caffeinemc.mods.lithium.common.entity;
|
||||
|
||||
public interface EquipmentInfo {
|
||||
|
||||
boolean shouldTickEnchantments();
|
||||
|
||||
boolean hasUnsentEquipmentChanges();
|
||||
|
||||
void onEquipmentChangesSent();
|
||||
}
|
||||
Reference in New Issue
Block a user