public abstract class DriverSidedBlock extends java.lang.Object implements DriverBlock
worksWith(World, BlockPos, EnumFacing)
and calling super.worksWith in addition to the side check.ManagedEnvironment| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.item.ItemStack[] |
blocks |
| Modifier | Constructor and Description |
|---|---|
protected |
DriverSidedBlock(net.minecraft.item.ItemStack... blocks) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
worksWith(net.minecraft.block.Block referenceBlock,
int referenceMetadata) |
boolean |
worksWith(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
Used to determine the block types this driver handles.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateEnvironmentprotected DriverSidedBlock(net.minecraft.item.ItemStack... blocks)
public boolean worksWith(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
DriverBlockworksWith in interface DriverBlockworld - 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.protected boolean worksWith(net.minecraft.block.Block referenceBlock,
int referenceMetadata)