mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 06:50:12 +01:00
Expanded Art API
This commit is contained in:
parent
b9a4e9a745
commit
ed6663d2b9
1 changed files with 23 additions and 0 deletions
|
@ -117,6 +117,29 @@ public interface Art extends OldEnum<Art>, Keyed {
|
|||
}
|
||||
// Paper end - deprecate getKey
|
||||
|
||||
// Paper start - name and author components, assetId key
|
||||
/**
|
||||
* Get the painting's title.
|
||||
*
|
||||
* @return the title
|
||||
*/
|
||||
net.kyori.adventure.text.@Nullable Component title();
|
||||
|
||||
/**
|
||||
* Get the painting's author.
|
||||
*
|
||||
* @return the author
|
||||
*/
|
||||
net.kyori.adventure.text.@Nullable Component author();
|
||||
|
||||
/**
|
||||
* Get the painting's asset id
|
||||
*
|
||||
* @return the asset id
|
||||
*/
|
||||
net.kyori.adventure.key.@NotNull Key assetId();
|
||||
// Paper end - name and author components, assetId key
|
||||
|
||||
/**
|
||||
* Get a painting by its numeric ID
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue