Suppress unused warnings

This commit is contained in:
DBotThePony 2021-12-29 16:34:02 +07:00
parent 87deafd512
commit 65179ca9e9
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -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;
};
}
}