Exemple #1
0
  /** Creates an Icon for a non-BlockFamily class */
  public Icon() {
    _element = new UIGraphicsElement("items");
    _blockFamily = null;

    _element.setSize(new Vector2f(32, 32));
    _element.getTextureSize().set(new Vector2f(0.0624f, 0.0624f));
    _element.setVisible(true);
    _element.setPosition(new Vector2f(-10f, -16f));

    setAtlasPosition(0, 0);
  }