From 1c97d71946ba79258dac9754165d99f6cc34e0d7 Mon Sep 17 00:00:00 2001 From: Michael Hillcox Date: Sun, 29 Nov 2020 17:09:12 +0000 Subject: [PATCH] Remove IUseItem for now until I can come up with a good way of doing it --- .../ellpeck/actuallyadditions/common/items/IUseItem.java | 7 ------- .../common/items/useables/LeafBlowerItem.java | 8 +------- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 src/main/java/de/ellpeck/actuallyadditions/common/items/IUseItem.java diff --git a/src/main/java/de/ellpeck/actuallyadditions/common/items/IUseItem.java b/src/main/java/de/ellpeck/actuallyadditions/common/items/IUseItem.java deleted file mode 100644 index 3aca58d9c..000000000 --- a/src/main/java/de/ellpeck/actuallyadditions/common/items/IUseItem.java +++ /dev/null @@ -1,7 +0,0 @@ -package de.ellpeck.actuallyadditions.common.items; - -import net.minecraft.item.ItemStack; - -public interface IUseItem { - boolean canUse(ItemStack stack); -} diff --git a/src/main/java/de/ellpeck/actuallyadditions/common/items/useables/LeafBlowerItem.java b/src/main/java/de/ellpeck/actuallyadditions/common/items/useables/LeafBlowerItem.java index 88b51ba17..59b824510 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/common/items/useables/LeafBlowerItem.java +++ b/src/main/java/de/ellpeck/actuallyadditions/common/items/useables/LeafBlowerItem.java @@ -1,7 +1,6 @@ package de.ellpeck.actuallyadditions.common.items.useables; import de.ellpeck.actuallyadditions.common.items.ActuallyItem; -import de.ellpeck.actuallyadditions.common.items.IUseItem; import net.minecraft.block.Block; import net.minecraft.block.BushBlock; import net.minecraft.block.LeavesBlock; @@ -18,7 +17,7 @@ import net.minecraftforge.common.IForgeShearable; import java.util.ArrayList; import java.util.Collections; -public class LeafBlowerItem extends ActuallyItem implements IUseItem { +public class LeafBlowerItem extends ActuallyItem { private final boolean isAdvanced; public LeafBlowerItem(boolean isAdvanced) { @@ -81,9 +80,4 @@ public class LeafBlowerItem extends ActuallyItem implements IUseItem { public int getUseDuration(ItemStack stack) { return Integer.MAX_VALUE; } - - @Override - public boolean canUse(ItemStack stack) { - return true; // todo: add energy logic - } }