Package mcp.mobius.waila.api
Interface IInstanceRegistry<T>
- Type Parameters:
T
- the instance type
Registry for attaching object instances to a type and its subtypes.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Registers an instance.static <T> IInstanceRegistry
<T> create()
Creates an instance registry.static <T> IInstanceRegistry
<T> Creates an instance registry with the priority comparison reversed.Returns the instances that apply to the target sorted by their priority.
-
Method Details
-
create
Creates an instance registry. -
createReversed
Creates an instance registry with the priority comparison reversed. -
add
Registers an instance.- Parameters:
bound
- the upper bound type for the instance to applyinstance
- the instancepriority
- the priority
-
get
Returns the instances that apply to the target sorted by their priority.
-