Package forestry.core

Examples of forestry.core.EnumErrorCode


    }

    resetQueen(queen);

    // Not while raining, at night or without light
    EnumErrorCode state = EnumErrorCode.values()[queen.isWorking(housing)];
    if (state != EnumErrorCode.OK) {
      housing.setErrorState(state.ordinal());
      return;
    } else if (housing.getErrorOrdinal() != EnumErrorCode.NOFLOWER.ordinal())
      housing.setErrorState(EnumErrorCode.OK.ordinal());

    // Effects only fire when queen can work.
View Full Code Here


    overlayColor = manager.gui.fontColor.get("ledger.error.background");
  }

  @Override
  public void draw(int x, int y) {
    EnumErrorCode state = tile.getErrorState();
    if (state == EnumErrorCode.OK)
      return;

    // Draw background
    drawBackground(x, y);

    // Draw icon
    drawIcon(state.getIcon(), x + 3, y + 4);

    // Write description if fully opened
    if (isFullyOpened()) {
      // fontRendererObj.drawStringWithShadow(getTooltip(), x + 22, y +
      // 8, 0xe1c92f);
View Full Code Here

    }
  }

  @Override
  public boolean isVisible() {
    EnumErrorCode state = tile.getErrorState();
    if (state == EnumErrorCode.OK)
      return false;
    else
      return true;
  }
View Full Code Here

  public void updateServerSide() {

    if (!isLinked() || worldObj.getTotalWorldTime() % 4 != 0)
      return;

    EnumErrorCode errorCode = EnumErrorCode.OK;

    if (!hasPostageMin(3))
      errorCode = EnumErrorCode.NOSTAMPS;

    if (!hasPaperMin(2)) {
View Full Code Here

TOP

Related Classes of forestry.core.EnumErrorCode

Copyright © 2018 www.massapicom. 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.