diff options
author | miozune <miozune@gmail.com> | 2023-12-05 00:02:31 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 16:02:31 +0100 |
commit | 2a11aa84b61c1e5c97768edec81e9e9169315fa9 (patch) | |
tree | 8544d663c3318d4a4e1dcc9faf8ebc5357e13e7a /src/main/java/gregtech/api/interfaces | |
parent | 6624299effd1eee77b0e90c45d32f6279ff5c821 (diff) | |
download | GT5-Unofficial-2a11aa84b61c1e5c97768edec81e9e9169315fa9.tar.gz GT5-Unofficial-2a11aa84b61c1e5c97768edec81e9e9169315fa9.tar.bz2 GT5-Unofficial-2a11aa84b61c1e5c97768edec81e9e9169315fa9.zip |
Add API to limit number of recipe outputs (#2390)
Diffstat (limited to 'src/main/java/gregtech/api/interfaces')
-rw-r--r-- | src/main/java/gregtech/api/interfaces/tileentity/IVoidable.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IVoidable.java b/src/main/java/gregtech/api/interfaces/tileentity/IVoidable.java index 72dda0ddec..841fd07bba 100644 --- a/src/main/java/gregtech/api/interfaces/tileentity/IVoidable.java +++ b/src/main/java/gregtech/api/interfaces/tileentity/IVoidable.java @@ -58,6 +58,22 @@ public interface IVoidable { List<? extends IFluidStore> getFluidOutputSlots(FluidStack[] toOutput); /** + * @return How many slots of items this machine can output per recipe. Item outputs whose slot number + * exceeding this limit will be voided. + */ + default int getItemOutputLimit() { + return Integer.MAX_VALUE; + } + + /** + * @return How many slots of fluids this machine can output per recipe. Fluid outputs whose slot number + * exceeding this limit will be voided. + */ + default int getFluidOutputLimit() { + return Integer.MAX_VALUE; + } + + /** * @return If this machine has ability to dump item outputs to ME network. * This doesn't need to check if it can actually dump to ME, * as this might be called every tick and cause lag. |