Updates to textures #48

Merged
BlakeRain merged 22 commits from Jah/utamacraft:main into main 2023-12-29 22:55:24 +00:00
4 changed files with 6 additions and 6 deletions
Showing only changes of commit fa5e282608 - Show all commits

Binary file not shown.

View File

@ -36,9 +36,9 @@ public class InsolatorMenu extends AbstractContainerMenu {
addPlayerInventory(inventory);
this.blockEntity.getCapability(ForgeCapabilities.ITEM_HANDLER).ifPresent(handler -> {
this.addSlot(new SlotItemHandler(handler, 0, 78, 14));
this.addSlot(new SlotItemHandler(handler, 1, 152, 14));
this.addSlot(new SlotItemHandler(handler, 2, 152, 59));
this.addSlot(new SlotItemHandler(handler, 0, 78, 10));
this.addSlot(new SlotItemHandler(handler, 1, 152, 10));
this.addSlot(new SlotItemHandler(handler, 2, 152, 55));
});
} else {
throw new IllegalArgumentException("Block entity must be an InsolatorBlockEntity");
@ -102,14 +102,14 @@ public class InsolatorMenu extends AbstractContainerMenu {
private void addPlayerInventory(Inventory inventory) {
for (int row = 0; row < PLAYER_INVENTORY_ROW_COUNT; ++row) {
for (int col = 0; col < PLAYER_INVENTORY_COLUMN_COUNT; ++col) {
this.addSlot(new Slot(inventory, col + row * 9 + 9, 8 + col * 18, 86 + row * 18));
this.addSlot(new Slot(inventory, col + row * 9 + 9, 8 + col * 18, 82 + row * 18));
}
}
}
private void addPlayerHotbar(Inventory inventory) {
for (int slot = 0; slot < HOTBAR_SLOT_COUNT; ++slot) {
this.addSlot(new Slot(inventory, slot, 8 + slot * 18, 144));
this.addSlot(new Slot(inventory, slot, 8 + slot * 18, 140));
}
}
}

View File

@ -48,7 +48,7 @@ public class InsolatorScreen extends AbstractContainerScreen<InsolatorMenu> {
topPos = (height - imageHeight) / 2;
dumpButton = addRenderableWidget(new Button(
leftPos + 8, topPos + 56,
leftPos + 8, topPos + 52,
60, 20, DUMP_BUTTON, this::onDumpPress,
(button, stack, mouseX, mouseY) -> {
if (menu.getBlockEntity().getFluidTank().getFluid().getAmount() <= 0) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 19 KiB