Class ModAnnotation

java.lang.Object
net.minecraftforge.fml.loading.moddiscovery.ModAnnotation

public class ModAnnotation extends Object
  • Field Details

    • type

      private final ElementType type
    • asmType

      private final org.objectweb.asm.Type asmType
    • member

      private final String member
    • values

      private final Map<String,​Object> values
    • arrayList

      private ArrayList<Object> arrayList
    • arrayName

      private String arrayName
  • Constructor Details

    • ModAnnotation

      public ModAnnotation(ElementType type, org.objectweb.asm.Type asmType, String member)
    • ModAnnotation

      public ModAnnotation(org.objectweb.asm.Type asmType, ModAnnotation parent)
  • Method Details

    • fromModAnnotation

      public static net.minecraftforge.forgespi.language.ModFileScanData.AnnotationData fromModAnnotation(org.objectweb.asm.Type clazz, ModAnnotation annotation)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getType

      public ElementType getType()
    • getASMType

      public org.objectweb.asm.Type getASMType()
    • getMember

      public String getMember()
    • getValues

      public Map<String,​Object> getValues()
    • addArray

      public void addArray(String name)
    • addProperty

      public void addProperty(String key, Object value)
    • addEnumProperty

      public void addEnumProperty(String key, String enumName, String value)
    • endArray

      public void endArray()
    • addChildAnnotation

      public ModAnnotation addChildAnnotation(String name, String desc)