Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
added chest bufer
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Sep 6, 2023
1 parent 51ee0a7 commit d78f67c
Show file tree
Hide file tree
Showing 16 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common/src/main/java/muramasa/gregtech/data/Guis.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ public static void init(Side side) {
FORMING_PRESS.add(ALLOY_SMELTER).getGui().getMachineData().setProgressLocation("compressor");
FORGE_HAMMER.add(FURNACE).getGui().setBackgroundTexture("machine_forge_hammer").getMachineData().setProgressLocation("forge_hammer");
SUPER_BUFFER.getGui().setBackgroundTexture("super_buffer");
CHEST_BUFFER.getGui().setBackgroundTexture("chest_buffer");
for (int y = 0; y < 3; y++){
for (int x = 0; x < 9; x++){
CHEST_BUFFER.add(STORAGE, 8 + (x * 18), 5 + (y * 18));
}
}
SIFTER.add(IT_IN, 53, 25)
.add(IT_OUT, 107, 16).add(IT_OUT, 125, 16).add(IT_OUT, 143, 16)
.add(IT_OUT, 107, 34).add(IT_OUT, 125, 34).add(IT_OUT, 143, 34)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,11 @@ public static void loadRecipes(Consumer<FinishedRecipe> output, AntimatterRecipe
.put('D', DataOrb)
.put('M', hull)
.put('C', conveyor).build(), "DMC"));
add(CHEST_BUFFER, tier, (m, item) -> provider.addItemRecipe(output, "machines", "has_motor", provider.hasSafeItem(motor), item,
ImmutableMap.<Character, Object>builder()
.put('D', ForgeCTags.CHESTS_WOODEN)
.put('M', hull)
.put('C', conveyor).put('c', circuit).build(), "DMC", " c "));
if (!AntimatterAPI.isModLoaded("gt4r")){
add(ELECTRIC_TYPE_FILTER, tier, (m,item) -> provider.addItemRecipe(output, "machines", "has_motor", provider.hasSafeItem(MotorHV), item,
ImmutableMap.<Character, Object>builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public BufferItemHandler(TileEntityBuffer tile) {
@NotNull
@Override
public ItemStack extractItem(int slot, int amount, boolean simulate) {
if (amount < tile.stackLimit) return ItemStack.EMPTY;
amount = Math.min(amount, tile.stackLimit);
return super.extractItem(slot, amount, simulate);
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 d78f67c

Please sign in to comment.