worksWith
public boolean worksWith(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side)
Used to determine the block types this driver handles.
This is used to determine which driver to use for a block placed next to
an Adapter block. Note that the return value should not change
over time; if it does, though, an already installed component will not
be removed, since this value is only checked when scanning blocks. You
can force this by sending a neighbor block change notification.
The side is relative to the block, i.e. "south" is the side of the block
facing south.
- Specified by:
worksWith
in interface DriverBlock
- Parameters:
world
- the world in which the block to check lives.
pos
- the position coordinate of the block to check.
side
- the side of the block to check.
- Returns:
- true if the block is supported; false otherwise.