Package mcp.mobius.waila.api
Interface IClientRegistrar
- All Known Subinterfaces:
IRegistrar
The registrar for client-sided objects.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> voidbody(IBlockComponentProvider provider, Class<T> clazz) Registers anIBlockComponentProviderinstance for appendingComponentto the tooltip.<T> voidbody(IBlockComponentProvider provider, Class<T> clazz, int priority) Registers anIBlockComponentProviderinstance for appendingComponentto the tooltip.default <T> voidbody(IEntityComponentProvider provider, Class<T> clazz) Registers anIEntityComponentProviderinstance with default priority for appendingComponentto the tooltip.<T> voidbody(IEntityComponentProvider provider, Class<T> clazz, int priority) Registers anIEntityComponentProviderinstance for appendingComponentto the tooltip.<T> voiddataContext(IBlockComponentProvider provider, Class<T> clazz) Registers anIBlockComponentProviderinstance for appending data context that get sent to the server.<T> voiddataContext(IEntityComponentProvider provider, Class<T> clazz) Registers anIEntityComponentProviderinstance for appending data context that get sent to the server.default voideventListener(IEventListener listener) Adds an event listenervoideventListener(IEventListener listener, int priority) Adds an event listenerdefault <T> voidhead(IBlockComponentProvider provider, Class<T> clazz) Registers anIBlockComponentProviderinstance for appendingComponentto the tooltip.<T> voidhead(IBlockComponentProvider provider, Class<T> clazz, int priority) Registers anIBlockComponentProviderinstance for appendingComponentto the tooltip.default <T> voidhead(IEntityComponentProvider provider, Class<T> clazz) Registers anIEntityComponentProviderinstance with default priority for appendingComponentto the tooltip.<T> voidhead(IEntityComponentProvider provider, Class<T> clazz, int priority) Registers anIEntityComponentProviderinstance for appendingComponentto the tooltip.default <T> voidicon(IBlockComponentProvider provider, Class<T> clazz) Registers anIBlockComponentProviderinstance with default priority to allow overriding the displayed icon for a block via theIBlockComponentProvider.getIcon(IBlockAccessor, IPluginConfig)method.<T> voidicon(IBlockComponentProvider provider, Class<T> clazz, int priority) Registers anIBlockComponentProviderinstance to allow overriding the displayed icon for a block via theIBlockComponentProvider.getIcon(IBlockAccessor, IPluginConfig)method.default <T> voidicon(IEntityComponentProvider provider, Class<T> clazz) Registers anIEntityComponentProviderinstance with default priority to allow displaying an icon via theIEntityComponentProvider.getIcon(IEntityAccessor, IPluginConfig)method.<T> voidicon(IEntityComponentProvider provider, Class<T> clazz, int priority) Registers anIEntityComponentProviderinstance to allow displaying an icon via theIEntityComponentProvider.getIcon(IEntityAccessor, IPluginConfig)method.default <T> voidoverride(IBlockComponentProvider provider, Class<T> clazz) Registers anIBlockComponentProviderinstance with default priority to allow overriding the block being displayed.<T> voidoverride(IBlockComponentProvider provider, Class<T> clazz, int priority) Registers anIBlockComponentProviderinstance to allow overriding the block being displayed.default <T> voidoverride(IEntityComponentProvider provider, Class<T> clazz) Registers anIEntityComponentProviderinstance with default priority to allow overriding the entity being displayed.<T> voidoverride(IEntityComponentProvider provider, Class<T> clazz, int priority) Registers anIEntityComponentProviderinstance to allow overriding the entity being displayed.default voidrayCastVector(IRayCastVectorProvider provider) Registers anIRayCastVectorProviderinstance with default priorityvoidrayCastVector(IRayCastVectorProvider provider, int priority) Registers anIRayCastVectorProviderinstancedefault <T> voidredirect(IBlockComponentProvider provider, Class<T> clazz) Registers anIBlockComponentProviderinstance to allow redirecting the object being displayed.<T> voidredirect(IBlockComponentProvider provider, Class<T> clazz, int priority) Registers anIBlockComponentProviderinstance to allow redirecting the object being displayed.default <T> voidredirect(IEntityComponentProvider provider, Class<T> clazz) Registers anIEntityComponentProviderinstance to allow redirecting the object being displayed.<T> voidredirect(IEntityComponentProvider provider, Class<T> clazz, int priority) Registers anIEntityComponentProviderinstance to allow redirecting the object being displayed.default <T> voidtail(IBlockComponentProvider provider, Class<T> clazz) Registers anIBlockComponentProviderinstance for appendingComponentto the tooltip.<T> voidtail(IBlockComponentProvider provider, Class<T> clazz, int priority) Registers anIBlockComponentProviderinstance for appendingComponentto the tooltip.default <T> voidtail(IEntityComponentProvider provider, Class<T> clazz) Registers anIEntityComponentProviderinstance with default priority for appendingComponentto the tooltip.<T> voidtail(IEntityComponentProvider provider, Class<T> clazz, int priority) Registers anIEntityComponentProviderinstance for appendingComponentto the tooltip.<T extends ITheme>
voidthemeType(ResourceLocation id, IThemeType<T> type) Registers anIThemeTypeinstance.voidtoolType(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 anIBlockComponentProviderinstance to allow redirecting the object being displayed. ABlockEntityis 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 anIBlockComponentProviderinstance to allow redirecting the object being displayed. ABlockEntityis also an acceptable class type.- Parameters:
provider- the data provider instanceclazz- the highest level class to apply to- See Also:
-
override
Registers anIBlockComponentProviderinstance to allow overriding the block being displayed. ABlockEntityis 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 anIBlockComponentProviderinstance with default priority to allow overriding the block being displayed. ABlockEntityis also an acceptable class type.- Parameters:
provider- the data provider instanceclazz- the highest level class to apply to- See Also:
-
icon
Registers anIBlockComponentProviderinstance to allow overriding the displayed icon for a block via theIBlockComponentProvider.getIcon(IBlockAccessor, IPluginConfig)method. ABlockEntityis 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 anIBlockComponentProviderinstance with default priority to allow overriding the displayed icon for a block via theIBlockComponentProvider.getIcon(IBlockAccessor, IPluginConfig)method. ABlockEntityis also an acceptable class type.- Parameters:
provider- the data provider instanceclazz- the highest level class to apply to
-
head
Registers anIBlockComponentProviderinstance for appendingComponentto the tooltip. ABlockEntityis 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 anIBlockComponentProviderinstance for appendingComponentto the tooltip. ABlockEntityis also an acceptable class type.- Parameters:
provider- the data provider instanceclazz- the highest level class to apply to- See Also:
-
body
Registers anIBlockComponentProviderinstance for appendingComponentto the tooltip. ABlockEntityis 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 anIBlockComponentProviderinstance for appendingComponentto the tooltip. ABlockEntityis also an acceptable class type.- Parameters:
provider- the data provider instanceclazz- the highest level class to apply to- See Also:
-
tail
Registers anIBlockComponentProviderinstance for appendingComponentto the tooltip. ABlockEntityis 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 anIBlockComponentProviderinstance for appendingComponentto the tooltip. ABlockEntityis also an acceptable class type.- Parameters:
provider- the data provider instanceclazz- the highest level class to apply to- See Also:
-
dataContext
Registers anIBlockComponentProviderinstance for appending data context that get sent to the server. ABlockEntityis also an acceptable class type.- Parameters:
provider- the data provider instanceclazz- the highest level class to apply to
-
redirect
Registers anIEntityComponentProviderinstance 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 anIEntityComponentProviderinstance to allow redirecting the object being displayed.- Parameters:
provider- the data provider instanceclazz- the highest level class to apply to- See Also:
-
override
Registers anIEntityComponentProviderinstance 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 anIEntityComponentProviderinstance 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 anIEntityComponentProviderinstance 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 anIEntityComponentProviderinstance 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 anIEntityComponentProviderinstance for appendingComponentto 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 anIEntityComponentProviderinstance with default priority for appendingComponentto the tooltip.- Parameters:
provider- the data provider instanceclazz- the highest level class to apply to
-
body
Registers anIEntityComponentProviderinstance for appendingComponentto 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 anIEntityComponentProviderinstance with default priority for appendingComponentto the tooltip.- Parameters:
provider- the data provider instanceclazz- the highest level class to apply to
-
tail
Registers anIEntityComponentProviderinstance for appendingComponentto 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 anIEntityComponentProviderinstance with default priority for appendingComponentto the tooltip.- Parameters:
provider- the data provider instanceclazz- the highest level class to apply to
-
dataContext
Registers anIEntityComponentProviderinstance 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 anIThemeTypeinstance.- Parameters:
id- the theme type idtype- the theme type
-
rayCastVector
Registers anIRayCastVectorProviderinstance- Parameters:
provider- the vector providerpriority- the priority of this provider 0 is the minimum, lower number will be called first
-
rayCastVector
Registers anIRayCastVectorProviderinstance 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
-