Class PredicateEntry

java.lang.Object
net.dillon.dillonlib.mixinplugin.PredicateEntry

public class PredicateEntry extends Object
A list of mapped mixin class names with booleans on whether the mixin should be enabled upon load time.

If the mapped boolean returns true, the every mapped mixin class id should be disabled.

Since:
1.0
  • Method Details

    • of

      public static PredicateEntry of(String[] mixins, boolean condition, String reason, MessageType messageType)
      Creates a new PredicateEntry.
    • ofInfo

      public static PredicateEntry ofInfo(String[] mixins, boolean condition, String reason)
      Creates a new PredicateEntry, with a info message type.
    • ofWarn

      public static PredicateEntry ofWarn(String[] mixins, boolean condition, String reason)
      Creates a new PredicateEntry, with a warn message type.
    • ofDebug

      public static PredicateEntry ofDebug(String[] mixins, boolean condition, String reason)
      Creates a new PredicateEntry, with a debug message type.
    • ofError

      public static PredicateEntry ofError(String[] mixins, boolean condition, String reason)
      Creates a new PredicateEntry, with a error message type.
    • single

      public static String[] single(String mixin)
      Returns:
      a string array with a single mixin.
    • ddouble

      public static String[] ddouble(String m1, String m2)
      Returns:
      a string array with only two mixins.
    • triple

      public static String[] triple(String m1, String m2, String m3)
      Returns:
      a string array with exactly three mixins.
    • multiple

      public static String[] multiple(String... mixins)
      Returns:
      a string array with multiple mixins.
    • mixins

      public String[] mixins()
      Returns:
      the mixins to check.
    • condition

      public boolean condition()
      Returns:
      the condition for if the mixin(s) should be applied.
    • reason

      public String reason()
      Returns:
      the reason the mixin isn't being applied.
    • messageType

      public MessageType messageType()
      Returns:
      the type of message to send.