mirror of
https://github.com/Minestom/Minestom.git
synced 2024-10-31 15:59:35 +01:00
Add EquipmentHandler#hasEquipment
This commit is contained in:
parent
2cf4e89694
commit
4825f8d4c1
@ -183,6 +183,10 @@ public interface EquipmentHandler {
|
||||
}
|
||||
}
|
||||
|
||||
default boolean hasEquipment(@NotNull EquipmentSlot slot) {
|
||||
return !getEquipment(slot).isAir();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a specific equipment to viewers.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user