Applied-Energistics-2-tiler.../src/main/java/appeng/integration/modules/BCHelpers/AERotatableBlockSchematic.java

22 lines
512 B
Java
Raw Normal View History

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
{
@Override
public void rotateLeft(IBuilderContext context)
{
if ( meta < 6 )
{
ForgeDirection d = Platform.rotateAround( ForgeDirection.values()[meta], ForgeDirection.DOWN );
meta = d.ordinal();
}
}
}