Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item fluid api removal #1

Merged
merged 3 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
192 changes: 0 additions & 192 deletions common/src/main/java/tesseract/FluidPlatformUtils.java

This file was deleted.

18 changes: 0 additions & 18 deletions common/src/main/java/tesseract/TesseractCapUtils.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
package tesseract;

import earth.terrarium.botarium.common.fluid.base.PlatformFluidHandler;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.entity.BlockEntity;
import tesseract.api.fluid.IFluidNode;
import tesseract.api.gt.IEnergyHandler;
import tesseract.api.gt.IEnergyHandlerItem;
import tesseract.api.heat.IHeatHandler;
import tesseract.api.item.IItemNode;
import tesseract.api.item.PlatformItemHandler;

import java.util.Optional;
import java.util.ServiceLoader;
Expand All @@ -28,16 +22,4 @@ public interface TesseractCapUtils {


Optional<IHeatHandler> getHeatHandler(BlockEntity entity, Direction side);


Optional<PlatformItemHandler> getItemHandler(BlockEntity entity, Direction side);


Optional<PlatformFluidHandler> getFluidHandler(Level level, BlockPos pos, Direction side);


IFluidNode getFluidNode(Level level, long pos, Direction capSide, Runnable capCallback);


IItemNode getItemNode(Level level, long pos, Direction capSide, Runnable capCallback);
}
11 changes: 0 additions & 11 deletions common/src/main/java/tesseract/TesseractGraphWrappers.java
Original file line number Diff line number Diff line change
@@ -1,32 +1,21 @@
package tesseract;

import tesseract.api.GraphWrapper;
import tesseract.api.fluid.FluidTransaction;
import tesseract.api.fluid.IFluidNode;
import tesseract.api.fluid.IFluidPipe;
import tesseract.api.gt.GTTransaction;
import tesseract.api.gt.IGTCable;
import tesseract.api.gt.IGTNode;
import tesseract.api.heat.HeatController;
import tesseract.api.heat.HeatTransaction;
import tesseract.api.heat.IHeatNode;
import tesseract.api.heat.IHeatPipe;
import tesseract.api.item.IItemNode;
import tesseract.api.item.IItemPipe;
import tesseract.api.item.ItemController;
import tesseract.api.item.ItemTransaction;
import tesseract.api.rf.IRFCable;
import tesseract.api.rf.IRFNode;
import tesseract.api.rf.RFController;
import tesseract.api.rf.RFTransaction;
import tesseract.controller.Energy;
import tesseract.controller.Fluid;
import tesseract.graph.INode;

public class TesseractGraphWrappers {
public static final GraphWrapper<HeatTransaction, IHeatPipe, IHeatNode> HEAT_CONTROLLER = new GraphWrapper<>(HeatController::new, IHeatNode.GETTER);
public static final GraphWrapper<FluidTransaction, IFluidPipe, IFluidNode> FLUID = new GraphWrapper<>(Fluid::new, IFluidNode.GETTER);
public static final GraphWrapper<ItemTransaction, IItemPipe, IItemNode> ITEM = new GraphWrapper<>(ItemController::new, IItemNode.GETTER);

public static final GraphWrapper<RFTransaction, IRFCable, IRFNode> RF = new GraphWrapper<>(RFController::new, IRFNode.GETTER);
public static long dropletMultiplier = TesseractPlatformUtils.INSTANCE.isForge() ? 1L : 81L;
Expand Down
Loading