InventoryManager.java 文件源码

java
阅读 31 收藏 0 点赞 0 评论 0

项目:BlockParty-1.8 作者:
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();
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号