Examples of allowYAxisFacing()


Examples of cofh.api.tileentity.IReconfigurableFacing.allowYAxisFacing()

    }
    if (tile instanceof IReconfigurableFacing) {
      IReconfigurableFacing reconfig = (IReconfigurableFacing) tile;
      int quadrant = MathHelper.floor(living.rotationYaw * 4.0F / 360.0F + 0.5D) & 3;

      if (reconfig.allowYAxisFacing()) {
        quadrant = living.rotationPitch > 60 ? 4 : living.rotationPitch < -60 ? 5 : quadrant;
      }
      switch (quadrant) {
      case 0:
        reconfig.setFacing(2);
View Full Code Here
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.