Package thaumic.tinkerer.common.core.golems

Examples of thaumic.tinkerer.common.core.golems.EnumGolemDecorations


  public Object[] getGolemDecorationsImplementation() throws Exception {
    if (golem == null || golem.decoration == null || golem.decoration.length() == 0)
      return new String[]{ };
    HashMap<Double, String> decorations = new HashMap<Double, String>();
    for (int i = 0; i < golem.decoration.length(); i++) {
      EnumGolemDecorations golemDec = EnumGolemDecorations.getFromChar(golem.decoration.charAt(i));
      if (golemDec == null)
        throw new Exception("Golem is wearing unknown accessory: " + golem.decoration.charAt(i));
      decorations.put((double) i, StatCollector.translateToLocal(golemDec.getName()));
    }

    return new Object[]{ decorations };

  }
View Full Code Here

TOP

Related Classes of thaumic.tinkerer.common.core.golems.EnumGolemDecorations

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.