mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-09-10 22:28:19 +02:00
Readded the description in CatalogEntry
This commit is contained in:
parent
870bdcb9f8
commit
2340b1991c
@ -91,7 +91,7 @@ public class CatalogPanel {
|
|||||||
itemBuilder.description(user.getTranslation(LOCALE_REF + "icon.description-template",
|
itemBuilder.description(user.getTranslation(LOCALE_REF + "icon.description-template",
|
||||||
"[topic]", StringUtils.capitalize(addon.getTopic()),
|
"[topic]", StringUtils.capitalize(addon.getTopic()),
|
||||||
"[install]", install,
|
"[install]", install,
|
||||||
"[description]", "WIP"));
|
"[description]", addon.getDescription()));
|
||||||
|
|
||||||
// Send the link to the releases tab on click
|
// Send the link to the releases tab on click
|
||||||
itemBuilder.clickHandler((panel, user1, clickType, slot) -> {
|
itemBuilder.clickHandler((panel, user1, clickType, slot) -> {
|
||||||
|
@ -20,6 +20,7 @@ public class CatalogEntry {
|
|||||||
*/
|
*/
|
||||||
private @NonNull Material icon;
|
private @NonNull Material icon;
|
||||||
private @NonNull String name;
|
private @NonNull String name;
|
||||||
|
private @NonNull String description;
|
||||||
private @Nullable String topic;
|
private @Nullable String topic;
|
||||||
private @NonNull List<String> tags = new ArrayList<>();
|
private @NonNull List<String> tags = new ArrayList<>();
|
||||||
private @NonNull String repository;
|
private @NonNull String repository;
|
||||||
@ -29,6 +30,7 @@ public class CatalogEntry {
|
|||||||
Material material = Material.getMaterial(object.get("icon").getAsString());
|
Material material = Material.getMaterial(object.get("icon").getAsString());
|
||||||
this.icon = (material != null) ? material : Material.PAPER;
|
this.icon = (material != null) ? material : Material.PAPER;
|
||||||
this.name = object.get("name").getAsString();
|
this.name = object.get("name").getAsString();
|
||||||
|
this.description = object.get("description").getAsString();
|
||||||
this.repository = object.get("repository").getAsString();
|
this.repository = object.get("repository").getAsString();
|
||||||
this.topic = object.get("topic").getAsString();
|
this.topic = object.get("topic").getAsString();
|
||||||
}
|
}
|
||||||
@ -47,6 +49,11 @@ public class CatalogEntry {
|
|||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
|
public String getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public String getTopic() {
|
public String getTopic() {
|
||||||
return topic;
|
return topic;
|
||||||
|
Loading…
Reference in New Issue
Block a user