mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-19 06:32:03 +01:00
Added setTitle
This commit is contained in:
parent
dd74f1cb1e
commit
4f606de80f
@ -75,6 +75,19 @@ public class Inventory implements InventoryModifier, InventoryClickHandler, View
|
||||
return title;
|
||||
}
|
||||
|
||||
public String setTitle(String title){
|
||||
this.title = title;
|
||||
|
||||
OpenWindowPacket packet = new OpenWindowPacket();
|
||||
|
||||
packet.windowId = inv.getWindowId();
|
||||
packet.windowType = inv.getInventoryType().getWindowType();
|
||||
packet.title = title;
|
||||
|
||||
sendPacketToViewersAndSelf(packet);
|
||||
update();
|
||||
}
|
||||
|
||||
public byte getWindowId() {
|
||||
return id;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user