Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.10.2] Rendering Armor throws NullPointerException


FilipZocktan
 Share

Recommended Posts

Hey Guys,

 

I'm quite new to Forge Modding and just trying to create an Armor (in the Version 1.10.2). I found a tutorial for the 1.8 and added the things not given there from Internet research.

Now I'm ready, but when I start Minecraft for testing, and open my Inventory with the Armor on I get the following Stacktrace:

Spoiler

[22:35:27] [Client thread/ERROR]: Couldn't render entity
java.lang.NullPointerException
	at net.minecraft.client.renderer.entity.layers.LayerArmorBase.getArmorResource(LayerArmorBase.java:192) ~[LayerArmorBase.class:?]
	at net.minecraft.client.renderer.entity.layers.LayerArmorBase.renderArmorLayer(LayerArmorBase.java:66) ~[LayerArmorBase.class:?]
	at net.minecraft.client.renderer.entity.layers.LayerArmorBase.doRenderLayer(LayerArmorBase.java:39) ~[LayerArmorBase.class:?]
	at net.minecraft.client.renderer.entity.RenderLivingBase.renderLayers(RenderLivingBase.java:456) ~[RenderLivingBase.class:?]
	at net.minecraft.client.renderer.entity.RenderLivingBase.doRender(RenderLivingBase.java:196) [RenderLivingBase.class:?]
	at net.minecraft.client.renderer.entity.RenderPlayer.doRender(RenderPlayer.java:74) [RenderPlayer.class:?]
	at net.minecraft.client.renderer.entity.RenderPlayer.doRender(RenderPlayer.java:28) [RenderPlayer.class:?]
	at net.minecraft.client.renderer.entity.RenderManager.doRenderEntity(RenderManager.java:372) [RenderManager.class:?]
	at net.minecraft.client.gui.inventory.GuiInventory.drawEntityOnScreen(GuiInventory.java:121) [GuiInventory.class:?]
	at net.minecraft.client.gui.inventory.GuiInventory.drawGuiContainerBackgroundLayer(GuiInventory.java:90) [GuiInventory.class:?]
	at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:94) [GuiContainer.class:?]
	at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:59) [InventoryEffectRenderer.class:?]
	at net.minecraft.client.gui.inventory.GuiInventory.drawScreen(GuiInventory.java:75) [GuiInventory.class:?]
	at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:382) [ForgeHooksClient.class:?]
	at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1147) [EntityRenderer.class:?]
	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1139) [Minecraft.class:?]
	at net.minecraft.client.Minecraft.run(Minecraft.java:406) [Minecraft.class:?]
	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_112]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_112]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_112]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_112]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_112]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_112]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_112]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_112]
	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
	at GradleStart.main(GradleStart.java:26) [start/:?]

 

My code is the following:

 

Main Class (extracts):

Spoiler

/* Armor Materials */
	public static ArmorMaterial PoSiTIonBarrierSuit = EnumHelper.addArmorMaterial("PoSiTIonBarrierSuit", null, 1000000000, new int[] {3, 8, 6, 3}, 3, SoundEvents.ITEM_ARMOR_EQUIP_DIAMOND, 10.0F);

/* Items */
	public static ItemArmor ItemPoSiTIonBarrierSuitHelmet = new ItemPoSiTIonBarrierSuit(PoSiTIonBarrierSuit, 0, EntityEquipmentSlot.HEAD);
	public static ItemArmor ItemPoSiTIonBarrierSuitChestplate = new ItemPoSiTIonBarrierSuit(PoSiTIonBarrierSuit, 0, EntityEquipmentSlot.CHEST);
	public static ItemArmor ItemPoSiTIonBarrierSuitLeggings = new ItemPoSiTIonBarrierSuit(PoSiTIonBarrierSuit, 0, EntityEquipmentSlot.LEGS);
	public static ItemArmor ItemPoSiTIonBarrierSuitBoots = new ItemPoSiTIonBarrierSuit(PoSiTIonBarrierSuit, 0, EntityEquipmentSlot.FEET);

