Posted July 5, 201510 yr I'm trying to get the texture to render but keep getting this creepy messed up steve skin: http://prntscr.com/7p3h0j I checked my modid and the path name it seems to all be correct so im not sure what im doing wrong package explorer: http://prntscr.com/7p3kar Render Class: package com.pandaism.NLO.mobs.graphics; import net.minecraft.client.Minecraft; import net.minecraft.client.model.ModelBiped; import net.minecraft.client.renderer.entity.RenderBiped; import net.minecraft.entity.Entity; import net.minecraft.util.ResourceLocation; public class RenderOfflinePlayer extends RenderBiped { private ResourceLocation texture; public RenderOfflinePlayer(ModelBiped model, float shadowSize, String string) { super(Minecraft.getMinecraft().getRenderManager(), model, shadowSize); this.texture = new ResourceLocation("nlo", string); } protected ResourceLocation func_110775_a(Entity entity) { return this.texture; } } proxy: package com.pandaism.NLO; import com.pandaism.NLO.mobs.entity.EntityOfflinePlayer; import com.pandaism.NLO.mobs.graphics.RenderOfflinePlayer; import net.minecraft.client.Minecraft; import net.minecraft.client.model.ModelBiped; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraftforge.fml.client.registry.RenderingRegistry; import net.minecraftforge.fml.common.registry.EntityRegistry; public class ClientProxy extends ServerProxy { public void registerRenders() { RenderingRegistry.registerEntityRenderingHandler(EntityOfflinePlayer.class, new RenderOfflinePlayer(new ModelBiped(), 0.5F, "textures/entity/offlineplayer.png")); } } main with refstrings: package com.pandaism.NLO; import net.minecraftforge.fml.common.FMLCommonHandler; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import com.pandaism.NLO.events.PlayerLogOffHandler; import com.pandaism.NLO.handlers.EntityHandler; import com.pandaism.NLO.mobs.entity.EntityOfflinePlayer; @Mod(modid = RefString.MODID, name = RefString.NAME, version = RefString.VERSION) public class NeverLogOff { @Mod.Instance public static NeverLogOff instance; @SidedProxy(clientSide = RefString.CLIENT, serverSide = RefString.SERVER) public static ServerProxy proxy; @EventHandler public void preLoad(FMLPreInitializationEvent e) { } @EventHandler public void Load(FMLInitializationEvent e) { FMLCommonHandler.instance().bus().register(new PlayerLogOffHandler()); EntityHandler.RegisterMobs(EntityOfflinePlayer.class, "Offline Player"); proxy.registerRenders(); } } -------- package com.pandaism.NLO; public class RefString { public static final String MODID = "nlo"; public static final String NAME = "Never Log Off"; public static final String VERSION = "1.0.0"; public static final String CLIENT = "com.pandaism.NLO.ClientProxy"; public static final String SERVER = "com.pandaism.NLO.ServerProxy"; }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.