2014-05-11 18:28:34 +02:00
|
|
|
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;
|
|
|
|
|
2014-09-20 23:38:49 +02:00
|
|
|
public class AERotatableBlockSchematic extends SchematicBlock
|
2014-05-11 18:28:34 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void rotateLeft(IBuilderContext context)
|
|
|
|
{
|
|
|
|
if ( meta < 6 )
|
|
|
|
{
|
|
|
|
ForgeDirection d = Platform.rotateAround( ForgeDirection.values()[meta], ForgeDirection.DOWN );
|
|
|
|
meta = d.ordinal();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|