mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-26 02:57:37 +01:00
Item lore cannot be null (but empty)
This commit is contained in:
parent
ea8b8ea41e
commit
d5da334c25
@ -285,9 +285,9 @@ public class ItemStack implements DataContainer, PublicCloneable<ItemStack> {
|
||||
/**
|
||||
* Gets the item lore.
|
||||
*
|
||||
* @return a modifiable list containing the item lore, can be null if not present
|
||||
* @return a modifiable list containing the item lore, can be empty if not present
|
||||
*/
|
||||
@Nullable
|
||||
@NotNull
|
||||
public List<JsonMessage> getLore() {
|
||||
return lore;
|
||||
}
|
||||
@ -295,9 +295,9 @@ public class ItemStack implements DataContainer, PublicCloneable<ItemStack> {
|
||||
/**
|
||||
* Sets the item lore.
|
||||
*
|
||||
* @param lore the item lore, can be null to remove
|
||||
* @param lore the item lore, can be empty to remove
|
||||
*/
|
||||
public void setLore(@Nullable List<JsonMessage> lore) {
|
||||
public void setLore(@NotNull List<JsonMessage> lore) {
|
||||
this.lore = lore;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user