aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/core/slots
diff options
context:
space:
mode:
authormiozune <miozune@gmail.com>2023-10-17 13:51:46 +0900
committermiozune <miozune@gmail.com>2023-10-17 17:39:55 +0900
commit2dfd919122df9a9bb9a3acac5d0ab154a250293f (patch)
tree755e195bc0401ebd56ada77ce522256d67d7cdf2 /src/main/java/gtPlusPlus/core/slots
parentec1f11c7207e0891383cf7b9183b971e194ff332 (diff)
downloadGT5-Unofficial-2dfd919122df9a9bb9a3acac5d0ab154a250293f.tar.gz
GT5-Unofficial-2dfd919122df9a9bb9a3acac5d0ab154a250293f.tar.bz2
GT5-Unofficial-2dfd919122df9a9bb9a3acac5d0ab154a250293f.zip
Move SAWTOOL to TreeFarmHelper
Diffstat (limited to 'src/main/java/gtPlusPlus/core/slots')
-rw-r--r--src/main/java/gtPlusPlus/core/slots/SlotBuzzSaw.java73
1 files changed, 0 insertions, 73 deletions
diff --git a/src/main/java/gtPlusPlus/core/slots/SlotBuzzSaw.java b/src/main/java/gtPlusPlus/core/slots/SlotBuzzSaw.java
deleted file mode 100644
index 588f17c92a..0000000000
--- a/src/main/java/gtPlusPlus/core/slots/SlotBuzzSaw.java
+++ /dev/null
@@ -1,73 +0,0 @@
-package gtPlusPlus.core.slots;
-
-import net.minecraft.inventory.IInventory;
-import net.minecraft.inventory.Slot;
-import net.minecraft.item.ItemStack;
-
-import gregtech.api.enums.OrePrefixes;
-import gregtech.api.items.GT_MetaGenerated_Tool;
-import gregtech.common.items.GT_MetaGenerated_Item_02;
-
-public class SlotBuzzSaw extends Slot {
-
- public SAWTOOL currentTool = SAWTOOL.NONE;
-
- public SlotBuzzSaw(final IInventory inventory, final int slot, final int x, final int y) {
- super(inventory, slot, x, y);
- }
-
- @Override
- public boolean isItemValid(final ItemStack itemstack) {
- boolean isValid = false;
-
- if (itemstack != null) {
- if ((itemstack.getItem() instanceof GT_MetaGenerated_Item_02)
- || (itemstack.getItem() instanceof GT_MetaGenerated_Tool)) {
- // Buzzsaw Blade //TODO
- /*
- * if (OrePrefixes.toolHeadBuzzSaw.contains(itemstack)){ isValid = false; }
- */
- if (OrePrefixes.craftingTool.contains(itemstack)) {
- if (itemstack.getDisplayName().toLowerCase().contains("saw")
- || itemstack.getDisplayName().toLowerCase().contains("gt.metatool.01.10")
- || itemstack.getDisplayName().toLowerCase().contains("gt.metatool.01.110")
- || itemstack.getDisplayName().toLowerCase().contains("gt.metatool.01.112")
- || itemstack.getDisplayName().toLowerCase().contains("gt.metatool.01.114")
- || itemstack.getDisplayName().toLowerCase().contains("gt.metatool.01.140")) {
- if (itemstack.getItemDamage() == 10) {
- isValid = true;
- this.currentTool = SAWTOOL.SAW;
- } else if (itemstack.getItemDamage() == 110) {
- isValid = true;
- this.currentTool = SAWTOOL.CHAINSAW;
- } else if (itemstack.getItemDamage() == 112) {
- isValid = true;
- this.currentTool = SAWTOOL.CHAINSAW;
- } else if (itemstack.getItemDamage() == 114) {
- isValid = true;
- this.currentTool = SAWTOOL.CHAINSAW;
- } else if (itemstack.getItemDamage() == 140) {
- isValid = true;
- this.currentTool = SAWTOOL.BUZZSAW;
- }
- return isValid;
- }
- }
- }
- }
- this.currentTool = SAWTOOL.NONE;
- return isValid;
- }
-
- @Override
- public int getSlotStackLimit() {
- return 1;
- }
-
- public enum SAWTOOL {
- NONE,
- SAW,
- BUZZSAW,
- CHAINSAW
- }
-}