Remove IUseItem for now until I can come up with a good way of doing it

This commit is contained in:
Michael Hillcox 2020-11-29 17:09:12 +00:00
parent 500117bb7a
commit 1c97d71946
No known key found for this signature in database
GPG key ID: 971C5B254742488F
2 changed files with 1 additions and 14 deletions

View file

@ -1,7 +0,0 @@
package de.ellpeck.actuallyadditions.common.items;
import net.minecraft.item.ItemStack;
public interface IUseItem {
boolean canUse(ItemStack stack);
}

View file

@ -1,7 +1,6 @@
package de.ellpeck.actuallyadditions.common.items.useables; package de.ellpeck.actuallyadditions.common.items.useables;
import de.ellpeck.actuallyadditions.common.items.ActuallyItem; import de.ellpeck.actuallyadditions.common.items.ActuallyItem;
import de.ellpeck.actuallyadditions.common.items.IUseItem;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.block.BushBlock; import net.minecraft.block.BushBlock;
import net.minecraft.block.LeavesBlock; import net.minecraft.block.LeavesBlock;
@ -18,7 +17,7 @@ import net.minecraftforge.common.IForgeShearable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
public class LeafBlowerItem extends ActuallyItem implements IUseItem { public class LeafBlowerItem extends ActuallyItem {
private final boolean isAdvanced; private final boolean isAdvanced;
public LeafBlowerItem(boolean isAdvanced) { public LeafBlowerItem(boolean isAdvanced) {
@ -81,9 +80,4 @@ public class LeafBlowerItem extends ActuallyItem implements IUseItem {
public int getUseDuration(ItemStack stack) { public int getUseDuration(ItemStack stack) {
return Integer.MAX_VALUE; return Integer.MAX_VALUE;
} }
@Override
public boolean canUse(ItemStack stack) {
return true; // todo: add energy logic
}
} }