Enum Class Interface.Remap

java.lang.Object
java.lang.Enum<Interface.Remap>
org.spongepowered.asm.mixin.Interface.Remap
All Implemented Interfaces:
Serializable, Comparable<Interface.Remap>, Constable
Enclosing class:
Interface

public static enum Interface.Remap extends Enum<Interface.Remap>
Describes the remapping strategy applied to methods matching this interface.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Attempt to remap all members of this interface which are declared in the annotated mixin, including non-prefixed methods which match.
    Attempt to remap all members of this interface which are declared in the annotated mixin, including non-prefixed methods which match.
    Do not remap members matching this interface.
    Remap only methods in the annotated mixin which are prefixed with the declared prefix.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether this remap type should force remapping
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ALL

      public static final Interface.Remap ALL
      Attempt to remap all members of this interface which are declared in the annotated mixin, including non-prefixed methods which match.
    • FORCE

      public static final Interface.Remap FORCE
      Attempt to remap all members of this interface which are declared in the annotated mixin, including non-prefixed methods which match. If mappings are not located for a member method, raise a compile-time error.
    • ONLY_PREFIXED

      public static final Interface.Remap ONLY_PREFIXED
      Remap only methods in the annotated mixin which are prefixed with the declared prefix. Note that if no prefix is defined, this has the same effect as NONE
    • NONE

      public static final Interface.Remap NONE
      Do not remap members matching this interface. (Equivalent to remap=false on other remappable annotations)
  • Method Details

    • values

      public static Interface.Remap[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Interface.Remap valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forceRemap

      public boolean forceRemap()
      Returns whether this remap type should force remapping