public abstract class DriverSidedBlock extends java.lang.Object implements DriverBlock
worksWith(World, BlockPos, Direction)
and calling super.worksWith
in addition to the side check.ManagedEnvironment
Modifier and Type | Field and Description |
---|---|
protected net.minecraft.block.BlockState[] |
blocks |
Modifier | Constructor and Description |
---|---|
protected |
DriverSidedBlock(net.minecraft.block.BlockState... blocks) |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createEnvironment
protected DriverSidedBlock(net.minecraft.block.BlockState... blocks)
public boolean worksWith(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.Direction side)
DriverBlock
worksWith
in interface DriverBlock
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.