mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-13 19:51:27 +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.
|
* 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() {
|
public List<JsonMessage> getLore() {
|
||||||
return lore;
|
return lore;
|
||||||
}
|
}
|
||||||
@ -295,9 +295,9 @@ public class ItemStack implements DataContainer, PublicCloneable<ItemStack> {
|
|||||||
/**
|
/**
|
||||||
* Sets the item lore.
|
* 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;
|
this.lore = lore;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user