Jump to content

Fixed ArmorHandler RegisterRenderer Crashes


clowcadia

Recommended Posts

No idea whats going on, it should work but it crashes

package com.clowcadia.tutorial.handlers;

import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class ArmorHandler 
{
	public static Item helmTutorial;
	public static Item chestTutorial;
	public static Item legsTutorial;
	public static Item bootsTutorial;
	
	public static void init()
	{
		helmTutorial = new ItemTutorialArmor("tutorial_helm_json", CreativeTabHandler.tabBlocks, MaterialHandler.TUTORIAL_ARMOR, 0, EntityEquipmentSlot.HEAD);
		chestTutorial = new ItemTutorialArmor("tutorial_chest_json", CreativeTabHandler.tabBlocks, MaterialHandler.TUTORIAL_ARMOR, 0, EntityEquipmentSlot.CHEST);
		legsTutorial = new ItemTutorialArmor("tutorial_legs_json", CreativeTabHandler.tabBlocks, MaterialHandler.TUTORIAL_ARMOR, 1, EntityEquipmentSlot.LEGS);
		bootsTutorial = new ItemTutorialArmor("tutorial_boots_json", CreativeTabHandler.tabBlocks, MaterialHandler.TUTORIAL_ARMOR, 0, EntityEquipmentSlot.FEET);
	}
	
	public static void register()
	{
		GameRegistry.register(helmTutorial);
		GameRegistry.register(chestTutorial);
		GameRegistry.register(legsTutorial);
		GameRegistry.register(bootsTutorial);
	}
	
	public static void registerRenders()
	{
		registerRender(helmTutorial);
		registerRender(chestTutorial);
		registerRender(legsTutorial);
		registerRender(bootsTutorial);
	}
	
	public static void registerRender(Item item)
	{
		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));
	}

}
2017-02-20 16:42:44,161 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-02-20 16:42:44,163 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[16:42:44] [main/INFO] [GradleStart]: Extra: []
[16:42:44] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Andre/.gradle/caches/minecraft/assets, --assetIndex, 1.11, --accessToken{REDACTED}, --version, 1.11.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[16:42:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[16:42:44] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[16:42:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[16:42:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[16:42:44] [main/INFO] [FML]: Forge Mod Loader version 13.20.0.2228 for Minecraft 1.11.2 loading
[16:42:44] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_121, running on Windows 10:amd64:10.0, installed at C:\Program Files\JDK
[16:42:44] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[16:42:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[16:42:44] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[16:42:44] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[16:42:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:42:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[16:42:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[16:42:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:42:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:42:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:42:44] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[16:42:46] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[16:42:46] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:42:46] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[16:42:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[16:42:47] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[16:42:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[16:42:47] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
2017-02-20 16:42:48,720 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-02-20 16:42:48,777 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-02-20 16:42:48,779 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[16:42:49] [Client thread/INFO]: Setting user: Player608
[16:42:54] [Client thread/WARN]: Skipping bad option: lastServer:
[16:42:54] [Client thread/INFO]: LWJGL Version: 2.9.4
[16:42:56] [Client thread/INFO]: [STDOUT]: ---- Minecraft Crash Report ----
// I let you down. Sorry :(

Time: 2/20/17 4:42 PM
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.11.2
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 1.8.0_121, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 897528280 bytes (855 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: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 369.09' Renderer: 'GeForce 920MX/PCIe/SSE2'
[16:42:56] [Client thread/INFO] [FML]: MinecraftForge v13.20.0.2228 Initialized
[16:42:56] [Client thread/INFO] [FML]: Replaced 232 ore recipes
[16:42:56] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[16:42:56] [Client thread/INFO] [FML]: Searching C:\Users\Andre\OneDrive\Documents\forge\1.11\run\mods for mods
[16:42:58] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[16:42:59] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, tutorial] at CLIENT
[16:42:59] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, tutorial] at SERVER
[16:43:00] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Tutorial Mod
[16:43:00] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[16:43:00] [Client thread/INFO] [FML]: Found 444 ObjectHolder annotations
[16:43:00] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[16:43:00] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[16:43:00] [Client thread/INFO] [FML]: Applying holder lookups
[16:43:00] [Client thread/INFO] [FML]: Holder lookups applied
[16:43:00] [Client thread/INFO] [FML]: Applying holder lookups
[16:43:00] [Client thread/INFO] [FML]: Holder lookups applied
[16:43:00] [Client thread/INFO] [FML]: Applying holder lookups
[16:43:00] [Client thread/INFO] [FML]: Holder lookups applied
[16:43:00] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[16:43:00] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[16:43:00] [Client thread/INFO] [FML]: Applying holder lookups
[16:43:00] [Client thread/INFO] [FML]: Holder lookups applied
[16:43:00] [Client thread/INFO] [FML]: Injecting itemstacks
[16:43:00] [Client thread/INFO] [FML]: Itemstack injection complete
[16:43:00] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: UP_TO_DATE Target: null
[16:43:04] [Sound Library Loader/INFO]: Starting up SoundSystem...
[16:43:05] [Thread-8/INFO]: Initializing LWJGL OpenAL
[16:43:05] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[16:43:05] [Thread-8/INFO]: OpenAL initialized.
[16:43:05] [Sound Library Loader/INFO]: Sound engine started
[16:43:12] [Client thread/INFO] [FML]: Max texture size: 16384
[16:43:12] [Client thread/INFO]: Created: 16x16 textures-atlas
[16:43:13] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
[16:43:13] [Client thread/ERROR] [FML]: 
	States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
	UCHI	minecraft{1.11.2} [Minecraft] (minecraft.jar) 
	UCHI	mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
	UCHI	FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.11.2-13.20.0.2228.jar) 
	UCHI	forge{13.20.0.2228} [Minecraft Forge] (forgeSrc-1.11.2-13.20.0.2228.jar) 
	UCHE	tutorial{1.0_a} [Tutorial Mod] (bin) 
[16:43:13] [Client thread/ERROR] [FML]: The following problems were captured during this phase
[16:43:13] [Client thread/ERROR] [FML]: Caught exception from Tutorial Mod (tutorial)
java.lang.NullPointerException
	at com.clowcadia.tutorial.handlers.ArmorHandler.registerRender(ArmorHandler.java:42) ~[bin/:?]
	at com.clowcadia.tutorial.handlers.ArmorHandler.registerRenders(ArmorHandler.java:34) ~[bin/:?]
	at com.clowcadia.tutorial.proxy.ClientProxy.init(ClientProxy.java:16) ~[bin/:?]
	at com.clowcadia.tutorial.TutorialMod.init(TutorialMod.java:33) ~[bin/:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
	at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:643) ~[forgeSrc-1.11.2-13.20.0.2228.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
	at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
	at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
	at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
	at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:246) ~[forgeSrc-1.11.2-13.20.0.2228.jar:?]
	at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:224) ~[forgeSrc-1.11.2-13.20.0.2228.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
	at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
	at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
	at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
	at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:147) [LoadController.class:?]
	at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:809) [Loader.class:?]
	at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:343) [FMLClientHandler.class:?]
	at net.minecraft.client.Minecraft.init(Minecraft.java:562) [Minecraft.class:?]
	at net.minecraft.client.Minecraft.run(Minecraft.java:387) [Minecraft.class:?]
	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
	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_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
	at GradleStart.main(GradleStart.java:26) [start/:?]
[16:43:13] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: ---- Minecraft Crash Report ----
// On the bright side, I bought you a teddy bear!

Time: 2/20/17 4:43 PM
Description: There was a severe problem during mod loading that has caused the game to fail

net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Tutorial Mod (tutorial)
Caused by: java.lang.NullPointerException
	at com.clowcadia.tutorial.handlers.ArmorHandler.registerRender(ArmorHandler.java:42)
	at com.clowcadia.tutorial.handlers.ArmorHandler.registerRenders(ArmorHandler.java:34)
	at com.clowcadia.tutorial.proxy.ClientProxy.init(ClientProxy.java:16)
	at com.clowcadia.tutorial.TutorialMod.init(TutorialMod.java:33)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:643)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
	at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
	at com.google.common.eventbus.EventBus.post(EventBus.java:275)
	at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:246)
	at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:224)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
	at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
	at com.google.common.eventbus.EventBus.post(EventBus.java:275)
	at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:147)
	at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:809)
	at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:343)
	at net.minecraft.client.Minecraft.init(Minecraft.java:562)
	at net.minecraft.client.Minecraft.run(Minecraft.java:387)
	at net.minecraft.client.main.Main.main(Main.java:118)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
	at GradleStart.main(GradleStart.java:26)


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

