Suppress unused warnings
This commit is contained in:
parent
87deafd512
commit
65179ca9e9
@ -5,11 +5,11 @@ import net.minecraftforge.energy.IEnergyStorage;
|
||||
import ru.dbotthepony.mc.otm.core.Fraction;
|
||||
|
||||
import javax.annotation.ParametersAreNonnullByDefault;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
// IEnergyStorage for direct compat with Forge Energy
|
||||
@MethodsReturnNonnullByDefault
|
||||
@ParametersAreNonnullByDefault
|
||||
@SuppressWarnings("unused")
|
||||
public interface IMatteryEnergyStorage extends IEnergyStorage {
|
||||
// such as cables. This is something that would work only with energy storage
|
||||
Fraction extractEnergyOuter(Fraction howMuch, boolean simulate);
|
||||
@ -119,5 +119,5 @@ public interface IMatteryEnergyStorage extends IEnergyStorage {
|
||||
@Override
|
||||
default boolean canReceive() {
|
||||
return receiveEnergyOuter(Fraction.ONE, true).compareTo(Fraction.ZERO) > 0;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user