mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 08:25:56 +02:00
a lot of progress inside the ui
This commit is contained in:
parent
ec40889118
commit
1d402b1e76
28 changed files with 386 additions and 152 deletions
|
|
@ -112,6 +112,26 @@ object PlatformUtil {
|
|||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
} /**
|
||||
* Try to send paper component to the player
|
||||
*
|
||||
* @param component The used component
|
||||
* @return true if sent, else otherwise
|
||||
*/
|
||||
|
||||
/**
|
||||
* Try to set component lore of an item
|
||||
*
|
||||
* @param components The used component lore
|
||||
* @return true if sent, else otherwise
|
||||
*/
|
||||
fun ItemMeta.setPaperLore(components: List<Component>): Boolean {
|
||||
if(isPaper) {
|
||||
this.lore(components)
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue