public abstract class DriverSidedBlock extends java.lang.Object implements SidedBlock
worksWith(World, int, int, int, ForgeDirection)
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,
int x,
int y,
int z,
net.minecraftforge.common.util.ForgeDirection 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.item.ItemStack... blocks)
public boolean worksWith(net.minecraft.world.World world, int x, int y, int z, net.minecraftforge.common.util.ForgeDirection side)
SidedBlock
worksWith
in interface SidedBlock
world
- the world in which the block to check lives.x
- the X coordinate of the block to check.y
- the Y coordinate of the block to check.z
- the Z coordinate of the block to check.side
- the side of the block to check.protected boolean worksWith(net.minecraft.block.Block referenceBlock, int referenceMetadata)