mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
#980: Improve getArmorContents() documentation
This commit is contained in:
parent
f1120ee22d
commit
c8be92fad6
2 changed files with 8 additions and 4 deletions
|
@ -202,9 +202,11 @@ public interface EntityEquipment {
|
||||||
void setBoots(@Nullable ItemStack boots, boolean silent);
|
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
|
@NotNull
|
||||||
ItemStack[] getArmorContents();
|
ItemStack[] getArmorContents();
|
||||||
|
|
|
@ -10,9 +10,11 @@ import org.jetbrains.annotations.Nullable;
|
||||||
public interface PlayerInventory extends Inventory {
|
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
|
@NotNull
|
||||||
public ItemStack[] getArmorContents();
|
public ItemStack[] getArmorContents();
|
||||||
|
|
Loading…
Add table
Reference in a new issue