mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-20 14:21:29 +01:00
commit
db6fe176b5
@ -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 = getWindowId();
|
||||
packet.windowType = getInventoryType().getWindowType();
|
||||
packet.title = title;
|
||||
|
||||
sendPacketToViewersAndSelf(packet);
|
||||
update();
|
||||
}
|
||||
|
||||
public byte getWindowId() {
|
||||
return id;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user