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 Details

    • getName

      net.minecraft.resources.ResourceLocation getName()
      The name of the model type.
      Returns:
      The name.
    • getTexture

      net.minecraft.resources.ResourceLocation getTexture(AbstractEntityCitizen entityCitizen)
      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

      Get the male model for this model type
      Returns:
      The male model
    • getFemaleModel

      Get the female model for this model type
      Returns:
      The female model