Renamed Inscriber Recipe Type to Inscribe.
Missing Icon now supports Items. Fixed Missing Icons for debug Items. SkyStone Chests can now be disabled. More work on Website Recipes. Removed Unused method in Network Handler.
This commit is contained in:
@@ -1,62 +1,80 @@
|
||||
package appeng.client.texture;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.util.IIcon;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class MissingIcon implements IIcon
|
||||
{
|
||||
|
||||
boolean isBlock;
|
||||
|
||||
public MissingIcon(Object forWhat) {
|
||||
isBlock = forWhat instanceof Block;
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getMissing()
|
||||
{
|
||||
return ((TextureMap) Minecraft.getMinecraft().getTextureManager()
|
||||
.getTexture( isBlock ? TextureMap.locationBlocksTexture : TextureMap.locationItemsTexture )).getAtlasSprite( "missingno" );
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconWidth()
|
||||
{
|
||||
return ExtraTextures.getMissing().getIconWidth();
|
||||
return getMissing().getIconWidth();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconHeight()
|
||||
{
|
||||
return ExtraTextures.getMissing().getIconHeight();
|
||||
return getMissing().getIconHeight();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMinU()
|
||||
{
|
||||
return ExtraTextures.getMissing().getMinU();
|
||||
return getMissing().getMinU();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMaxU()
|
||||
{
|
||||
return ExtraTextures.getMissing().getMaxU();
|
||||
return getMissing().getMaxU();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getInterpolatedU(double var1)
|
||||
{
|
||||
return ExtraTextures.getMissing().getInterpolatedU( var1 );
|
||||
return getMissing().getInterpolatedU( var1 );
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMinV()
|
||||
{
|
||||
return ExtraTextures.getMissing().getMinV();
|
||||
return getMissing().getMinV();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMaxV()
|
||||
{
|
||||
return ExtraTextures.getMissing().getMaxV();
|
||||
return getMissing().getMaxV();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getInterpolatedV(double var1)
|
||||
{
|
||||
return ExtraTextures.getMissing().getInterpolatedV( var1 );
|
||||
return getMissing().getInterpolatedV( var1 );
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIconName()
|
||||
{
|
||||
return ExtraTextures.getMissing().getIconName();
|
||||
return getMissing().getIconName();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user