2020-04-19 17:38:13 +02:00
|
|
|
package de.ellpeck.prettypipes.pipe;
|
|
|
|
|
2020-05-09 01:00:59 +02:00
|
|
|
import de.ellpeck.prettypipes.network.PipeItem;
|
2020-04-19 17:38:13 +02:00
|
|
|
import net.minecraft.block.BlockState;
|
2020-05-09 01:00:59 +02:00
|
|
|
import net.minecraft.item.ItemStack;
|
2020-04-19 17:38:13 +02:00
|
|
|
import net.minecraft.util.Direction;
|
|
|
|
import net.minecraft.util.math.BlockPos;
|
|
|
|
import net.minecraft.world.World;
|
2020-05-07 21:10:29 +02:00
|
|
|
import net.minecraftforge.items.IItemHandler;
|
2020-04-19 17:38:13 +02:00
|
|
|
|
|
|
|
public interface IPipeConnectable {
|
|
|
|
|
2020-05-09 01:00:59 +02:00
|
|
|
ConnectionType getConnectionType(World world, BlockPos pipePos, Direction direction);
|
2020-04-19 17:38:13 +02:00
|
|
|
|
2020-10-15 04:15:52 +02:00
|
|
|
default ItemStack insertItem(World world, BlockPos pipePos, Direction direction, ItemStack stack, boolean simulate) {
|
|
|
|
return stack;
|
2020-05-09 01:00:59 +02:00
|
|
|
}
|
2020-05-17 15:29:10 +02:00
|
|
|
|
|
|
|
default boolean allowsModules(World world, BlockPos pipePos, Direction direction) {
|
|
|
|
return false;
|
|
|
|
}
|
2020-04-19 17:38:13 +02:00
|
|
|
}
|