EventHandler
	public void init(FMLInitializationEvent ev) {
		registerArmorItem(ItemPoSiTIonBarrierSuitHelmet, "position_barrier_helmet");
		registerArmorItem(ItemPoSiTIonBarrierSuitChestplate, "position_barrier_chestplate");
		registerArmorItem(ItemPoSiTIonBarrierSuitLeggings, "position_barrier_leggings");
		registerArmorItem(ItemPoSiTIonBarrierSuitBoots, "position_barrier_boots");
	}

public static void registerArmorItem(Item item, String itemName) {
		GameRegistry.registerItem(item, itemName);
		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation("zocrpmod:" + itemName, "inventory"));
	}

 

ItemPoSiTIonBarrierSuit:

Spoiler

package ga.zcktn.mcmodding.forge.rp.zocrpmod.items;

import ga.zcktn.mcmodding.forge.rp.zocrpmod.ZocRPMod;
import net.minecraft.entity.Entity;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;

public class ItemPoSiTIonBarrierSuit extends ItemArmor {

	public ItemPoSiTIonBarrierSuit(ArmorMaterial materialIn, int renderIndexIn, EntityEquipmentSlot equipmentSlotIn) {
		super(materialIn, renderIndexIn, equipmentSlotIn);

		switch (equipmentSlotIn) {
		case CHEST:
			setUnlocalizedName("position_barrier_chestplate");
			break;
		case FEET:
			setUnlocalizedName("position_barrier_boots");
			break;
		case HEAD:
			setUnlocalizedName("position_barrier_helmet");
			break;
		case LEGS:
			setUnlocalizedName("position_barrier_leggings");
			break;
		case MAINHAND:
			throw new NullPointerException("No EntityEquipmentSlot defined.");
		case OFFHAND:
			throw new NullPointerException("No EntityEquipmentSlot defined.");
		default:
			throw new NullPointerException("No EntityEquipmentSlot defined.");
		}
		
		setCreativeTab(ZocRPMod.TimeMasterTab);
	}
	
	@Override
	public String getArmorTexture(ItemStack stack, Entity entity, EntityEquipmentSlot slot, String type) {
		if(slot == EntityEquipmentSlot.CHEST || slot == EntityEquipmentSlot.HEAD || slot == EntityEquipmentSlot.FEET) {
			return "zocrpmod:textures/models/armor/position_barrier_layer_1.png";
		} else if(slot == EntityEquipmentSlot.LEGS) {
			return "zocrpmod:textures/models/armor/position_barrier_layer_2.png";
		} else {
			throw new NullPointerException("Wrong EntityEquipmentSlot defined.");
		}
	}
}

 

Note: The path to the file is correct. I already checked that.

 

 

Thanks for your replies in advance.

 

Filip Zocktan

Link to comment
Share on other sites

1) GameRegistry.registerItem(item, itemName) is deprecated. That's why it has a line through it, use the new Registry events instead.

2) Minecraft.getMinecraft().getRenderItem().getItemModelMesher()... is bad, use ModelLoader.setCustomModelResourceLocation(...) instead.

3) The error is in getArmorResource of LayerArmorBase which means that you did not correctly override something you needed to.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Could you maybe explain the Registry events to me? I don't understand them...

 

//EDIT: I got the problem fixed by putting a random String in a place where the person the tutorial was from said it didn't matter what's in there.

 

Instead of:

public static ArmorMaterial PoSiTIonBarrierSuit = EnumHelper.addArmorMaterial("PoSiTIonBarrierSuit", null, 1000000000, new int[] {3, 8, 6, 3}, 3, SoundEvents.ITEM_ARMOR_EQUIP_DIAMOND, 10.0F);

I made it:

public static ArmorMaterial PoSiTIonBarrierSuit = EnumHelper.addArmorMaterial("PoSiTIonBarrierSuit", "wurscht", 1000000000, new int[] {3, 8, 6, 3}, 3, SoundEvents.ITEM_ARMOR_EQUIP_DIAMOND, 10.0F);

 

Now it's almost working, except for the items, which now don't have a texture...

 

