- 170
- 2
- 53
Код:
public InventoryCrafting craftMatrix = new InventoryCrafting(this, 2, 2);
public InventoryCraftResult craftResult = new InventoryCraftResult();
public Slot sl;
sl = new SlotCrafting(thePlayer, this.craftMatrix, this.craftResult, 0, 182, 138);
this.addSlotToContainer(sl);
for (int i = 0; i < 2; ++i) {
for (int j = 0; j < 2; ++j) {
this.addSlotToContainer(new Slot(this.craftMatrix, j + i * 2, 130 + j * 17, 120 + i * 18));
}
}
Java:
@Override
public void onCraftMatrixChanged(IInventory inventoryIn) {
this.slotChangedCraftingGrid(this.thePlayer.world, this.thePlayer, this.craftMatrix, this.craftResult);
}
Не рендерит предмет пока не нажать на него, как исправить?