public interface DriverBlock
TileEntity
implement one of the interfaces
for environments (Environment
or
SidedEnvironment
).
ManagedEnvironment
that is
managed by the adapter.
Modifier and Type | Method and Description |
---|---|
ManagedEnvironment |
createEnvironment(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side)
Create a new managed environment interfacing the specified block.
|
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.
|
boolean worksWith(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.Direction side)
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.ManagedEnvironment createEnvironment(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.Direction side)
world
- the world containing the block to get the environment for.pos
- the position coordinate of the block to check.side
- the side of the block to check.