Class FabricModJsonV1Spec.Icon

java.lang.Object
net.fabricmc.loom.api.fmj.FabricModJsonV1Spec.Icon
Enclosing class:
FabricModJsonV1Spec

public abstract static class FabricModJsonV1Spec.Icon extends Object
  • Constructor Details

    • Icon

      public Icon()
  • Method Details

    • getPath

      @Input public abstract org.gradle.api.provider.Property<String> getPath()
      The path to the icon file, relative to the root of the mod JAR.
      Returns:
      A Property containing a String representing the icon path
    • getSize

      @Input @Optional public abstract org.gradle.api.provider.Property<Integer> getSize()
      The size of the icon in pixels (e.g. 16, 32, 64).

      If not specified, the icon is considered to be "unsized". Only one unsized icon is allowed.

      Returns:
      A Property containing an Integer representing the icon size