From 5d144f92892b5a201b9088c9af3e3613e78b63dc Mon Sep 17 00:00:00 2001 From: allstar69 Date: Sun, 7 Jul 2013 01:29:53 -0700 Subject: [PATCH] Updated textures to use the new ResourceLocation class. --- common/MysticWorld/Client/FX/LightCubeFX.java | 5 +++-- common/MysticWorld/Client/FX/PowerAirFX.java | 5 +++-- common/MysticWorld/Client/FX/PowerEarthFX.java | 5 +++-- common/MysticWorld/Client/FX/PowerEnergyFX.java | 5 +++-- common/MysticWorld/Client/FX/PowerFireFX.java | 5 +++-- common/MysticWorld/Client/FX/PowerWaterFX.java | 5 +++-- common/MysticWorld/MysticWorld.java | 3 ++- 7 files changed, 20 insertions(+), 13 deletions(-) diff --git a/common/MysticWorld/Client/FX/LightCubeFX.java b/common/MysticWorld/Client/FX/LightCubeFX.java index 304e97b..2918f92 100644 --- a/common/MysticWorld/Client/FX/LightCubeFX.java +++ b/common/MysticWorld/Client/FX/LightCubeFX.java @@ -5,6 +5,7 @@ import org.lwjgl.opengl.GL11; import cpw.mods.fml.client.FMLClientHandler; import net.minecraft.client.particle.EntityFX; import net.minecraft.client.renderer.Tessellator; +import net.minecraft.client.resources.ResourceLocation; import net.minecraft.world.World; public class LightCubeFX extends EntityFX { @@ -70,7 +71,7 @@ public class LightCubeFX extends EntityFX { GL11.glEnable(3042); GL11.glBlendFunc(770, 1); - FMLClientHandler.instance().getClient().renderEngine.bindTexture("/mods/MysticTextures/textures/misc/lightCubeFX.png"); + FMLClientHandler.instance().getClient().renderEngine.func_110577_a(new ResourceLocation("/assets/MysticTextures/textures/misc/lightCubeFX.png")); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F); @@ -95,7 +96,7 @@ public class LightCubeFX extends EntityFX { GL11.glDepthMask(true); GL11.glPopMatrix(); - FMLClientHandler.instance().getClient().renderEngine.bindTexture("/particles.png"); + FMLClientHandler.instance().getClient().renderEngine.func_110577_a(new ResourceLocation("/assets/minecraft/textures/particle/particles.png")); tessellator.startDrawingQuads(); } } diff --git a/common/MysticWorld/Client/FX/PowerAirFX.java b/common/MysticWorld/Client/FX/PowerAirFX.java index 7df349d..8950f53 100644 --- a/common/MysticWorld/Client/FX/PowerAirFX.java +++ b/common/MysticWorld/Client/FX/PowerAirFX.java @@ -6,6 +6,7 @@ import cpw.mods.fml.client.FMLClientHandler; import net.minecraft.client.particle.EntityFX; import net.minecraft.client.renderer.Tessellator; +import net.minecraft.client.resources.ResourceLocation; import net.minecraft.src.ModLoader; import net.minecraft.world.World; @@ -72,7 +73,7 @@ public class PowerAirFX extends EntityFX GL11.glEnable(3042); GL11.glBlendFunc(770, 1); - FMLClientHandler.instance().getClient().renderEngine.bindTexture("/mods/MysticTextures/textures/misc/airFX.png"); + FMLClientHandler.instance().getClient().renderEngine.func_110577_a(new ResourceLocation("/assets/MysticTextures/textures/misc/airFX.png")); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F); @@ -97,7 +98,7 @@ public class PowerAirFX extends EntityFX GL11.glDepthMask(true); GL11.glPopMatrix(); - FMLClientHandler.instance().getClient().renderEngine.bindTexture("/particles.png"); + FMLClientHandler.instance().getClient().renderEngine.func_110577_a(new ResourceLocation("/assets/minecraft/textures/particle/particles.png")); tessellator.startDrawingQuads(); } } \ No newline at end of file diff --git a/common/MysticWorld/Client/FX/PowerEarthFX.java b/common/MysticWorld/Client/FX/PowerEarthFX.java index e41f507..5381633 100644 --- a/common/MysticWorld/Client/FX/PowerEarthFX.java +++ b/common/MysticWorld/Client/FX/PowerEarthFX.java @@ -6,6 +6,7 @@ import cpw.mods.fml.client.FMLClientHandler; import net.minecraft.client.particle.EntityFX; import net.minecraft.client.renderer.Tessellator; +import net.minecraft.client.resources.ResourceLocation; import net.minecraft.src.ModLoader; import net.minecraft.world.World; @@ -72,7 +73,7 @@ public class PowerEarthFX extends EntityFX GL11.glEnable(3042); GL11.glBlendFunc(770, 1); - FMLClientHandler.instance().getClient().renderEngine.bindTexture("/mods/MysticTextures/textures/misc/earthFX.png"); + FMLClientHandler.instance().getClient().renderEngine.func_110577_a(new ResourceLocation("/assets/MysticTextures/textures/misc/earthFX.png")); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F); @@ -97,7 +98,7 @@ public class PowerEarthFX extends EntityFX GL11.glDepthMask(true); GL11.glPopMatrix(); - FMLClientHandler.instance().getClient().renderEngine.bindTexture("/particles.png"); + FMLClientHandler.instance().getClient().renderEngine.func_110577_a(new ResourceLocation("/assets/minecraft/textures/particle/particles.png")); tessellator.startDrawingQuads(); } } diff --git a/common/MysticWorld/Client/FX/PowerEnergyFX.java b/common/MysticWorld/Client/FX/PowerEnergyFX.java index 2c697a4..4a1c32d 100644 --- a/common/MysticWorld/Client/FX/PowerEnergyFX.java +++ b/common/MysticWorld/Client/FX/PowerEnergyFX.java @@ -6,6 +6,7 @@ import cpw.mods.fml.client.FMLClientHandler; import net.minecraft.client.particle.EntityFX; import net.minecraft.client.renderer.Tessellator; +import net.minecraft.client.resources.ResourceLocation; import net.minecraft.src.ModLoader; import net.minecraft.world.World; @@ -72,7 +73,7 @@ public class PowerEnergyFX extends EntityFX GL11.glEnable(3042); GL11.glBlendFunc(770, 1); - FMLClientHandler.instance().getClient().renderEngine.bindTexture("/mods/MysticTextures/textures/misc/energyFX.png"); + FMLClientHandler.instance().getClient().renderEngine.func_110577_a(new ResourceLocation("/assets/MysticTextures/textures/misc/energyFX.png")); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F); @@ -97,7 +98,7 @@ public class PowerEnergyFX extends EntityFX GL11.glDepthMask(true); GL11.glPopMatrix(); - FMLClientHandler.instance().getClient().renderEngine.bindTexture("/particles.png"); + FMLClientHandler.instance().getClient().renderEngine.func_110577_a(new ResourceLocation("/assets/minecraft/textures/particle/particles.png")); tessellator.startDrawingQuads(); } } diff --git a/common/MysticWorld/Client/FX/PowerFireFX.java b/common/MysticWorld/Client/FX/PowerFireFX.java index a507ff4..365f8e8 100644 --- a/common/MysticWorld/Client/FX/PowerFireFX.java +++ b/common/MysticWorld/Client/FX/PowerFireFX.java @@ -6,6 +6,7 @@ import cpw.mods.fml.client.FMLClientHandler; import net.minecraft.client.particle.EntityFX; import net.minecraft.client.renderer.Tessellator; +import net.minecraft.client.resources.ResourceLocation; import net.minecraft.src.ModLoader; import net.minecraft.world.World; @@ -72,7 +73,7 @@ public class PowerFireFX extends EntityFX GL11.glEnable(3042); GL11.glBlendFunc(770, 1); - FMLClientHandler.instance().getClient().renderEngine.bindTexture("/mods/MysticTextures/textures/misc/fireFX.png"); + FMLClientHandler.instance().getClient().renderEngine.func_110577_a(new ResourceLocation("/assets/MysticTextures/textures/misc/fireFX.png")); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F); @@ -97,7 +98,7 @@ public class PowerFireFX extends EntityFX GL11.glDepthMask(true); GL11.glPopMatrix(); - FMLClientHandler.instance().getClient().renderEngine.bindTexture("/particles.png"); + FMLClientHandler.instance().getClient().renderEngine.func_110577_a(new ResourceLocation("/assets/minecraft/textures/particle/particles.png")); tessellator.startDrawingQuads(); } } diff --git a/common/MysticWorld/Client/FX/PowerWaterFX.java b/common/MysticWorld/Client/FX/PowerWaterFX.java index b304f92..7cc4e22 100644 --- a/common/MysticWorld/Client/FX/PowerWaterFX.java +++ b/common/MysticWorld/Client/FX/PowerWaterFX.java @@ -6,6 +6,7 @@ import cpw.mods.fml.client.FMLClientHandler; import net.minecraft.client.particle.EntityFX; import net.minecraft.client.renderer.Tessellator; +import net.minecraft.client.resources.ResourceLocation; import net.minecraft.src.ModLoader; import net.minecraft.world.World; @@ -72,7 +73,7 @@ public class PowerWaterFX extends EntityFX GL11.glEnable(3042); GL11.glBlendFunc(770, 1); - FMLClientHandler.instance().getClient().renderEngine.bindTexture("/mods/MysticTextures/textures/misc/waterFX.png"); + FMLClientHandler.instance().getClient().renderEngine.func_110577_a(new ResourceLocation("/assets/MysticTextures/textures/misc/waterFX.png")); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F); @@ -97,7 +98,7 @@ public class PowerWaterFX extends EntityFX GL11.glDepthMask(true); GL11.glPopMatrix(); - FMLClientHandler.instance().getClient().renderEngine.bindTexture("/particles.png"); + FMLClientHandler.instance().getClient().renderEngine.func_110577_a(new ResourceLocation("/assets/minecraft/textures/particle/particles.png")); tessellator.startDrawingQuads(); } } diff --git a/common/MysticWorld/MysticWorld.java b/common/MysticWorld/MysticWorld.java index d2fd935..bfbe2e9 100644 --- a/common/MysticWorld/MysticWorld.java +++ b/common/MysticWorld/MysticWorld.java @@ -11,6 +11,7 @@ import MysticWorld.Lib.Strings; import MysticWorld.WorldGen.*; import net.minecraft.block.Block; +import net.minecraft.client.resources.ResourceLocation; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.WorldType; @@ -68,7 +69,7 @@ public class MysticWorld this.tickHandler = new TickHandler(); TickRegistry.registerTickHandler(this.tickHandler, Side.SERVER); - VillagerRegistry.instance().registerVillagerType(98943, "/mods/MysticTextures/textures/mob/MysticVillager.png"); + VillagerRegistry.instance().registerVillagerSkin(98943, new ResourceLocation("/mods/MysticTextures/textures/mob/MysticVillager.png")); VillagerRegistry.instance().registerVillageTradeHandler(98943, new MysticVillagerTrades()); VillagerRegistry.instance().registerVillageCreationHandler(new VillageHutHandler()); BlockHandler.init();