(I already applied the patch 2)

Edited by FilipZocktan
Link to comment
Share on other sites

There is no error log...

 

Previous it was

Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation("zocrpmod:" + itemName, "inventory"));

 

And now @Draco18s told me to do it like this:

ModelLoader.setCustomModelResourceLocation(item, 0,  new ModelResourceLocation("zocrpmod:" + itemName, "inventory"));

 

And since I applied this, I don't get the textures anymore, but this black-pink square...

Link to comment
Share on other sites

Okay, here you are:

 

Spoiler

2017-07-17 12:29:52,718 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-07-17 12:29:52,720 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[12:29:52] [main/INFO] [GradleStart]: Extra: []
[12:29:52] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/filip/.gradle/caches/minecraft/assets, --assetIndex, 1.10, --accessToken{REDACTED}, --version, 1.10.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[12:29:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[12:29:52] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[12:29:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[12:29:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[12:29:52] [main/INFO] [FML]: Forge Mod Loader version 12.18.3.2316 for Minecraft 1.10.2 loading
[12:29:52] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_112, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_112\jre
[12:29:53] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[12:29:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[12:29:53] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[12:29:53] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[12:29:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:29:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:29:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[12:29:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:29:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:29:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[12:29:53] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[12:29:57] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[12:29:57] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[12:29:57] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:30:00] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[12:30:00] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:30:00] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:30:00] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
2017-07-17 12:30:02,879 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-07-17 12:30:03,179 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-07-17 12:30:03,185 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[12:30:05] [Client thread/INFO]: Setting user: Player198
[12:30:18] [Client thread/WARN]: Skipping bad option: lastServer:
[12:30:18] [Client thread/INFO]: LWJGL Version: 2.9.4
[12:30:20] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:225]: ---- Minecraft Crash Report ----
// Oh - I know what I did wrong!

Time: 17.07.17 12:30
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
	Minecraft Version: 1.10.2
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 1.8.0_112, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 788725504 bytes (752 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	FML: 
	Loaded coremods (and transformers): 
	GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 10.18.15.4248' Renderer: 'Intel(R) HD Graphics 5500'
[12:30:20] [Client thread/INFO] [FML]: MinecraftForge v12.18.3.2316 Initialized
[12:30:21] [Client thread/INFO] [FML]: Replaced 231 ore recipes
[12:30:21] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[12:30:21] [Client thread/INFO] [FML]: Searching C:\Users\filip\Desktop\Forge 1.10.2 MDK\run\mods for mods
[12:30:22] [Client thread/WARN] [zocrpmod]: Mod zocrpmod is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 0.1.0
[12:30:24] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[12:30:25] [Thread-6/INFO] [FML]: Using sync timing. 200 frames of Display.update took 294011415 nanos
[12:30:25] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, zocrpmod] at CLIENT
[12:30:25] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, zocrpmod] at SERVER
[12:30:26] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ZocRP Mod
[12:30:26] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[12:30:26] [Client thread/INFO] [FML]: Found 423 ObjectHolder annotations
[12:30:26] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[12:30:26] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[12:30:26] [Client thread/INFO] [FML]: Applying holder lookups
[12:30:26] [Client thread/INFO] [FML]: Holder lookups applied
[12:30:26] [Client thread/INFO] [FML]: Applying holder lookups
[12:30:26] [Client thread/INFO] [FML]: Holder lookups applied
[12:30:26] [Client thread/INFO] [FML]: Applying holder lookups
[12:30:26] [Client thread/INFO] [FML]: Holder lookups applied
[12:30:27] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[12:30:27] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[12:30:27] [Client thread/INFO] [FML]: Applying holder lookups
[12:30:27] [Client thread/INFO] [FML]: Holder lookups applied
[12:30:27] [Client thread/INFO] [FML]: Injecting itemstacks
[12:30:27] [Client thread/INFO] [FML]: Itemstack injection complete
[12:30:27] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: AHEAD Target: null
[12:30:33] [Sound Library Loader/INFO]: Starting up SoundSystem...
[12:30:33] [Thread-8/INFO]: Initializing LWJGL OpenAL
[12:30:33] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[12:30:33] [Thread-8/INFO]: OpenAL initialized.
[12:30:34] [Sound Library Loader/INFO]: Sound engine started
[12:30:44] [Client thread/INFO] [FML]: Max texture size: 8192
[12:30:44] [Client thread/INFO]: Created: 16x16 textures-atlas
[12:30:45] [Client thread/INFO] [FML]: Injecting itemstacks
[12:30:45] [Client thread/INFO] [FML]: Itemstack injection complete
[12:30:45] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[12:30:45] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ZocRP Mod
[12:30:49] [Client thread/INFO]: SoundSystem shutting down...
[12:30:50] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[12:30:50] [Sound Library Loader/INFO]: Starting up SoundSystem...
[12:30:50] [Thread-10/INFO]: Initializing LWJGL OpenAL
[12:30:50] [Thread-10/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[12:30:50] [Thread-10/INFO]: OpenAL initialized.
[12:30:50] [Sound Library Loader/INFO]: Sound engine started
[12:30:55] [Client thread/INFO] [FML]: Max texture size: 8192
[12:30:55] [Client thread/INFO]: Created: 512x512 textures-atlas
[12:31:04] [Client thread/WARN]: Skipping bad option: lastServer:
[12:31:06] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[12:31:57] [Server thread/INFO]: Starting integrated minecraft server version 1.10.2
[12:31:57] [Server thread/INFO]: Generating keypair
[12:31:57] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[12:31:57] [Server thread/INFO] [FML]: Applying holder lookups
[12:31:57] [Server thread/INFO] [FML]: Holder lookups applied
[12:31:57] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@1a7cb643)
[12:31:58] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@1a7cb643)
[12:31:58] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@1a7cb643)
[12:31:58] [Server thread/INFO]: Preparing start region for level 0
[12:31:59] [Server thread/INFO]: Preparing spawn area: 0%
[12:32:00] [Server thread/INFO]: Preparing spawn area: 44%
[12:32:02] [Server thread/INFO]: Preparing spawn area: 88%
[12:32:04] [Server thread/INFO]: Preparing spawn area: 98%
[12:32:04] [Server thread/INFO]: Changing view distance to 9, from 10
[12:32:06] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[12:32:06] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[12:32:06] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@8.0.99.99,Forge@12.18.3.2316,mcp@9.19,zocrpmod@0.1.0
[12:32:06] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[12:32:06] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[12:32:06] [Server thread/INFO]: Player198[local:E:6d842ff4] logged in with entity id 297 at (-148.5730613591624, 96.0, 273.29860996707055)
[12:32:06] [Server thread/INFO]: Player198 joined the game
[12:32:08] [Server thread/INFO]: Saving and pausing game...
[12:32:09] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[12:32:09] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[12:32:09] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[12:32:10] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@3f438ad5[id=26d3a8a7-c365-3f1b-98bd-1e86d16aa724,name=Player198,properties={},legacy=false]
com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time
	at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:65) ~[YggdrasilAuthenticationService.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:175) [YggdrasilMinecraftSessionService.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:59) [YggdrasilMinecraftSessionService$1.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:56) [YggdrasilMinecraftSessionService$1.class:?]
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:165) [YggdrasilMinecraftSessionService.class:?]
	at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3060) [Minecraft.class:?]
	at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [SkinManager$3.class:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_112]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_112]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_112]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_112]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
[12:32:18] [Server thread/INFO]: Player198 has just earned the achievement [Taking Inventory]
[12:32:18] [Client thread/INFO]: [CHAT] Player198 has just earned the achievement [Taking Inventory]

 

 

Link to comment
Share on other sites

Also, you can use item.getRegistryName() instead "zocrpmod:" + itemName

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

9 hours ago, FilipZocktan said:

And now @Draco18s told me to do it like this

The mesher was called in init. The new model loader call belongs in preInit. Is that where you put it?

 

Note: The log will contain warnings that the console does not show. Learn to read the logs.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

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
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.