Java 类net.minecraft.client.renderer.texture.SimpleTexture 实例源码
项目:BaseClient
文件:TextureUtils.java
public static ITextureObject getTexture(ResourceLocation p_getTexture_0_)
{
ITextureObject itextureobject = Config.getTextureManager().getTexture(p_getTexture_0_);
if (itextureobject != null)
{
return itextureobject;
}
else if (!Config.hasResource(p_getTexture_0_))
{
return null;
}
else
{
SimpleTexture simpletexture = new SimpleTexture(p_getTexture_0_);
Config.getTextureManager().loadTexture(p_getTexture_0_, simpletexture);
return simpletexture;
}
}
项目:BaseClient
文件:TextureUtils.java
public static ITextureObject getTexture(ResourceLocation p_getTexture_0_)
{
ITextureObject itextureobject = Config.getTextureManager().getTexture(p_getTexture_0_);
if (itextureobject != null)
{
return itextureobject;
}
else if (!Config.hasResource(p_getTexture_0_))
{
return null;
}
else
{
SimpleTexture simpletexture = new SimpleTexture(p_getTexture_0_);
Config.getTextureManager().loadTexture(p_getTexture_0_, simpletexture);
return simpletexture;
}
}
项目:Backmemed
文件:TextureUtils.java
public static ITextureObject getTexture(ResourceLocation p_getTexture_0_)
{
ITextureObject itextureobject = Config.getTextureManager().getTexture(p_getTexture_0_);
if (itextureobject != null)
{
return itextureobject;
}
else if (!Config.hasResource(p_getTexture_0_))
{
return null;
}
else
{
SimpleTexture simpletexture = new SimpleTexture(p_getTexture_0_);
Config.getTextureManager().loadTexture(p_getTexture_0_, simpletexture);
return simpletexture;
}
}
项目:Resilience-Client-Source
文件:TextureUtils.java
public static ITextureObject getTexture(ResourceLocation loc)
{
ITextureObject tex = Config.getTextureManager().getTexture(loc);
if (tex != null)
{
return tex;
}
else if (!Config.hasResource(loc))
{
return null;
}
else
{
SimpleTexture tex1 = new SimpleTexture(loc);
Config.getTextureManager().loadTexture(loc, tex1);
return tex1;
}
}
项目:Alchemy
文件:SkinCore.java
@EventHandler
@SideOnly(Side.CLIENT)
public void onFMLLoadComplete(FMLLoadCompleteEvent event) {
TextureManager textureManager = Minecraft.getMinecraft().getTextureManager();
textureManager.loadTexture(GuiWardrobe.BACKGROUND_TEXTURES, new SimpleTexture(GuiWardrobe.BACKGROUND_TEXTURES));
textureManager.loadTexture(GuiWardrobe.BUTTON_TEXTURES, new SimpleTexture(GuiWardrobe.BUTTON_TEXTURES));
}
项目:minedriod
文件:TextureDrawable.java
@Override
public void inflate(XmlHelper node, Style theme) {
size = node.getSize(GuiManager.NS, originalSize.clone());
try {
Integer textureId = node.getIntegerAttr(GuiManager.NS, "texture", null);
} catch (NumberFormatException e) {
ResourceLocation src = node.getResourceAttr(GuiManager.NS, "texture", null);
if (src != null) {
SimpleTexture texture = new SimpleTexture(src);
// texture.loadTexture();
}
}
}
项目:CartLivery
文件:LiveryTextureRegistry.java
public static void registerLivery(String name, String packName) {
if (name == null || name.isEmpty()) return;
if (!map.keySet().contains(name)) {
LiveryTextureInfo info = new LiveryTextureInfo();
info.packName = packName;
info.texture = new ResourceLocation("cartlivery", "textures/livery/" + name + ".png");
map.put(name, info);
Minecraft.getMinecraft().renderEngine.loadTexture(info.texture, new SimpleTexture(info.texture));
}
}
项目:RuneCraftery
文件:ThreadDownloadImageData.java
public ThreadDownloadImageData(String p_i1273_1_, ResourceLocation p_i1273_2_, IImageBuffer p_i1273_3_) {
this.field_110562_b = p_i1273_1_;
this.field_110563_c = p_i1273_3_;
this.field_110558_f = p_i1273_2_ != null?new SimpleTexture(p_i1273_2_):null;
}
项目:RuneCraftery
文件:ThreadDownloadImageData.java
public ThreadDownloadImageData(String par1Str, ResourceLocation par2ResourceLocation, IImageBuffer par3IImageBuffer)
{
this.imageUrl = par1Str;
this.imageBuffer = par3IImageBuffer;
this.imageLocation = par2ResourceLocation != null ? new SimpleTexture(par2ResourceLocation) : null;
}
项目:BetterNutritionMod
文件:ThreadDownloadImageData.java
public ThreadDownloadImageData(String par1Str, ResourceLocation par2ResourceLocation, IImageBuffer par3IImageBuffer)
{
this.imageUrl = par1Str;
this.imageBuffer = par3IImageBuffer;
this.imageLocation = par2ResourceLocation != null ? new SimpleTexture(par2ResourceLocation) : null;
}