SPIGOT-4722: Cannot get title of player's inventory
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -34,11 +34,11 @@
|
||||
+ ((CraftInventory) destination.getBottomInventory()).getInventory().onOpen(player);
|
||||
+ }
|
||||
+ private IChatBaseComponent title;
|
||||
+ public IChatBaseComponent getTitle() {
|
||||
+ public final IChatBaseComponent getTitle() {
|
||||
+ Preconditions.checkState(this.title != null, "Title not set");
|
||||
+ return this.title;
|
||||
+ }
|
||||
+ public void setTitle(IChatBaseComponent title) {
|
||||
+ public final void setTitle(IChatBaseComponent title) {
|
||||
+ Preconditions.checkState(this.title == null, "Title already set");
|
||||
+ this.title = title;
|
||||
+ }
|
||||
|
||||
Reference in New Issue
Block a user