aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces/IHasIndexedTexture.java
blob: 7401d35323f13b0176c914191a3f1b5dbdf96e6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
}