mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-17 02:45:08 +00:00
* Add an API to allow other mods to blacklist fluids from this mod. * Removed Thaumic Energistics config setting. This will be handled by Thaumic Energistic's side (which also happens to have a config setting). * Added an API that allows for blacklisting fluids from either the storage or the display individually. * Prevent blacklisted fluids from being discretized * Update API usage - use AE2's new API - use ThE's config setting for aspect -> gas * spotlessApply --------- Co-authored-by: GitHub GTNH Actions <unknown>
28 lines
801 B
Java
28 lines
801 B
Java
package com.glodblock.github.api;
|
|
|
|
import net.minecraftforge.fluids.Fluid;
|
|
|
|
@SuppressWarnings("unused")
|
|
public interface IFluidCraftAPI {
|
|
|
|
/**
|
|
* Blacklisted fluids will not be allowed to be added to a storage cell.
|
|
*/
|
|
void blacklistFluidInStorage(Class<? extends Fluid> fluid);
|
|
|
|
/**
|
|
* Blacklisted fluids will not be displayed in fluid terminals.
|
|
*/
|
|
void blacklistFluidInDisplay(Class<? extends Fluid> fluid);
|
|
|
|
/**
|
|
* Mostly for internal use; queries whether the fluid is blacklisted from storage cells.
|
|
*/
|
|
boolean isBlacklistedInStorage(Class<? extends Fluid> fluid);
|
|
|
|
/**
|
|
* Mostly for internal use; queries whether the fluid is blacklisted from being displayed.
|
|
*/
|
|
boolean isBlacklistedInDisplay(Class<? extends Fluid> fluid);
|
|
}
|