Start redoing Matter Fabricator gui

(cherry picked from commit 5c6bc6c)
This commit is contained in:
modmuss50 2017-06-02 20:32:03 +01:00
parent 82927ae405
commit f9d4134365
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82
4 changed files with 11 additions and 6 deletions

View file

@ -338,23 +338,23 @@ public class TRBuilder extends GuiBuilder {
public void drawScrapSlot(GuiScreen gui, int posX, int posY) {
Minecraft.getMinecraft().getTextureManager().bindTexture(GUI_SHEET);
gui.drawTexturedModalRect(posX, posY, 150, 70, 18, 18);
gui.drawTexturedModalRect(posX, posY, 150, 0, 18, 18);
}
public void drawOutputSlotBar(GuiScreen gui, int posX, int posY, int count) {
Minecraft.getMinecraft().getTextureManager().bindTexture(GUI_SHEET);
for (int i = 1; i <= count; i++) {
if (i == 1) {
gui.drawTexturedModalRect(posX, posY, 114, 218, 22, 26);
gui.drawTexturedModalRect(posX, posY, 114 + 39, 218, 22, 26);
posX += 22;
if (1 == count) {
gui.drawTexturedModalRect(posX, posY, 136, 218, 4, 26);
gui.drawTexturedModalRect(posX, posY, 136 + 39, 218, 4, 26);
}
} else if (i != 1 && i != count) {
gui.drawTexturedModalRect(posX, posY, 116, 218, 20, 26);
gui.drawTexturedModalRect(posX, posY, 116 + 39, 218, 20, 26);
posX += 20;
} else if (i == count) {
gui.drawTexturedModalRect(posX, posY, 116, 218, 24, 26);
gui.drawTexturedModalRect(posX, posY, 116 + 39, 218, 24, 26);
posX += 24;
}
}

View file

@ -145,7 +145,7 @@ public class IndustrialCentrifugeRecipes extends RecipeMethods {
if(input instanceof ItemStack){
if (((ItemStack) input).getItem() instanceof DynamicCell) {
int inputCount = ((ItemStack) input).stackSize;
int inputCount = ((ItemStack) input).getCount();
if (cellCount < inputCount) {
if (output2 == null) {
output2 = DynamicCell.getEmptyCell(inputCount - cellCount);

View file

@ -249,4 +249,9 @@ public class TileMatterFabricator extends TilePowerAcceptor
.outputSlot(9, 100, 66).outputSlot(10, 120, 66).syncEnergyValue()
.syncIntegerValue(this::getProgress, this::setProgress).addInventory().create();
}
@Override
public boolean canBeUpgraded() {
return false;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 25 KiB