mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-05 00:29:08 +01:00
Remove IUseItem for now until I can come up with a good way of doing it
This commit is contained in:
parent
500117bb7a
commit
1c97d71946
2 changed files with 1 additions and 14 deletions
|
@ -1,7 +0,0 @@
|
|||
package de.ellpeck.actuallyadditions.common.items;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public interface IUseItem {
|
||||
boolean canUse(ItemStack stack);
|
||||
}
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue