aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces/IHasIndexedTexture.java
blob: ed31984b6ef4eb35b949fd267f9083a9a23d97ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package gregtech.api.interfaces;

/**
 * To be implemented on blocks. Usually machine casing blocks.
 */
public interface IHasIndexedTexture {

    /**
     * Returns the statically mapped texture for this casing. Return
     * {@link gregtech.api.enums.Textures.BlockIcons#ERROR_TEXTURE_INDEX} if meta maps to a nonexistent block, or the
     * block does not have a statically mapped texture.
     * 
     * @param aMeta block meta
     * @return texture index into {@link gregtech.api.enums.Textures.BlockIcons#casingTexturePages}
     */
    int getTextureIndex(int aMeta);
}