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

Commit

Permalink
updated antimatter, added super buffer tile class
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Sep 2, 2023
1 parent 07017ba commit 64e30ee
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion AntimatterAPI
Submodule AntimatterAPI updated 20 files
+1 −1 TesseractAPI
+0 −14 common/src/main/java/muramasa/antimatter/Data.java
+0 −1 common/src/main/java/muramasa/antimatter/client/ClientData.java
+0 −12 common/src/main/java/muramasa/antimatter/gui/container/ContainerHatch.java
+1 −12 common/src/main/java/muramasa/antimatter/gui/screen/ScreenHatch.java
+25 −0 common/src/main/java/muramasa/antimatter/gui/widget/TankIconWidget.java
+13 −3 common/src/main/java/muramasa/antimatter/machine/types/HatchMachine.java
+ common/src/main/resources/assets/antimatter/textures/gui/button/apad_left.png
+ common/src/main/resources/assets/antimatter/textures/gui/button/apad_right.png
+ common/src/main/resources/assets/antimatter/textures/gui/button/conditional.png
+ common/src/main/resources/assets/antimatter/textures/gui/button/export.png
+ common/src/main/resources/assets/antimatter/textures/gui/button/export_import.png
+ common/src/main/resources/assets/antimatter/textures/gui/button/ignore_redstone.png
+ common/src/main/resources/assets/antimatter/textures/gui/button/import.png
+ common/src/main/resources/assets/antimatter/textures/gui/button/import_export.png
+ common/src/main/resources/assets/antimatter/textures/gui/button/invert_conditional.png
+ common/src/main/resources/assets/antimatter/textures/gui/button/no_overlay.png
+ common/src/main/resources/assets/antimatter/textures/gui/button/pad_left.png
+ common/src/main/resources/assets/antimatter/textures/gui/button/pad_right.png
+ common/src/main/resources/assets/antimatter/textures/gui/button/tank.png
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package muramasa.gregtech.tile.single;

import muramasa.antimatter.capability.item.TrackedItemHandler;
import muramasa.antimatter.capability.machine.MachineItemHandler;
import muramasa.antimatter.gui.SlotType;
import muramasa.antimatter.machine.event.ContentEvent;
import muramasa.antimatter.machine.types.Machine;
import muramasa.antimatter.tile.TileEntityMachine;
import net.minecraft.core.BlockPos;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.block.state.BlockState;
import tesseract.api.item.ExtendedItemContainer;
import tesseract.util.ItemHandlerUtils;

public class TileEntitySuperBuffer extends TileEntityMachine<TileEntitySuperBuffer> {
public TileEntitySuperBuffer(Machine<?> type, BlockPos pos, BlockState state) {
super(type, pos, state);
itemHandler.set(() -> new SuperBufferItemHandler(this));
}

public static class SuperBufferItemHandler extends MachineItemHandler<TileEntitySuperBuffer> {

public SuperBufferItemHandler(TileEntitySuperBuffer tile) {
super(tile);
this.inventories.put(SlotType.STORAGE, new TrackedItemHandler<>(tile, 256, true, true, (t, s) -> true, ContentEvent.ITEM_INPUT_CHANGED));
}
}
}

0 comments on commit 64e30ee

Please sign in to comment.