Class EnumProxy<T extends Enum<T> & IExtensibleEnum>

java.lang.Object
net.neoforged.fml.common.asm.enumextension.EnumProxy<T>

public final class EnumProxy<T extends Enum<T> & IExtensibleEnum> extends Object
Combined list of parameters used to create a new enum constant and mutable holder of the created enum constant
  • Field Details

  • Constructor Details

    • EnumProxy

      public EnumProxy(Class<T> enumClass, Object... parameters)
    • EnumProxy

      public EnumProxy(Class<T> enumClass, List<Object> parameters)
  • Method Details

    • getParameter

      @Internal public Object getParameter(int idx)
    • getValue

      public T getValue()
      Returns the created enum constant, ensuring the containing enum is loaded if the value was not set yet.
      Returns:
      the created enum constant, ensuring the containing enum is loaded if the value was not set yet
    • setValue

      @Internal public void setValue(T value)