mirror of
https://github.com/RoBaertschi/EnvironmentTech.git
synced 2025-04-19 23:03:28 +00:00
42 lines
1.4 KiB
Java
42 lines
1.4 KiB
Java
/*
|
|
* EnvironmentTech MC Mod
|
|
Copyright (C) 2024 Robin Bärtschi and Contributors
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Lesser General Public License as published by
|
|
the Free Software Foundation, by version 3 of the License.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
package robaertschi.environmenttech.data.capabilities;
|
|
|
|
/**
|
|
* ENV is pushed based, so you should not be able to extract ENV from anything.
|
|
* This is the reason for the nonexistent extract method.
|
|
*/
|
|
@SuppressWarnings("unused")
|
|
public interface IEnvStorage {
|
|
/**
|
|
* Receive ENV.
|
|
* @param amount The Amount of ENV to receive.
|
|
* @param simulate If the operation is to only be simulated and not affect the storage amount
|
|
* @return How much energy was accepted.
|
|
*/
|
|
long receiveEnv(long amount, boolean simulate);
|
|
|
|
long getEnvStored();
|
|
long getMaxEnv();
|
|
|
|
|
|
/**
|
|
* @return Which ENVType's that are supported.
|
|
*/
|
|
EnvType[] canAcceptEnvType();
|
|
}
|