public void clearInventory(Player p) {
PlayerInventory inv = p.getInventory();
inv.clear();
inv.setHelmet(null);
inv.setChestplate(null);
inv.setLeggings(null);
inv.setBoots(null);
InventoryView view = p.getOpenInventory();
if (view != null) {
view.setCursor(null);
Inventory i = view.getTopInventory();
if (i != null) {
i.clear();
}
}
}
InventoryManager.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:BlockParty-1.8
作者:
评论列表
文章目录