mirror of
https://github.com/Minestom/Minestom.git
synced 2024-10-03 17:07:48 +02:00
commit
db6fe176b5
@ -75,6 +75,19 @@ public class Inventory implements InventoryModifier, InventoryClickHandler, View
|
|||||||
return title;
|
return title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String setTitle(String title){
|
||||||
|
this.title = title;
|
||||||
|
|
||||||
|
OpenWindowPacket packet = new OpenWindowPacket();
|
||||||
|
|
||||||
|
packet.windowId = getWindowId();
|
||||||
|
packet.windowType = getInventoryType().getWindowType();
|
||||||
|
packet.title = title;
|
||||||
|
|
||||||
|
sendPacketToViewersAndSelf(packet);
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
|
||||||
public byte getWindowId() {
|
public byte getWindowId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user