public final class PipeConnectionAPI
extends java.lang.Object
Constructor and Description |
---|
PipeConnectionAPI() |
Modifier and Type | Method and Description |
---|---|
static ICustomPipeConnection |
getCustomConnection(net.minecraft.block.Block block)
Gets the current custom connection that the block uses.
|
static void |
registerConnection(net.minecraft.block.Block block,
ICustomPipeConnection connection)
Register a block with a custom connection.
|
static void |
registerConnectionAsNothing(net.minecraft.block.Block block)
Ensures that a particular block will always have the default connection, no matter what the bounding box the the
block is.
|
public static void registerConnection(net.minecraft.block.Block block, ICustomPipeConnection connection)
block
- The block instanceconnection
- The connection instancepublic static void registerConnectionAsNothing(net.minecraft.block.Block block)
public static ICustomPipeConnection getCustomConnection(net.minecraft.block.Block block)