public CraftContainer(InventoryView view, int id) {
this.view = view;
this.windowId = id;
// TODO: Do we need to check that it really is a CraftInventory?
net.minecraft.inventory.IInventory top = ((CraftInventory)view.getTopInventory()).getInventory();
net.minecraft.inventory.IInventory bottom = ((CraftInventory)view.getBottomInventory()).getInventory();
cachedType = view.getType();
cachedTitle = view.getTitle();
cachedSize = getSize();
setupSlots(top, bottom);
}
CraftContainer.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:Uranium
作者:
评论列表
文章目录