Class PredicateEntry
java.lang.Object
net.dillon.dillonlib.mixinplugin.PredicateEntry
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 Summary
Modifier and TypeMethodDescriptionbooleanstatic String[]String[]mixins()static String[]static PredicateEntryof(String[] mixins, boolean condition, String reason, MessageType messageType) Creates a newPredicateEntry.static PredicateEntryCreates a newPredicateEntry, with adebugmessage type.static PredicateEntryCreates a newPredicateEntry, with aerrormessage type.static PredicateEntryCreates a newPredicateEntry, with ainfomessage type.static PredicateEntryCreates a newPredicateEntry, with awarnmessage type.reason()static String[]static String[]
-
Method Details
-
of
public static PredicateEntry of(String[] mixins, boolean condition, String reason, MessageType messageType) Creates a newPredicateEntry. -
ofInfo
Creates a newPredicateEntry, with ainfomessage type. -
ofWarn
Creates a newPredicateEntry, with awarnmessage type. -
ofDebug
Creates a newPredicateEntry, with adebugmessage type. -
ofError
Creates a newPredicateEntry, with aerrormessage type. -
single
-
ddouble
-
triple
-
multiple
-
mixins
- Returns:
- the mixins to check.
-
condition
public boolean condition()- Returns:
- the condition for if the mixin(s) should be applied.
-
reason
- Returns:
- the reason the mixin isn't being applied.
-
messageType
- Returns:
- the type of message to send.
-