li.cil.oc.api
public interface Rotatable
Item.createEnvironment(net.minecraft.item.ItemStack, net.minecraft.tileentity.TileEntity)
method.| Modifier and Type | Method and Description |
|---|---|
net.minecraftforge.common.ForgeDirection |
facing()
The current facing of a tile entity implementing this interface.
|
net.minecraftforge.common.ForgeDirection facing()
class SomeDriver implements li.cil.oc.api.driver.Item {
// ...
ManagedEnvironment createEnvironment(ItemStack stack, TileEntity tileentity) {
if (tileentity instanceof Rotatable) {
ForgeDirection facing = ((Rotatable)tileentity).facing();
// Do something with facing.
}
}
}