Interface IOcculusTab
- All Superinterfaces:
ITranslatable
Interface representing a tab inside the occulus.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceFactory interface to create occulus tab renderers.Nested classes/interfaces inherited from interface com.github.minecraftschurlimods.arsmagicalegacy.api.util.ITranslatable
ITranslatable.OfRegistryEntry<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>, ITranslatable.WithDescription -
Field Summary
Fields -
Method Summary
Methods inherited from interface com.github.minecraftschurlimods.arsmagicalegacy.api.util.ITranslatable
getDisplayName, getId, getTranslationKey
-
Field Details
-
OCCULUS_TAB
- See Also:
-
TEXTURE_WIDTH
static final int TEXTURE_WIDTH- See Also:
-
TEXTURE_HEIGHT
static final int TEXTURE_HEIGHT- See Also:
-
-
Method Details
-
getBackground
net.minecraft.resources.ResourceLocation getBackground()- Returns:
- The location of the background texture for this skill tree.
-
getIcon
net.minecraft.resources.ResourceLocation getIcon()- Returns:
- The location of the icon texture for this skill tree.
-
getOcculusIndex
int getOcculusIndex()- Returns:
- The index this tab should appear at in the occulus.
-
getWidth
int getWidth()- Returns:
- The width of the background texture.
-
getHeight
int getHeight()- Returns:
- The height of the background texture.
-
getStartX
int getStartX()- Returns:
- The initial X coordinate of the background texture.
-
getStartY
int getStartY()- Returns:
- The initial Y coordinate of the background texture.
-
getRenderer
String getRenderer()- Returns:
- The path of the renderer class.
-
getRendererFactory
Supplier<IOcculusTab.OcculusTabRendererFactory> getRendererFactory()Only call this on the client.- Returns:
- The lazy renderer factory.
-
getType
- Specified by:
getTypein interfaceITranslatable- Returns:
- The type of this object, for example "block" or "item".
-