package gtPlusPlus.xmod.gregtech.common.helpers;

import net.minecraft.block.Block;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;

import gregtech.api.enums.Textures.BlockIcons;
import gregtech.api.interfaces.ITexture;
import gregtech.api.interfaces.tileentity.ITexturedTileEntity;

public class GTMethodHelper {

    public static ITexture[] getTexture(TileEntity tTileEntity, Block aBlock, ForgeDirection side) {
        if (tTileEntity instanceof ITexturedTileEntity) {
            return ((ITexturedTileEntity) tTileEntity).getTexture(aBlock, side);
        }
        return BlockIcons.ERROR_RENDERING;
    }
}