Package forestry.core

Examples of forestry.core.EnumErrorCode.ordinal()


    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

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.