Package thaumcraft.common.entities.golems

Examples of thaumcraft.common.entities.golems.Marker


    if (golem == null)
      return new String[]{ };
    ArrayList<Marker> markers = golem.getMarkers();
    if (markers == null || markers.size() <= arguments)
      throw new Exception("marker " + (int) (double) arguments + " does not exist");
    Marker mark = markers.get((int) (double) arguments);

    return new Object[]{ fromMarkerImplementation(mark) };
  }
View Full Code Here


    if (golem == null)
      return new String[]{ };
    ArrayList<Marker> markers = golem.getMarkers();
    if (markers == null || markers.size() <= markerNum)
      throw new Exception("marker " + (int) (double) markerNum + " does not exist");
    Marker mark = toMarkerImplementation(markerArg);
    markers.set((int) (double) markerNum, mark);
    golem.setMarkers(markers);
    return getMarkerImplementation(markerNum);
  }
View Full Code Here

    if (golem == null)
      return new String[]{ };
    ArrayList<Marker> markers = golem.getMarkers();
    if (markers == null)
      markers = new ArrayList<Marker>();
    Marker mark = toMarkerImplementation(arguments);
    markers.add(mark);
    golem.setMarkers(markers);
    return getMarkerImplementation((double) (markers.size() - 1));
  }
View Full Code Here

      return new String[]{ };

    ArrayList<Marker> arrList = new ArrayList<Marker>();

    for (Object map : arguments.values()) {
      Marker mark = toMarkerImplementation((Map) map);

      arrList.add(mark);

    }
    golem.setMarkers(arrList);
View Full Code Here

    double posY = (Double) markerMap.get("posY");
    double posZ = (Double) markerMap.get("posZ");
    double dim = (Double) markerMap.get("dim");
    double side = (Double) markerMap.get("side");
    double color = (Double) markerMap.get("color");
    return new Marker((int) posX, (int) posY, (int) posZ, (int) dim, (byte) side, (byte) color);
  }
View Full Code Here

TOP

Related Classes of thaumcraft.common.entities.golems.Marker

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.