Interface IModelType
- All Known Subinterfaces:
ISimpleModelType
- All Known Implementing Classes:
SimpleModelType
public interface IModelType
Defines a model type and its textures. Use the
IModelTypeRegistry to register it, together with a Citizen model for
both male and female.-
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.net.minecraft.resources.ResourceLocationgetTexture(AbstractEntityCitizen entityCitizen) Method used to get the path to the texture every time it is updated on the entity.
-
Method Details
-
getName
net.minecraft.resources.ResourceLocation getName()The name of the model type.- Returns:
- The name.
-
getTexture
Method used to get the path to the texture every time it is updated on the entity.- Parameters:
entityCitizen- The citizen in question to get the path.- Returns:
- The path to the citizen.
-
getMaleModel
CitizenModel<AbstractEntityCitizen> getMaleModel()Get the male model for this model type- Returns:
- The male model
-
getFemaleModel
CitizenModel<AbstractEntityCitizen> getFemaleModel()Get the female model for this model type- Returns:
- The female model
-