mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-07 19:31:37 +01:00
33 lines
635 B
Java
33 lines
635 B
Java
package net.minestom.server.item;
|
|
|
|
import net.minestom.server.chat.ColoredText;
|
|
|
|
public class ItemDisplay {
|
|
|
|
private ColoredText displayName;
|
|
private ColoredText[] lore;
|
|
|
|
public ItemDisplay(ColoredText displayName, ColoredText[] lore) {
|
|
this.displayName = displayName;
|
|
this.lore = lore;
|
|
}
|
|
|
|
/**
|
|
* Get the item display name
|
|
*
|
|
* @return the item display name
|
|
*/
|
|
public ColoredText getDisplayName() {
|
|
return displayName;
|
|
}
|
|
|
|
/**
|
|
* Get the item lore
|
|
*
|
|
* @return the item lore
|
|
*/
|
|
public ColoredText[] getLore() {
|
|
return lore;
|
|
}
|
|
}
|