/FileExtraction/Java_unseen/ionar2_summit/src/main/java/com/salhack/summit/util/imgs/SalDynamicTexture.java
package com.salhack.summit.util.imgs;

import java.awt.image.BufferedImage;

import net.minecraft.client.renderer.texture.DynamicTexture;
import net.minecraft.util.ResourceLocation;

public class SalDynamicTexture extends DynamicTexture
{
    private int Height;
    private int Width;
    private BufferedImage m_BufferedImage;
    private ResourceLocation m_TexturedLocation;
    private ImageFrame m_Frame;

    public SalDynamicTexture(BufferedImage bufferedImage, int p_Height, int p_Width)
    {
        super(bufferedImage);
        
        m_Frame = null;
        m_BufferedImage = bufferedImage;

        Height = p_Height;
        Width = p_Width;
    }

    public int GetHeight()
    {
        return Height;
    }
    
    public int GetWidth()
    {
        return Width;
    }
    
    public final DynamicTexture GetDynamicTexture()
    {
        return (DynamicTexture)this;
    }
    
    public final BufferedImage GetBufferedImage()
    {
        return m_BufferedImage;
    }

    public void SetResourceLocation(ResourceLocation dynamicTextureLocation)
    {
        m_TexturedLocation = dynamicTextureLocation;
    }
    
    public final ResourceLocation GetResourceLocation()
    {
        return m_TexturedLocation;
    }
    
    public void SetImageFrame(final ImageFrame p_Frame)
    {
        m_Frame = p_Frame;
    }
    
    /// used for gifs
    public final ImageFrame GetFrame()
    {
        return m_Frame;
    }
}
