mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-11 07:47:55 +00:00
* Use new interface terminal API * Update dependencies.gradle * feat: Update core hooks and integrations * api: Add `LevelTerminalRegistry` functionality * feat: Use `customName` to display in `GuiFluidLevelEmitter` * feat: Rework scheduling and data storage in `TileLevelMaintainer` functionality * feat: Add new item `LevelTerminal` * feat: Support back navigation functionality * feat: add back navigation in `LevelMaintainer` from terminal * use `IGuiTooltipHandler` directly from ae2 include #160 * fix correct `InterfaceTerminalSupportedClassProvider` deprecation * Implement new version of `InterfaceWireless` based on `InterfaceTerminal` * Fix `LevelTerminal` data recursion and few in fixes gui * Use `aeRenderItem` directly and fix `zIndex` in custom slots * Fix rendering numbers bigger than 2.1G through `aeRenderItem` * Fix fails on `getCraftingItem` no root cause was found * Fix add packet logging and try to not fail after receive corrupted packet * Fix add logging around empty configuration * Fix packet corruption and log invalid data * Fix packet corruption with level emitters * Correct handle overwrite packet * Fix intercept dnd click from GT5 hook for `AppEngGuiHandler` keyword `net.bdew.neiaddons.appeng.AppEngGuiHandler` * update be+deps * Update dependencies.gradle * Update dependencies.gradle * Fix `zIndexes` for compatability with `DuraDisplay` * Update AE2 and fix compatability * Change `ForgeDirection` side serialization to `byte` * Fix tooltip zIndexes * Rename all rest parts related to `Level terminal` * Code cleanup after review * Remove duplicated dependency declaration --------- Co-authored-by: Firenoo <49818773+firenoo@users.noreply.github.com> Co-authored-by: Martin Robertz <dream-master@gmx.net>
54 lines
1.5 KiB
Java
54 lines
1.5 KiB
Java
package com.glodblock.github.api;
|
|
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
|
|
import net.minecraftforge.fluids.Fluid;
|
|
|
|
import com.glodblock.github.api.registries.ILevelTerminalRegistry;
|
|
import com.glodblock.github.coremod.registries.LevelTerminalRegistry;
|
|
|
|
public final class FluidCraftAPI implements IFluidCraftAPI {
|
|
|
|
private static final FluidCraftAPI API = new FluidCraftAPI();
|
|
|
|
/**
|
|
* These fluids will not be allowed to be stored in fluid storage cells.
|
|
*/
|
|
private final Set<Class<? extends Fluid>> blacklistedFluids = new HashSet<>();
|
|
|
|
/**
|
|
* These fluids will not be displayed in a fluid terminal.
|
|
*/
|
|
private final Set<Class<? extends Fluid>> blacklistedDispFluids = new HashSet<>();
|
|
|
|
public static FluidCraftAPI instance() {
|
|
return API;
|
|
}
|
|
|
|
@Override
|
|
public void blacklistFluidInStorage(Class<? extends Fluid> fluid) {
|
|
blacklistedFluids.add(fluid);
|
|
}
|
|
|
|
@Override
|
|
public void blacklistFluidInDisplay(Class<? extends Fluid> fluid) {
|
|
blacklistedDispFluids.add(fluid);
|
|
}
|
|
|
|
@Override
|
|
public boolean isBlacklistedInStorage(Class<? extends Fluid> fluid) {
|
|
return blacklistedFluids.contains(fluid);
|
|
}
|
|
|
|
@Override
|
|
public boolean isBlacklistedInDisplay(Class<? extends Fluid> fluid) {
|
|
return blacklistedDispFluids.contains(fluid);
|
|
}
|
|
|
|
@Override
|
|
public ILevelTerminalRegistry levelTerminalRegistry() {
|
|
return LevelTerminalRegistry.instance();
|
|
}
|
|
}
|