-- System Details --
Details:
	Minecraft Version: 1.11.2
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 1.8.0_121, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 875145816 bytes (834 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: MCP 9.38 Powered by Forge 13.20.0.2228 5 mods loaded, 5 mods active
	States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
	UCHI	minecraft{1.11.2} [Minecraft] (minecraft.jar) 
	UCHI	mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
	UCHI	FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.11.2-13.20.0.2228.jar) 
	UCHI	forge{13.20.0.2228} [Minecraft Forge] (forgeSrc-1.11.2-13.20.0.2228.jar) 
	UCHE	tutorial{1.0_a} [Tutorial Mod] (bin) 
	Loaded coremods (and transformers): 
	GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 369.09' Renderer: 'GeForce 920MX/PCIe/SSE2'
[16:43:13] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Andre\OneDrive\Documents\forge\1.11\run\.\crash-reports\crash-2017-02-20_16.43.13-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

Edited by clowcadia
Link to comment
Share on other sites

sure

package com.clowcadia.tutorial.proxy;

import com.clowcadia.tutorial.handlers.ArmorHandler;
import com.clowcadia.tutorial.handlers.BlockHandler;
import com.clowcadia.tutorial.handlers.ItemHandler;
import com.clowcadia.tutorial.world.WorldGenOre;

