Class SimpleModelType
java.lang.Object
com.minecolonies.api.client.render.modeltype.SimpleModelType
- All Implemented Interfaces:
IModelType,ISimpleModelType
A class that implements the ISimpleModelType interface. Used to store references to female and male models for citizens.
-
Field Summary
Fields inherited from interface com.minecolonies.api.client.render.modeltype.ISimpleModelType
BASE_FOLDER, DEFAULT_FOLDER -
Constructor Summary
ConstructorsConstructorDescriptionSimpleModelType(net.minecraft.resources.ResourceLocation name, int numTextures, CitizenModel<AbstractEntityCitizen> maleModel, CitizenModel<AbstractEntityCitizen> femaleModel) -
Method Summary
Modifier and TypeMethodDescriptionGet the female model for this model typeGet the male model for this model typenet.minecraft.resources.ResourceLocationgetName()The name of the model type.intThe available amount of textures in this model type.The base name of the texture.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.api.client.render.modeltype.ISimpleModelType
getTexture, getTextureIcon
-
Constructor Details
-
SimpleModelType
public SimpleModelType(net.minecraft.resources.ResourceLocation name, int numTextures, CitizenModel<AbstractEntityCitizen> maleModel, CitizenModel<AbstractEntityCitizen> femaleModel)
-
-
Method Details
-
getName
public net.minecraft.resources.ResourceLocation getName()Description copied from interface:IModelTypeThe name of the model type.- Specified by:
getNamein interfaceIModelType- Returns:
- The name.
-
getTextureBase
Description copied from interface:ISimpleModelTypeThe base name of the texture. Is by default appended by a random textureId as well as the render info.- Specified by:
getTextureBasein interfaceISimpleModelType- Returns:
- The base file name.
-
getNumTextures
public int getNumTextures()Description copied from interface:ISimpleModelTypeThe available amount of textures in this model type.- Specified by:
getNumTexturesin interfaceISimpleModelType- Returns:
- The amount of textures available.
-
getMaleModel
Description copied from interface:IModelTypeGet the male model for this model type- Specified by:
getMaleModelin interfaceIModelType- Returns:
- The male model
-
getFemaleModel
Description copied from interface:IModelTypeGet the female model for this model type- Specified by:
getFemaleModelin interfaceIModelType- Returns:
- The female model
-