Skip to content

Commit

Permalink
Fixed Bamboo Mat GUI
Browse files Browse the repository at this point in the history
- Fixed Bamboo Mat GUI
  • Loading branch information
Nyancatpig committed May 1, 2022
1 parent c01c12a commit 86eafe3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public BambooMatBlockEntity(BlockPos pWorldPosition, BlockState pBlockState) {

@Override
public Component getDisplayName() {
return new TextComponent("Gem Cutting Station");
return new TextComponent("Bamboo Mat");
}

@Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ public BambooMatMenu(int pContainerId, Inventory inv, BlockEntity entity) {
addPlayerHotbar(inv);

this.blockEntity.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY).ifPresent(handler -> {
this.addSlot(new SlotItemHandler(handler, 0, 34, 40));
this.addSlot(new SlotItemHandler(handler, 1, 57, 18));
this.addSlot(new SlotItemHandler(handler, 2, 103, 18));
this.addSlot(new SlotItemHandler(handler, 3, 103, 18));
this.addSlot(new SlotItemHandler(handler, 4, 103, 18));
this.addSlot(new ModResultSlot(handler, 5, 80, 60));
this.addSlot(new SlotItemHandler(handler, 0, 39, 46));
this.addSlot(new SlotItemHandler(handler, 1, 57, 46));
this.addSlot(new SlotItemHandler(handler, 2, 30, 22));
this.addSlot(new SlotItemHandler(handler, 3, 48, 22));
this.addSlot(new SlotItemHandler(handler, 4, 66, 22));
this.addSlot(new ModResultSlot(handler, 5, 129, 22));
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.inventory.AbstractContainerMenu;

public class BambooMatScreen extends AbstractContainerScreen {
public class BambooMatScreen extends AbstractContainerScreen<BambooMatMenu> {
private static final ResourceLocation TEXTURE =
new ResourceLocation(CulturalDelights.MOD_ID, "textures/gui/bamboo_mat_gui.png");

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 86eafe3

Please sign in to comment.