Package mcp.mobius.waila.api
Interface IClientRegistrar
- All Known Subinterfaces:
IRegistrar
The registrar for client-sided objects.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> void
body
(IBlockComponentProvider provider, Class<T> clazz) Registers anIBlockComponentProvider
instance for appendingComponent
to the tooltip.<T> void
body
(IBlockComponentProvider provider, Class<T> clazz, int priority) Registers anIBlockComponentProvider
instance for appendingComponent
to the tooltip.default <T> void
body
(IEntityComponentProvider provider, Class<T> clazz) Registers anIEntityComponentProvider
instance with default priority for appendingComponent
to the tooltip.<T> void
body
(IEntityComponentProvider provider, Class<T> clazz, int priority) Registers anIEntityComponentProvider
instance for appendingComponent
to the tooltip.<T> void
dataContext
(IBlockComponentProvider provider, Class<T> clazz) Registers anIBlockComponentProvider
instance for appending data context that get sent to the server.<T> void
dataContext
(IEntityComponentProvider provider, Class<T> clazz) Registers anIEntityComponentProvider
instance for appending data context that get sent to the server.default void
eventListener
(IEventListener listener) Adds an event listenervoid
eventListener
(IEventListener listener, int priority) Adds an event listenerdefault <T> void
head
(IBlockComponentProvider provider, Class<T> clazz) Registers anIBlockComponentProvider
instance for appendingComponent
to the tooltip.<T> void
head
(IBlockComponentProvider provider, Class<T> clazz, int priority) Registers anIBlockComponentProvider
instance for appendingComponent
to the tooltip.default <T> void
head
(IEntityComponentProvider provider, Class<T> clazz) Registers anIEntityComponentProvider
instance with default priority for appendingComponent
to the tooltip.<T> void
head
(IEntityComponentProvider provider, Class<T> clazz, int priority) Registers anIEntityComponentProvider
instance for appendingComponent
to the tooltip.default <T> void
icon
(IBlockComponentProvider provider, Class<T> clazz) Registers anIBlockComponentProvider
instance with default priority to allow overriding the displayed icon for a block via theIBlockComponentProvider.getIcon(IBlockAccessor, IPluginConfig)
method.<T> void
icon
(IBlockComponentProvider provider, Class<T> clazz, int priority) Registers anIBlockComponentProvider
instance to allow overriding the displayed icon for a block via theIBlockComponentProvider.getIcon(IBlockAccessor, IPluginConfig)
method.default <T> void
icon
(IEntityComponentProvider provider, Class<T> clazz) Registers anIEntityComponentProvider
instance with default priority to allow displaying an icon via theIEntityComponentProvider.getIcon(IEntityAccessor, IPluginConfig)
method.<T> void
icon
(IEntityComponentProvider provider, Class<T> clazz, int priority) Registers anIEntityComponentProvider
instance to allow displaying an icon via theIEntityComponentProvider.getIcon(IEntityAccessor, IPluginConfig)
method.default <T> void
override
(IBlockComponentProvider provider, Class<T> clazz) Registers anIBlockComponentProvider
instance with default priority to allow overriding the block being displayed.<T> void
override
(IBlockComponentProvider provider, Class<T> clazz, int priority) Registers anIBlockComponentProvider
instance to allow overriding the block being displayed.default <T> void
override
(IEntityComponentProvider provider, Class<T> clazz) Registers anIEntityComponentProvider
instance with default priority to allow overriding the entity being displayed.<T> void
override
(IEntityComponentProvider provider, Class<T> clazz, int priority) Registers anIEntityComponentProvider
instance to allow overriding the entity being displayed.default void
rayCastVector
(IRayCastVectorProvider provider) Registers anIRayCastVectorProvider
instance with default priorityvoid
rayCastVector
(IRayCastVectorProvider provider, int priority) Registers anIRayCastVectorProvider
instancedefault <T> void
redirect
(IBlockComponentProvider provider, Class<T> clazz) Registers anIBlockComponentProvider
instance to allow redirecting the object being displayed.<T> void
redirect
(IBlockComponentProvider provider, Class<T> clazz, int priority) Registers anIBlockComponentProvider
instance to allow redirecting the object being displayed.default <T> void
redirect
(IEntityComponentProvider provider, Class<T> clazz) Registers anIEntityComponentProvider
instance to allow redirecting the object being displayed.<T> void
redirect
(IEntityComponentProvider provider, Class<T> clazz, int priority) Registers anIEntityComponentProvider
instance to allow redirecting the object being displayed.default <T> void
tail
(IBlockComponentProvider provider, Class<T> clazz) Registers anIBlockComponentProvider
instance for appendingComponent
to the tooltip.<T> void
tail
(IBlockComponentProvider provider, Class<T> clazz, int priority) Registers anIBlockComponentProvider
instance for appendingComponent
to the tooltip.default <T> void
tail
(IEntityComponentProvider provider, Class<T> clazz) Registers anIEntityComponentProvider
instance with default priority for appendingComponent
to the tooltip.<T> void
tail
(IEntityComponentProvider provider, Class<T> clazz, int priority) Registers anIEntityComponentProvider
instance for appendingComponent
to the tooltip.<T extends ITheme>
voidthemeType
(ResourceLocation id, IThemeType<T> type) Registers anIThemeType
instance.void
toolType
(ResourceLocation id, IToolType toolType) Registers a tool type, to be used for the harvestability tooltip.
-
Method Details
-
eventListener
Adds an event listener -
eventListener
Adds an event listener -
redirect
Registers anIBlockComponentProvider
instance to allow redirecting the object being displayed. ABlockEntity
is also an acceptable class type.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply topriority
- the priority of this provider 0 is the minimum, lower number will be called first- See Also:
-
redirect
Registers anIBlockComponentProvider
instance to allow redirecting the object being displayed. ABlockEntity
is also an acceptable class type.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply to- See Also:
-
override
Registers anIBlockComponentProvider
instance to allow overriding the block being displayed. ABlockEntity
is also an acceptable class type.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply topriority
- the priority of this provider 0 is the minimum, lower number will be called first- See Also:
-
override
Registers anIBlockComponentProvider
instance with default priority to allow overriding the block being displayed. ABlockEntity
is also an acceptable class type.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply to- See Also:
-
icon
Registers anIBlockComponentProvider
instance to allow overriding the displayed icon for a block via theIBlockComponentProvider.getIcon(IBlockAccessor, IPluginConfig)
method. ABlockEntity
is also an acceptable class type.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply topriority
- the priority of this provider 0 is the minimum, lower number will be called first- See Also:
-
icon
Registers anIBlockComponentProvider
instance with default priority to allow overriding the displayed icon for a block via theIBlockComponentProvider.getIcon(IBlockAccessor, IPluginConfig)
method. ABlockEntity
is also an acceptable class type.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply to
-
head
Registers anIBlockComponentProvider
instance for appendingComponent
to the tooltip. ABlockEntity
is also an acceptable class type.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply topriority
- the priority of this provider 0 is the minimum, lower number will be called first- See Also:
-
head
Registers anIBlockComponentProvider
instance for appendingComponent
to the tooltip. ABlockEntity
is also an acceptable class type.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply to- See Also:
-
body
Registers anIBlockComponentProvider
instance for appendingComponent
to the tooltip. ABlockEntity
is also an acceptable class type.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply topriority
- the priority of this provider 0 is the minimum, lower number will be called first- See Also:
-
body
Registers anIBlockComponentProvider
instance for appendingComponent
to the tooltip. ABlockEntity
is also an acceptable class type.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply to- See Also:
-
tail
Registers anIBlockComponentProvider
instance for appendingComponent
to the tooltip. ABlockEntity
is also an acceptable class type.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply topriority
- the priority of this provider 0 is the minimum, lower number will be called first- See Also:
-
tail
Registers anIBlockComponentProvider
instance for appendingComponent
to the tooltip. ABlockEntity
is also an acceptable class type.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply to- See Also:
-
dataContext
Registers anIBlockComponentProvider
instance for appending data context that get sent to the server. ABlockEntity
is also an acceptable class type.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply to
-
redirect
Registers anIEntityComponentProvider
instance to allow redirecting the object being displayed.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply topriority
- the priority of this provider 0 is the minimum, lower number will be called first- See Also:
-
redirect
Registers anIEntityComponentProvider
instance to allow redirecting the object being displayed.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply to- See Also:
-
override
Registers anIEntityComponentProvider
instance to allow overriding the entity being displayed.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply topriority
- the priority of this provider 0 is the minimum, lower number will be called first- See Also:
-
override
Registers anIEntityComponentProvider
instance with default priority to allow overriding the entity being displayed.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply to- See Also:
-
icon
Registers anIEntityComponentProvider
instance to allow displaying an icon via theIEntityComponentProvider.getIcon(IEntityAccessor, IPluginConfig)
method.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply topriority
- the priority of this provider 0 is the minimum, lower number will be called first- See Also:
-
icon
Registers anIEntityComponentProvider
instance with default priority to allow displaying an icon via theIEntityComponentProvider.getIcon(IEntityAccessor, IPluginConfig)
method.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply to
-
head
Registers anIEntityComponentProvider
instance for appendingComponent
to the tooltip.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply topriority
- the priority of this provider 0 is the minimum, lower number will be called first- See Also:
-
head
Registers anIEntityComponentProvider
instance with default priority for appendingComponent
to the tooltip.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply to
-
body
Registers anIEntityComponentProvider
instance for appendingComponent
to the tooltip.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply topriority
- the priority of this provider 0 is the minimum, lower number will be called first- See Also:
-
body
Registers anIEntityComponentProvider
instance with default priority for appendingComponent
to the tooltip.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply to
-
tail
Registers anIEntityComponentProvider
instance for appendingComponent
to the tooltip.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply topriority
- the priority of this provider 0 is the minimum, lower number will be called first- See Also:
-
tail
Registers anIEntityComponentProvider
instance with default priority for appendingComponent
to the tooltip.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply to
-
dataContext
Registers anIEntityComponentProvider
instance for appending data context that get sent to the server.- Parameters:
provider
- the data provider instanceclazz
- the highest level class to apply to
-
themeType
Registers anIThemeType
instance.- Parameters:
id
- the theme type idtype
- the theme type
-
rayCastVector
Registers anIRayCastVectorProvider
instance- Parameters:
provider
- the vector providerpriority
- the priority of this provider 0 is the minimum, lower number will be called first
-
rayCastVector
Registers anIRayCastVectorProvider
instance with default priority- Parameters:
provider
- the vector provider
-
toolType
Registers a tool type, to be used for the harvestability tooltip.- Parameters:
id
- the tool type id, also used as the translation key astooltip.waila.harvest.tool.[namespace].[path]
toolType
- the tool type
-