mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-08 16:12:18 -07:00
#980: Improve getArmorContents() documentation
By: Bruno Ivan <bruno@oikei.net>
This commit is contained in:
@@ -202,9 +202,11 @@ public interface EntityEquipment {
|
||||
void setBoots(@Nullable ItemStack boots, boolean silent);
|
||||
|
||||
/**
|
||||
* Gets a copy of all worn armor
|
||||
* Gets all ItemStacks from the armor slots.
|
||||
*
|
||||
* @return The array of worn armor. Individual items may be null.
|
||||
* @return all the ItemStacks from the armor slots. Individual items can be
|
||||
* null and are returned in a fixed order starting from the boots and going
|
||||
* up to the helmet
|
||||
*/
|
||||
@NotNull
|
||||
ItemStack[] getArmorContents();
|
||||
|
@@ -10,9 +10,11 @@ import org.jetbrains.annotations.Nullable;
|
||||
public interface PlayerInventory extends Inventory {
|
||||
|
||||
/**
|
||||
* Get all ItemStacks from the armor slots
|
||||
* Gets all ItemStacks from the armor slots.
|
||||
*
|
||||
* @return All the ItemStacks from the armor slots. Individual items can be null.
|
||||
* @return all the ItemStacks from the armor slots. Individual items can be
|
||||
* null and are returned in a fixed order starting from the boots and going
|
||||
* up to the helmet
|
||||
*/
|
||||
@NotNull
|
||||
public ItemStack[] getArmorContents();
|
||||
|
Reference in New Issue
Block a user