PrettyPipes/src/main/java/de/ellpeck/prettypipes/pipe/IPipeConnectable.java

19 lines
512 B
Java
Raw Normal View History

2020-04-19 17:38:13 +02:00
package de.ellpeck.prettypipes.pipe;
import net.minecraft.item.ItemStack;
2020-04-19 17:38:13 +02:00
import net.minecraft.util.Direction;
import net.minecraft.util.math.BlockPos;
public interface IPipeConnectable {
2020-10-17 14:29:37 +02:00
ConnectionType getConnectionType(BlockPos pipePos, Direction direction);
2020-04-19 17:38:13 +02:00
2020-10-17 14:29:37 +02:00
default ItemStack insertItem(BlockPos pipePos, Direction direction, ItemStack stack, boolean simulate) {
2020-10-15 04:15:52 +02:00
return stack;
}
2020-10-17 14:29:37 +02:00
default boolean allowsModules(BlockPos pipePos, Direction direction) {
return false;
}
2020-04-19 17:38:13 +02:00
}