Removed superfluous IAEStack methods

This commit is contained in:
yueh
2020-07-07 12:12:48 +02:00
parent 92fb39d53a
commit 235fc2e81f
3 changed files with 1 additions and 31 deletions
@@ -179,17 +179,7 @@ public interface IAEStack<T extends IAEStack<T>> {
T empty(); T empty();
/** /**
* @return true if the stack is a {@link IAEItemStack} * @return The {@link IStorageChannel} backing this stack.
*/
boolean isItem();
/**
* @return true if the stack is a {@link IAEFluidStack}
*/
boolean isFluid();
/**
* @return ITEM or FLUID
*/ */
IStorageChannel<T> getChannel(); IStorageChannel<T> getChannel();
@@ -152,16 +152,6 @@ public final class AEFluidStack extends AEStack<IAEFluidStack> implements IAEFlu
return dup; return dup;
} }
@Override
public boolean isItem() {
return false;
}
@Override
public boolean isFluid() {
return true;
}
@Override @Override
public IStorageChannel<IAEFluidStack> getChannel() { public IStorageChannel<IAEFluidStack> getChannel() {
return AEApi.instance().storage().getStorageChannel(IFluidStorageChannel.class); return AEApi.instance().storage().getStorageChannel(IFluidStorageChannel.class);
@@ -152,16 +152,6 @@ public final class AEItemStack extends AEStack<IAEItemStack> implements IAEItemS
return new AEItemStack(this); return new AEItemStack(this);
} }
@Override
public boolean isItem() {
return true;
}
@Override
public boolean isFluid() {
return false;
}
@Override @Override
public IStorageChannel<IAEItemStack> getChannel() { public IStorageChannel<IAEItemStack> getChannel() {
return AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class); return AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class);