Skip to content

Commit

Permalink
docs: clarify ILabel return conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
mainrs committed Sep 15, 2024
1 parent 3b1fa4b commit ce1edb4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,10 @@ public enum Priority {
* Converts an {@code ItemStack} to its corresponding {@link ILabel} implementation.
*
* @param item The {@code ItemStack} to convert.
* @return The corresponding {@link ILabel} implementation, or {@link ILabel.LEmpty} if none could be found.
* @return A {@link LItemStack} if the passed argument is an item stack, a {@link LFluidStack} if the past
* item is a fluid stack or an item stack containing a fluid. If the item is neither, returns an
* instance of {@link LPlaceholder}. If the argument is {@code null}, returns an instance of
* {@link ILabel.LEmpty}.
*/
public static ILabel from(@Nullable Object item) {
if (item == null) {
Expand Down

0 comments on commit ce1edb4

Please sign in to comment.