public int add(RenderPart part, int zIndex) { part.setZIndex(zIndex); parts.add(part); return parts.size() - 1; }
@Override public int compareTo(RenderPart arg0) { return arg0.getZIndex() - getZIndex(); }