Add throw speed to item lore in GameClass
This update enhances the item lore display by including the throw speed attribute alongside health and damage. It improves clarity for players by providing more comprehensive item stats directly on the display.
This commit is contained in:
parent
8718ca0918
commit
172f9a29a2
|
|
@ -62,9 +62,10 @@ public abstract class GameClass {
|
|||
throw new IllegalArgumentException("Display item has no lore");
|
||||
}
|
||||
ArrayList<Component> loreList = new ArrayList<>(lore);
|
||||
loreList.add(miniMessage.deserialize("<gold>Health: <health>, Damage: <damage></gold>",
|
||||
loreList.add(miniMessage.deserialize("<gold>Health: <health>, Damage: <damage> Throw speed: <throw_speed></gold>",
|
||||
Placeholder.parsed("health", String.valueOf(health)),
|
||||
Placeholder.parsed("damage", String.valueOf(damage))
|
||||
Placeholder.parsed("damage", String.valueOf(damage)),
|
||||
Placeholder.parsed("throw_speed", String.valueOf(throwTickSpeed))
|
||||
));
|
||||
itemMeta.lore(loreList);
|
||||
displayItem.setItemMeta(itemMeta);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user