public ContainerApiary(InventoryPlayer playerInventory, IInventory inventory) {
this.apiary = inventory;
this.addSlotToContainer(new SlotBee(inventory, 0, 26, 34));
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 6; j++) {
this.addSlotToContainer(new SlotItem(inventory, j + i * 6 + 1, 62 + j * 18, 16 + i * 18));
}
}
for (int i = 0; i < 3; ++i) {
for (int j = 0; j < 9; ++j) {
this.addSlotToContainer(new Slot(playerInventory, j + i * 9 + 9, 8 + j * 18, 84 + i * 18));
}
}
for (int k = 0; k < 9; ++k) {
this.addSlotToContainer(new Slot(playerInventory, k, 8 + k * 18, 142));
}
}
ContainerApiary.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:Bewitchment
作者:
评论列表
文章目录