Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.