22 lines
513 B
Java
22 lines
513 B
Java
|
package appeng.integration.modules.BCHelpers;
|
||
|
|
||
|
import net.minecraftforge.common.util.ForgeDirection;
|
||
|
import appeng.util.Platform;
|
||
|
import buildcraft.api.blueprints.IBuilderContext;
|
||
|
import buildcraft.api.blueprints.SchematicBlock;
|
||
|
|
||
|
public class AERotateableBlockSchematic extends SchematicBlock
|
||
|
{
|
||
|
|
||
|
@Override
|
||
|
public void rotateLeft(IBuilderContext context)
|
||
|
{
|
||
|
if ( meta < 6 )
|
||
|
{
|
||
|
ForgeDirection d = Platform.rotateAround( ForgeDirection.values()[meta], ForgeDirection.DOWN );
|
||
|
meta = d.ordinal();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|