Remove terminal type filter

This commit is contained in:
Kogepan229 committed 2025-10-30 22:09:12 +09:00
1 parent cdc86aaca9
commit 3107ecf1c0
3 files changed
-45

No files matched your search

@@ -1,33 +0,0 @@
package com.glodblock.github.loader.filter;
import static appeng.api.config.TypeFilter.ALL;
import net.minecraft.item.Item;
import com.glodblock.github.common.item.ItemFluidDrop;
import appeng.api.config.TypeFilter;
import appeng.api.storage.data.IAEItemStack;
import appeng.api.storage.data.IAEStack;
public class FluidFilter {
public static boolean filter(TypeFilter typeFilter, IAEStack<?> stack) {
if (typeFilter == ALL) return true;
if (stack instanceof IAEItemStack) {
Item item = ((IAEItemStack) stack).getItem();
if (item != null) {
switch (typeFilter) {
case ITEMS -> {
return !(item instanceof ItemFluidDrop);
}
case FLUIDS -> {
return item instanceof ItemFluidDrop;
}
default -> {}
}
}
}
return true;
}
}