public interface SidedEnvironment
ISidedInventory
is to
IInventory
, it allows an environment to
specify different node access for its different sides.
Network.joinOrCreateNetwork(TileEntity)
. It is
used by the keyboard to only interface with the side on which it is attached,
as well as the switch to offer a different node for each side.Modifier and Type | Method and Description |
---|---|
boolean |
canConnect(net.minecraft.util.Direction side)
Whether the environment provides a node to connect to on the specified
side.
|
Node |
sidedNode(net.minecraft.util.Direction side)
The node this environment uses for the specified side.
|
Node sidedNode(net.minecraft.util.Direction side)
Environment.node()
method.
side
- the side to get the node for.Environment.node()
boolean canConnect(net.minecraft.util.Direction side)
sidedNode(net.minecraft.util.Direction)
, and for each side it
returns true for it should return a node.
side
- the side to check for.