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:
getTextureLocation(String, String)- Retrieves theResourceLocationfor the entity texture.getEntityVariants(String)- Retrieves aList<String>of variant names for a specified entity.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptiongetEntityVariants(String pEntityName) default net.minecraft.resources.ResourceLocationgetTextureLocation(String pModId, String pPath) AdefaultResourceLocationthat points to the texture of an entity.
-
Method Details
-
getTextureLocation
AdefaultResourceLocationthat points to the texture of an entity.This method constructs a
ResourceLocationusing the provided mod ID and texture path. -
getEntityVariants
AdefaultList<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.
-