Interface ISimpleModelType

All Superinterfaces:
IModelType
All Known Implementing Classes:
SimpleModelType

public interface ISimpleModelType extends IModelType
  • Field Details

  • 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:
      getTexture in interface IModelType
      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)