2014-11-14 12:02:52 +01:00
|
|
|
/*
|
|
|
|
* This file is part of Applied Energistics 2.
|
|
|
|
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
|
|
|
|
*
|
|
|
|
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Applied Energistics 2 is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* along with Applied Energistics 2. If not, see <http://www.gnu.org/licenses/lgpl>.
|
|
|
|
*/
|
|
|
|
|
2014-02-23 21:06:07 +01:00
|
|
|
package appeng.client.texture;
|
|
|
|
|
2015-04-03 08:54:31 +02:00
|
|
|
|
2014-03-09 04:35:53 +01:00
|
|
|
import net.minecraft.client.Minecraft;
|
2015-06-16 02:44:59 +02:00
|
|
|
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
2014-03-09 04:35:53 +01:00
|
|
|
import net.minecraft.client.renderer.texture.TextureMap;
|
2015-06-16 02:44:59 +02:00
|
|
|
import net.minecraftforge.fml.relauncher.Side;
|
|
|
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
2014-12-29 21:59:05 +01:00
|
|
|
|
2016-02-16 21:06:59 +01:00
|
|
|
import appeng.api.util.IAESprite;
|
|
|
|
|
2014-02-23 21:06:07 +01:00
|
|
|
|
2015-06-16 02:44:59 +02:00
|
|
|
public class MissingIcon implements IAESprite
|
2014-02-23 21:06:07 +01:00
|
|
|
{
|
2015-10-08 15:42:42 +02:00
|
|
|
private TextureAtlasSprite missing;
|
|
|
|
|
2015-09-30 14:24:40 +02:00
|
|
|
public MissingIcon( final Object forWhat )
|
2014-03-09 04:35:53 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-02-23 21:06:07 +01:00
|
|
|
@Override
|
|
|
|
public int getIconWidth()
|
|
|
|
{
|
2014-12-29 15:13:47 +01:00
|
|
|
return this.getMissing().getIconWidth();
|
2014-02-23 21:06:07 +01:00
|
|
|
}
|
|
|
|
|
2015-04-03 08:54:31 +02:00
|
|
|
@SideOnly( Side.CLIENT )
|
2015-12-24 02:03:16 +01:00
|
|
|
public static TextureAtlasSprite getMissing()
|
2015-04-03 08:54:31 +02:00
|
|
|
{
|
2015-06-16 02:44:59 +02:00
|
|
|
return ( (TextureMap) Minecraft.getMinecraft().getTextureManager().getTexture( TextureMap.locationBlocksTexture ) ).getAtlasSprite( "missingno" );
|
2015-04-03 08:54:31 +02:00
|
|
|
}
|
|
|
|
|
2015-06-16 02:44:59 +02:00
|
|
|
@Override
|
|
|
|
public TextureAtlasSprite getAtlas()
|
|
|
|
{
|
|
|
|
return getMissing();
|
|
|
|
}
|
2015-10-08 15:42:42 +02:00
|
|
|
|
2014-02-23 21:06:07 +01:00
|
|
|
@Override
|
|
|
|
public int getIconHeight()
|
|
|
|
{
|
2014-12-29 15:13:47 +01:00
|
|
|
return this.getMissing().getIconHeight();
|
2014-02-23 21:06:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public float getMinU()
|
|
|
|
{
|
2014-12-29 15:13:47 +01:00
|
|
|
return this.getMissing().getMinU();
|
2014-02-23 21:06:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public float getMaxU()
|
|
|
|
{
|
2014-12-29 15:13:47 +01:00
|
|
|
return this.getMissing().getMaxU();
|
2014-02-23 21:06:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-09-30 14:24:40 +02:00
|
|
|
public float getInterpolatedU( final double var1 )
|
2014-02-23 21:06:07 +01:00
|
|
|
{
|
2014-12-29 15:13:47 +01:00
|
|
|
return this.getMissing().getInterpolatedU( var1 );
|
2014-02-23 21:06:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public float getMinV()
|
|
|
|
{
|
2014-12-29 15:13:47 +01:00
|
|
|
return this.getMissing().getMinV();
|
2014-02-23 21:06:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public float getMaxV()
|
|
|
|
{
|
2014-12-29 15:13:47 +01:00
|
|
|
return this.getMissing().getMaxV();
|
2014-02-23 21:06:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-09-30 14:24:40 +02:00
|
|
|
public float getInterpolatedV( final double var1 )
|
2014-02-23 21:06:07 +01:00
|
|
|
{
|
2014-12-29 15:13:47 +01:00
|
|
|
return this.getMissing().getInterpolatedV( var1 );
|
2014-02-23 21:06:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getIconName()
|
|
|
|
{
|
2014-12-29 15:13:47 +01:00
|
|
|
return this.getMissing().getIconName();
|
2014-02-23 21:06:07 +01:00
|
|
|
}
|
|
|
|
}
|