aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/slots/SlotDataStick.java
diff options
context:
space:
mode:
authorJohann Bernhardt <johann.bernhardt@tum.de>2021-12-12 19:38:06 +0100
committerJohann Bernhardt <johann.bernhardt@tum.de>2021-12-12 19:38:06 +0100
commit311ab89f93558233a40079f7cb16605b141b5346 (patch)
treec5f44ef47f441a57c5f57aa801f639c7879ed760 /src/Java/gtPlusPlus/core/slots/SlotDataStick.java
parent896143b96132f5ac54aa8d8f7386f27487e5e530 (diff)
downloadGT5-Unofficial-311ab89f93558233a40079f7cb16605b141b5346.tar.gz
GT5-Unofficial-311ab89f93558233a40079f7cb16605b141b5346.tar.bz2
GT5-Unofficial-311ab89f93558233a40079f7cb16605b141b5346.zip
Move sources and resources
Diffstat (limited to 'src/Java/gtPlusPlus/core/slots/SlotDataStick.java')
-rw-r--r--src/Java/gtPlusPlus/core/slots/SlotDataStick.java42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/Java/gtPlusPlus/core/slots/SlotDataStick.java b/src/Java/gtPlusPlus/core/slots/SlotDataStick.java
deleted file mode 100644
index ce97a2fdbf..0000000000
--- a/src/Java/gtPlusPlus/core/slots/SlotDataStick.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package gtPlusPlus.core.slots;
-
-import net.minecraft.inventory.IInventory;
-import net.minecraft.inventory.Slot;
-import net.minecraft.item.ItemStack;
-
-import gregtech.api.util.GT_Utility;
-import gtPlusPlus.core.recipe.common.CI;
-
-public class SlotDataStick extends Slot {
-
- public SlotDataStick(final IInventory inventory, final int slot, final int x, final int y) {
- super(inventory, slot, x, y);
-
- }
-
- public static ItemStack[] mDataItems = new ItemStack[2];
-
- @Override
- public synchronized boolean isItemValid(final ItemStack itemstack) {
- boolean isValid = false;
- if (itemstack != null) {
- if (mDataItems[0] == null) {
- mDataItems[0] = CI.getDataStick();
- }
- if (mDataItems[1] == null) {
- mDataItems[1] = CI.getDataOrb();
- }
- if (mDataItems[0] != null && mDataItems[1] != null) {
- if (GT_Utility.areStacksEqual(itemstack, mDataItems[0], true) || GT_Utility.areStacksEqual(itemstack, mDataItems[1], true) ) {
- isValid = true;
- }
- }
- }
- return isValid;
- }
-
- @Override
- public int getSlotStackLimit() {
- return 1;
- }
-}