Interface LivingEvents.EquipmentChange
- Record Components:
from- what was in the slot (don't change it)to- what is in it now
- Enclosing class:
- LivingEvents
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
What an entity wears or holds in a slot changed (armor, hands), noticed on its next tick. The entity already has
the new item; a listener may still take it off again, for example back into the player's inventory.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonEquipmentChange(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.world.item.ItemStack from, net.minecraft.world.item.ItemStack to)
-
Method Details
-
onEquipmentChange
void onEquipmentChange(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.world.item.ItemStack from, net.minecraft.world.item.ItemStack to)
-