Package appeng.integration.modules.BCHelpers

Source Code of appeng.integration.modules.BCHelpers.AERotatableBlockSchematic

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 AERotatableBlockSchematic extends SchematicBlock
{

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

}
TOP

Related Classes of appeng.integration.modules.BCHelpers.AERotatableBlockSchematic

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.