import net.minecraftforge.fml.common.registry.GameRegistry;

//Class to put Tile Entities
public class ClientProxy extends CommonProxy
{
	public void init() 
	{
		ArmorHandler.registerRenders();
		ItemHandler.registerRenders();		
		BlockHandler.registerRenders();
		
	}

}

 

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I'm trying to make my own modpack, but sometimes, in certain areas of the world, the game just says "server closed". Minecraft doesn't close, it just returns to the menu. When I tried to figure it out on my own and understand the logs, I didn't understand anything (English is not my native language, so it's difficult for me). I've been trying to solve the problem for the third month. So I ask if anyone is good at this and it's not difficult for you, to help me with this. If you need details, ask. I'll describe everything. What it looks like Logs
    • Hi i installed modpack to my server, it starts but when i join it crashes everytime, im running 1.20.1 forge version, all client mods are deleted from the server.   java.lang.NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$DefaultSSLContext at java.lang.Class.forName0(Native Method) ~[?:?] {re:mixin} at java.lang.Class.forName(Class.java:390) ~[?:?] {re:mixin} at java.lang.Class.forName(Class.java:381) ~[?:?] {re:mixin} at java.security.Provider$Service.getImplClass(Provider.java:1967) ~[?:?] {} at java.security.Provider$Service.getDefaultConstructor(Provider.java:1998) ~[?:?] {} at java.security.Provider$Service.newInstanceOf(Provider.java:1912) ~[?:?] {} at java.security.Provider$Service.newInstanceUtil(Provider.java:1920) ~[?:?] {} at java.security.Provider$Service.newInstance(Provider.java:1895) ~[?:?] {} at sun.security.jca.GetInstance.getInstance(GetInstance.java:236) ~[?:?] {} at sun.security.jca.GetInstance.getInstance(GetInstance.java:164) ~[?:?] {} at javax.net.ssl.SSLContext.getInstance(SSLContext.java:185) ~[?:?] {} at javax.net.ssl.SSLContext.getDefault(SSLContext.java:110) ~[?:?] {} at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:83) ~[?:?] {} at javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:336) ~[?:?] {} at javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:292) ~[?:?] {} at sun.net.www.protocol.https.HttpsURLConnectionImpl.&lt;init&gt;(HttpsURLConnectionImpl.java:81) ~[?:?] {} at sun.net.www.protocol.https.Handler.openConnection(Handler.java:62) ~[?:?] {} at sun.net.www.protocol.https.Handler.openConnection(Handler.java:57) ~[?:?] {} at java.net.URL.openConnection(URL.java:1095) ~[?:?] {re:mixin} at java.net.URL.openStream(URL.java:1162) ~[?:?] {re:mixin} at xxrexraptorxx.additionalstructures.utils.Events.SupporterCheck(Events.java:129) ~[AdditionalStructures-1.20.x-(v.4.2.2).jar%23401!/:4.2.2] {re:classloading} at xxrexraptorxx.additionalstructures.utils.Events.SupporterRewards(Events.java:86) ~[AdditionalStructures-1.20.x-(v.4.2.2).jar%23401!/:4.2.2] {re:classloading} at xxrexraptorxx.additionalstructures.utils.__Events_SupporterRewards_PlayerLoggedInEvent.invoke(.dynamic) ~[AdditionalStructures-1.20.x-(v.4.2.2).jar%23401!/:4.2.2] {re:classloading,pl:eventbus:B} at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) ~[eventbus-6.0.5.jar%2352!/:?] {} at net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) ~[eventbus-6.0.5.jar%2352!/:?] {} at net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) ~[eventbus-6.0.5.jar%2352!/:?] {} at net.minecraftforge.event.ForgeEventFactory.firePlayerLoggedIn(ForgeEventFactory.java:875) ~[forge-1.20.1-47.3.0-universal.jar%23694!/:?] {re:mixin,re:classloading,pl:mixin:A} at net.minecraft.server.players.PlayerList.m_11261_(PlayerList.java:261) ~[server-1.20.1-20230612.114412-srg.jar%23689!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at net.minecraft.server.network.ServerLoginPacketListenerImpl.m_143699_(ServerLoginPacketListenerImpl.java:139) ~[server-1.20.1-20230612.114412-srg.jar%23689!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:krypton.mixins.json:shared.network.pipeline.encryption.ServerLoginNetworkHandlerMixin,pl:mixin:APP:connectivity.mixins.json:ServerLoginNetHandlerMixin,pl:mixin:A} at net.minecraft.server.network.ServerLoginPacketListenerImpl.m_10055_(ServerLoginPacketListenerImpl.java:126) ~[server-1.20.1-20230612.114412-srg.jar%23689!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:krypton.mixins.json:shared.network.pipeline.encryption.ServerLoginNetworkHandlerMixin,pl:mixin:APP:connectivity.mixins.json:ServerLoginNetHandlerMixin,pl:mixin:A} at net.minecraft.server.network.ServerLoginPacketListenerImpl.m_9933_(ServerLoginPacketListenerImpl.java:70) ~[server-1.20.1-20230612.114412-srg.jar%23689!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:krypton.mixins.json:shared.network.pipeline.encryption.ServerLoginNetworkHandlerMixin,pl:mixin:APP:connectivity.mixins.json:ServerLoginNetHandlerMixin,pl:mixin:A} at net.minecraft.network.Connection.m_129483_(Connection.java:263) ~[server-1.20.1-20230612.114412-srg.jar%23689!/:?] {re:mixin,re:classloading,pl:mixin:APP:connectivity.mixins.json:AdvancedPacketErrorLogging,pl:mixin:APP:krypton.mixins.json:shared.network.flushconsolidation.ClientConnectionMixin,pl:mixin:APP:krypton.mixins.json:shared.network.pipeline.compression.ClientConnectionMixin,pl:mixin:APP:krypton.mixins.json:shared.network.pipeline.encryption.ClientConnectionMixin,pl:mixin:APP:connectivity.mixins.json:ConnectionErrorMixin,pl:mixin:APP:connectivity.mixins.json:NetworkManagerMixin,pl:mixin:A} at net.minecraft.server.network.ServerConnectionListener.m_9721_(ServerConnectionListener.java:142) ~[server-1.20.1-20230612.114412-srg.jar%23689!/:?] {re:mixin,re:classloading} at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:907) ~[server-1.20.1-20230612.114412-srg.jar%23689!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-common.mixins.json:core.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:neruina.mixins.json:MinecraftServerMixin,pl:mixin:A} at net.minecraft.server.dedicated.DedicatedServer.m_5703_(DedicatedServer.java:283) ~[server-1.20.1-20230612.114412-srg.jar%23689!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:lithostitched.mixins.json:server.DedicatedServerMixin,pl:mixin:APP:mixins/common/nochatreports.mixins.json:server.MixinDedicatedServer,pl:mixin:APP:tombstone.mixins.json:DedicatedServerMixin,pl:mixin:A} at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:814) ~[server-1.20.1-20230612.114412-srg.jar%23689!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-common.mixins.json:core.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:neruina.mixins.json:MinecraftServerMixin,pl:mixin:A} at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:661) ~[server-1.20.1-20230612.114412-srg.jar%23689!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-common.mixins.json:core.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:neruina.mixins.json:MinecraftServerMixin,pl:mixin:A} at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251) ~[server-1.20.1-20230612.114412-srg.jar%23689!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-common.mixins.json:core.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:neruina.mixins.json:MinecraftServerMixin,pl:mixin:A} at java.lang.Thread.run(Thread.java:1589) ~[?:?] {re:mixin} Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.ExceptionInInitializerError [in thread " Iron Furnaces Update Checker"] at javax.crypto.Cipher.getInstance(Cipher.java:548) ~[?:?] {re:mixin} at sun.security.ssl.SSLCipher.isTransformationAvailable(SSLCipher.java:523) ~[?:?] {} at sun.security.ssl.SSLCipher.<init>(SSLCipher.java:512) ~[?:?] {} at sun.security.ssl.SSLCipher.<clinit>(SSLCipher.java:93) ~[?:?] {} at sun.security.ssl.CipherSuite.<clinit>(CipherSuite.java:65) ~[?:?] {} at sun.security.ssl.SSLContextImpl.getApplicableSupportedCipherSuites(SSLContextImpl.java:343) ~[?:?] {} at sun.security.ssl.SSLContextImpl$AbstractTLSContext.<clinit>(SSLContextImpl.java:556) ~[?:?] {} at java.lang.Class.forName0(Native Method) ~[?:?] {re:mixin} at java.lang.Class.forName(Class.java:390) ~[?:?] {re:mixin} at java.lang.Class.forName(Class.java:381) ~[?:?] {re:mixin} at java.security.Provider$Service.getImplClass(Provider.java:1967) ~[?:?] {} at java.security.Provider$Service.getDefaultConstructor(Provider.java:1998) ~[?:?] {} at java.security.Provider$Service.newInstanceOf(Provider.java:1912) ~[?:?] {} at java.security.Provider$Service.newInstanceUtil(Provider.java:1920) ~[?:?] {} at java.security.Provider$Service.newInstance(Provider.java:1895) ~[?:?] {} at sun.security.jca.GetInstance.getInstance(GetInstance.java:236) ~[?:?] {} at sun.security.jca.GetInstance.getInstance(GetInstance.java:164) ~[?:?] {} at javax.net.ssl.SSLContext.getInstance(SSLContext.java:185) ~[?:?] {} at javax.net.ssl.SSLContext.getDefault(SSLContext.java:110) ~[?:?] {} at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:83) ~[?:?] {} at javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:336) ~[?:?] {} at javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:292) ~[?:?] {} at sun.net.www.protocol.https.HttpsURLConnectionImpl.&lt;init&gt;(HttpsURLConnectionImpl.java:81) ~[?:?] {} at sun.net.www.protocol.https.Handler.openConnection(Handler.java:62) ~[?:?] {} at sun.net.www.protocol.https.Handler.openConnection(Handler.java:57) ~[?:?] {} at java.net.URL.openConnection(URL.java:1095) ~[?:?] {re:mixin} at java.net.URL.openStream(URL.java:1162) ~[?:?] {re:mixin} at ironfurnaces.update.ThreadUpdateChecker.run(ThreadUpdateChecker.java:30) ~[ironfurnaces-1.20.1-4.1.6.jar%23534!/:4.1.6] {re:classloading}
    • If anyone is wanting to know, the solution looked like this:   // Helper method to check sunlight conditions (including daylight) private static boolean isSufficientSunlight(Level world, BlockPos pos) { int skyLight = world.getBrightness(LightLayer.SKY, pos); long dayTime = world.getDayTime() % 24000; // Check if it's daytime and if there is enough sunlight return dayTime < 12000 && skyLight >= 5; } @SubscribeEvent public static void onCropGrow(BlockEvent.CropGrowEvent.Post event) { Level world = (Level) event.getLevel(); if (world.isClientSide) return; // Don't run logic on the client side BlockPos pos = event.getPos(); // Check if the block is a glowberry vine, skip destruction if it is if (event.getState().getBlock() == Blocks.CAVE_VINES || event.getState().getBlock() == Blocks.CAVE_VINES_PLANT) { // Skip glowberry vines return; } // Check sunlight and time restrictions if (world.getBrightness(LightLayer.SKY, pos) < 13) { // Destroy the crop (turn it into air) if there is not strong sunlight world.removeBlock(pos, false); } } // Doesn't let animals breed if there is no sunlight @SubscribeEvent public static void onAnimalBreed(BabyEntitySpawnEvent event) { Level world = event.getParentA().getCommandSenderWorld(); if (world.isClientSide) return; // Don't run logic on the client side if (!(event.getParentA() instanceof Animal) || !(event.getParentB() instanceof Animal)) { return; // Ensure it is animals breeding } Animal parentA = (Animal) event.getParentA(); Animal parentB = (Animal) event.getParentB(); // Doesn't let chicken breed if (parentA instanceof Chicken || parentB instanceof Chicken){ event.setCanceled(true); return; } if (!isSufficientSunlight(world, parentA.blockPosition())) { // Cancel the breeding event event.setCanceled(true); return; } if (!isSufficientSunlight(world, parentB.blockPosition())) { // Cancel the breeding event event.setCanceled(true); } }  
  • Topics

×
×
  • Create New...

Important Information

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