Interface ISimpleModelType
- All Superinterfaces:
IModelType
- All Known Implementing Classes:
SimpleModelType
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintThe available amount of textures in this model type.default net.minecraft.resources.ResourceLocationgetTexture(@NotNull AbstractEntityCitizen entityCitizen) Method used to get the path to the texture every time it is updated on the entity.The base name of the texture.default net.minecraft.resources.ResourceLocationgetTextureIcon(@NotNull AbstractEntityCitizen entityCitizen) Methods inherited from interface com.minecolonies.api.client.render.modeltype.IModelType
getFemaleModel, getMaleModel, getName
-
Field Details
-
BASE_FOLDER
Base folder for textures.- See Also:
-
DEFAULT_FOLDER
Default folder.- See Also:
-
-
Method Details
-
getTextureBase
String getTextureBase()The base name of the texture. Is by default appended by a random textureId as well as the render info.- Returns:
- The base file name.
-
getNumTextures
int getNumTextures()The available amount of textures in this model type.- Returns:
- The amount of textures available.
-
getTexture
default net.minecraft.resources.ResourceLocation getTexture(@NotNull @NotNull AbstractEntityCitizen entityCitizen) Method used to get the path to the texture every time it is updated on the entity. By default this uses the textureBase + sex marker + randomly assigned texture index + metadata as a format.- Specified by:
getTexturein interfaceIModelType- Parameters:
entityCitizen- The citizen in question to get the path.- Returns:
- The path to the citizen.
-
getTextureIcon
default net.minecraft.resources.ResourceLocation getTextureIcon(@NotNull @NotNull AbstractEntityCitizen entityCitizen)
-