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