Interface IVariantEntityBase

All Known Subinterfaces:
IVariantEntity
All Known Implementing Classes:
VariantLoader

public interface IVariantEntityBase
A public base Interface providing fundamental methods for handling entity variants.

This interface defines methods for retrieving texture locations and variant names associated with entities.

Key Methods:

Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default List<String>
    A default List<String> of variant names associated with the specified entity.
    default net.minecraft.resources.ResourceLocation
    A default ResourceLocation that points to the texture of an entity.
  • Method Details

    • getTextureLocation

      default net.minecraft.resources.ResourceLocation getTextureLocation(String pModId, String pPath)
      A default ResourceLocation that points to the texture of an entity.

      This method constructs a ResourceLocation using the provided mod ID and texture path.

      Parameters:
      pModId - String - The mod ID used to locate the texture.
      pPath - String - The path to the texture within the mod.
      Returns:
      A ResourceLocation pointing to the specified texture.
      Since:
      1.0.0
    • getEntityVariants

      default List<String> getEntityVariants(String pEntityName)
      A default List<String> of variant names associated with the specified entity.

      This method retrieves the names of all variants for a given entity by querying the VariantLoader.

      Parameters:
      pEntityName - String - The name of the entity whose variant names are to be retrieved.
      Returns:
      A List<String> containing the names of variants associated with the specified entity.
      Since:
      1.0.0