Jump to content

Recommended Posts

Posted

what do I return there? I returned null since my only gui so far has no Container/is a basic gui with no slots.

but that makes minecraft crash ans forge complain that there's nothing there.  :-\

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Posted

If your GUI has no

Container

, return

null

from

IGuiHandler#getServerGuiElement

and only call

EntityPlayer#openGUI

on the client.

 

If it's crashing, post the crash report and your code.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

So I was right to return null... Anyways, enjoy

 

---- Minecraft Crash Report ----
// Don't be sad. I'll do better next time, I promise!

Time: 14/06/16 12:33 AM
Description: Unexpected error

java.lang.NullPointerException: Unexpected error
at net.minecraftforge.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:266)
at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:102)
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2590)
at mod.TGC1.SoulCraft.Customs.Items.ItemNoteBook.onItemRightClick(ItemNoteBook.java:31)
at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:170)
at net.minecraft.client.multiplayer.PlayerControllerMP.sendUseItem(PlayerControllerMP.java:471)
at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1598)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:2123)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1080)
at net.minecraft.client.Minecraft.run(Minecraft.java:380)
at net.minecraft.client.main.Main.main(Main.java:116)
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:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at net.minecraftforge.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:266)
at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:102)
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2590)
at mod.TGC1.SoulCraft.Customs.Items.ItemNoteBook.onItemRightClick(ItemNoteBook.java:31)
at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:170)
at net.minecraft.client.multiplayer.PlayerControllerMP.sendUseItem(PlayerControllerMP.java:471)
at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1598)

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityPlayerSP['Player172'/134, l='MpServer', x=-264.42, y=5.01, z=-300.05]]
Chunk stats: MultiplayerChunkCache: 581, 581
Level seed: 0
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options: 
Level spawn location: -123.00,4.00,-205.00 - World: (-123,4,-205), Chunk: (at 5,0,3 in -8,-13; contains blocks -128,0,-208 to -113,255,-193), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
Level time: 16375 game time, 16375 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 9 total; [EntityVillager['Villager'/13, l='MpServer', x=-197.72, y=5.00, z=-360.69], EntityVillager['Villager'/14, l='MpServer', x=-196.31, y=5.00, z=-360.69], EntityVillager['Villager'/15, l='MpServer', x=-197.72, y=5.00, z=-358.31], EntityVillager['Villager'/16, l='MpServer', x=-197.19, y=5.00, z=-359.88], EntityVillager['Villager'/17, l='MpServer', x=-197.72, y=5.00, z=-359.16], EntityVillager['Villager'/18, l='MpServer', x=-197.72, y=5.00, z=-361.53], EntitySheep['Sheep'/19, l='MpServer', x=-192.19, y=4.00, z=-302.81], EntityPlayerSP['Player172'/134, l='MpServer', x=-264.42, y=5.01, z=-300.05], EntityVillager['Villager'/24, l='MpServer', x=-187.47, y=5.00, z=-322.09]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:383)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2645)
at net.minecraft.client.Minecraft.run(Minecraft.java:409)
at net.minecraft.client.main.Main.main(Main.java:116)
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)

-- System Details --
Details:
Minecraft Version: 1.8.9
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_91, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 746356016 bytes (711 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.19 Powered by Forge 11.15.1.1855 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA	mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
UCHIJAAAA	FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8.9-11.15.1.1855.jar) 
UCHIJAAAA	Forge{11.15.1.1855} [Minecraft Forge] (forgeSrc-1.8.9-11.15.1.1855.jar) 
UCHIJAAAA	sc{0.1} [soul Craft] (bin) 
Loaded coremods (and transformers): 
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.201.1101.0' Renderer: 'AMD Radeon HD 8330'
Launched Version: 1.8.9
LWJGL: 2.9.4
OpenGL: AMD Radeon HD 8330 GL version 4.5.13399 Compatibility Profile Context 15.201.1101.0, ATI Technologies Inc.
GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

Using VBOs: No
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: 
Current Language: English (US)
Profiler Position: N/A (disabled)
CPU: 4x AMD A4-5000 APU with Radeon(TM) HD Graphics 

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Posted
java.lang.NullPointerException: Unexpected error

at net.minecraftforge.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:266)

at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:102)

at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2590)

at mod.TGC1.SoulCraft.Customs.Items.ItemNoteBook.onItemRightClick(ItemNoteBook.java:31)

 

You passed an invalid or

null

value as the

mod

argument of

EntityPlayer#openGui

. This probably means you didn't annotate your mod's instance field with

@Instance

or you used the wrong mod ID in the annotation.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

Most likely the anotation.

 

ItemNoteBook.java

	@Override
public ItemStack onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn) {
	playerIn.openGui(SoulCraft.SoulCraft, References.MOD_GUI_NOTEBOOK, worldIn,(int) playerIn.posX,(int) playerIn.posY,(int) playerIn.posZ);
	return itemStackIn;
}

 

SoulCraft.java

@Mod(modid = References.MOD_ID , name = References.MOD_NAME, version = References.MOD_VERSION)
public class SoulCraft 
{
@Mod.Instance("SoulCraft")
public static SoulCraft SoulCraft;

@SidedProxy(clientSide="mod.TGC1.SoulCraft.proxy.ClientProxy", serverSide="mod.TGC1.SoulCraft.proxy.ServerProxy")
public static CommonProxy proxy;

@EventHandler
public void preInit(FMLPreInitializationEvent event) 
{
	ModItems.init();
	ModItems.registerItems();
	proxy.init();
}

@EventHandler
public void init(FMLInitializationEvent event) 
{

}

@EventHandler
public static void postInit(FMLPostInitializationEvent event) 
{

}
}

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Posted

Why aren't you using the existing constant (

References.MOD_ID

) in your

@Instance

annotation?

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

Why aren't you using the existing constant (

References.MOD_ID

) in your

@Instance

annotation?

 

Because it doesn't change anything (that's not the reason, but it actually really does not prevent crash)

 

---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!

Time: 14/06/16 2:56 PM
Description: Unexpected error

java.lang.NullPointerException: Unexpected error
at net.minecraftforge.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:266)
at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:102)
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2590)
at mod.TGC1.SoulCraft.Customs.Items.ItemNoteBook.onItemRightClick(ItemNoteBook.java:32)
at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:170)
at net.minecraft.client.multiplayer.PlayerControllerMP.sendUseItem(PlayerControllerMP.java:471)
at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1598)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:2123)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1080)
at net.minecraft.client.Minecraft.run(Minecraft.java:380)
at net.minecraft.client.main.Main.main(Main.java:116)
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:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at net.minecraftforge.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:266)
at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:102)
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2590)
at mod.TGC1.SoulCraft.Customs.Items.ItemNoteBook.onItemRightClick(ItemNoteBook.java:32)
at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:170)
at net.minecraft.client.multiplayer.PlayerControllerMP.sendUseItem(PlayerControllerMP.java:471)
at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1598)

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityPlayerSP['Player835'/134, l='MpServer', x=-264.40, y=5.01, z=-300.03]]
Chunk stats: MultiplayerChunkCache: 597, 597
Level seed: 0
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options: 
Level spawn location: -123.00,4.00,-205.00 - World: (-123,4,-205), Chunk: (at 5,0,3 in -8,-13; contains blocks -128,0,-208 to -113,255,-193), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
Level time: 16754 game time, 16754 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 9 total; [EntityVillager['Villager'/16, l='MpServer', x=-197.00, y=5.00, z=-359.97], EntityVillager['Villager'/17, l='MpServer', x=-197.72, y=5.00, z=-358.31], EntityVillager['Villager'/18, l='MpServer', x=-197.72, y=5.00, z=-361.53], EntitySheep['Sheep'/19, l='MpServer', x=-191.66, y=4.00, z=-307.78], EntityVillager['Villager'/21, l='MpServer', x=-187.47, y=5.00, z=-322.09], EntityPlayerSP['Player835'/134, l='MpServer', x=-264.40, y=5.01, z=-300.03], EntityVillager['Villager'/13, l='MpServer', x=-197.72, y=5.00, z=-359.16], EntityVillager['Villager'/14, l='MpServer', x=-197.72, y=5.00, z=-360.69], EntityVillager['Villager'/15, l='MpServer', x=-196.31, y=5.00, z=-360.72]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:383)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2645)
at net.minecraft.client.Minecraft.run(Minecraft.java:409)
at net.minecraft.client.main.Main.main(Main.java:116)
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)

-- System Details --
Details:
Minecraft Version: 1.8.9
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_91, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 707250328 bytes (674 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.19 Powered by Forge 11.15.1.1855 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA	mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
UCHIJAAAA	FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8.9-11.15.1.1855.jar) 
UCHIJAAAA	Forge{11.15.1.1855} [Minecraft Forge] (forgeSrc-1.8.9-11.15.1.1855.jar) 
UCHIJAAAA	sc{0.1} [soul Craft] (bin) 
Loaded coremods (and transformers): 
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.201.1101.0' Renderer: 'AMD Radeon HD 8330'
Launched Version: 1.8.9
LWJGL: 2.9.4
OpenGL: AMD Radeon HD 8330 GL version 4.5.13399 Compatibility Profile Context 15.201.1101.0, ATI Technologies Inc.
GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

Using VBOs: No
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: 
Current Language: English (US)
Profiler Position: N/A (disabled)
CPU: 4x AMD A4-5000 APU with Radeon(TM) HD Graphics 

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Posted

Ah, you're never registering your

IGuiHandler

from anywhere (at least not in the code you've posted). Call

NetworkRegistry#registerGuiHandler

in preInit.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

Ah, you're never registering your

IGuiHandler

from anywhere (at least not in the code you've posted). Call

NetworkRegistry#registerGuiHandler

in preInit.

 

I did, I originally put it in preinit but it crashed at launch.

 

It's now in my commonproxy

package mod.TGC1.SoulCraft;


import mod.TGC1.SoulCraft.proxy.ModGuiHandler;
import net.minecraftforge.fml.common.network.NetworkRegistry;

public class CommonProxy {

public void init()
{
	NetworkRegistry.INSTANCE.registerGuiHandler(SoulCraft.SoulCraft, new ModGuiHandler());
}
}

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Posted

Post your client proxy class.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

 

I'm pretty sure it's my dull understanding of annotations. Sorry

package mod.TGC1.SoulCraft.proxy;

import mod.TGC1.SoulCraft.CommonProxy;
import mod.TGC1.SoulCraft.References;
import mod.TGC1.SoulCraft.init.ModItems;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.client.model.ModelLoader;

public class ClientProxy extends CommonProxy{

@Override
public void init()
{
	renderAllItems();
}

public void renderAllItems()
{
	renderItem(ModItems.NoteBook);
}

public void renderItem(Item item)
{
	ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));
}
}

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Posted

ClientProxy#init

overrides

CommonProxy#init

, but never calls the super method. This means that your

IGuiHandler

is only registered on the dedicated server and not on the client.

 

Make

ClientProxy#init

call the super method.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

[ftp][/ftp]

ClientProxy#init

overrides

CommonProxy#init

, but never calls the super method. This means that your

IGuiHandler

is only registered on the dedicated server and not on the client.

 

Make

ClientProxy#init

call the super method.

 

I thought the annotation was to choose whether client or server should be called. I have a bad idea of what proxies are  :P

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Posted

UPDATE! not working  :'(

 

Edit: fixed it, working code below

---- Minecraft Crash Report ----
// Surprise! Haha. Well, this is awkward.

Time: 14/06/16 3:23 PM
Description: Unexpected error

java.lang.NullPointerException: Unexpected error
at net.minecraftforge.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:266)
at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:102)
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2590)
at mod.TGC1.SoulCraft.Customs.Items.ItemNoteBook.onItemRightClick(ItemNoteBook.java:32)
at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:170)
at net.minecraft.client.multiplayer.PlayerControllerMP.sendUseItem(PlayerControllerMP.java:471)
at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1598)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:2123)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1080)
at net.minecraft.client.Minecraft.run(Minecraft.java:380)
at net.minecraft.client.main.Main.main(Main.java:116)
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:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at net.minecraftforge.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:266)
at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:102)
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2590)
at mod.TGC1.SoulCraft.Customs.Items.ItemNoteBook.onItemRightClick(ItemNoteBook.java:32)
at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:170)
at net.minecraft.client.multiplayer.PlayerControllerMP.sendUseItem(PlayerControllerMP.java:471)
at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1598)

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityPlayerSP['Player985'/135, l='MpServer', x=-264.40, y=5.01, z=-300.03]]
Chunk stats: MultiplayerChunkCache: 330, 330
Level seed: 0
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options: 
Level spawn location: -123.00,4.00,-205.00 - World: (-123,4,-205), Chunk: (at 5,0,3 in -8,-13; contains blocks -128,0,-208 to -113,255,-193), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
Level time: 16880 game time, 16880 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 9 total; [EntityVillager['Villager'/16, l='MpServer', x=-196.91, y=5.00, z=-359.69], EntityVillager['Villager'/17, l='MpServer', x=-197.72, y=5.00, z=-358.31], EntityVillager['Villager'/18, l='MpServer', x=-190.72, y=4.00, z=-364.44], EntityVillager['Villager'/20, l='MpServer', x=-187.38, y=5.00, z=-323.34], EntityPlayerSP['Player985'/135, l='MpServer', x=-264.40, y=5.01, z=-300.03], EntitySheep['Sheep'/23, l='MpServer', x=-191.66, y=4.00, z=-307.78], EntityVillager['Villager'/13, l='MpServer', x=-197.72, y=5.00, z=-359.22], EntityVillager['Villager'/14, l='MpServer', x=-197.72, y=5.00, z=-360.59], EntityVillager['Villager'/15, l='MpServer', x=-196.31, y=5.00, z=-360.72]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:383)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2645)
at net.minecraft.client.Minecraft.run(Minecraft.java:409)
at net.minecraft.client.main.Main.main(Main.java:116)
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)

-- System Details --
Details:
Minecraft Version: 1.8.9
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_91, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 690236112 bytes (658 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.19 Powered by Forge 11.15.1.1855 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA	mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
UCHIJAAAA	FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8.9-11.15.1.1855.jar) 
UCHIJAAAA	Forge{11.15.1.1855} [Minecraft Forge] (forgeSrc-1.8.9-11.15.1.1855.jar) 
UCHIJAAAA	sc{0.1} [soul Craft] (bin) 
Loaded coremods (and transformers): 
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.201.1101.0' Renderer: 'AMD Radeon HD 8330'
Launched Version: 1.8.9
LWJGL: 2.9.4
OpenGL: AMD Radeon HD 8330 GL version 4.5.13399 Compatibility Profile Context 15.201.1101.0, ATI Technologies Inc.
GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

Using VBOs: No
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: 
Current Language: English (US)
Profiler Position: N/A (disabled)
CPU: 4x AMD A4-5000 APU with Radeon(TM) HD Graphics 

 

new Clientproxy.java

package mod.TGC1.SoulCraft.proxy;

import mod.TGC1.SoulCraft.CommonProxy;
import mod.TGC1.SoulCraft.References;
import mod.TGC1.SoulCraft.init.ModItems;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.client.model.ModelLoader;

public class ClientProxy extends CommonProxy{

@Override
public void init()
{
                super.init();
	renderAllItems();
}

public void renderAllItems()
{
	renderItem(ModItems.NoteBook);
}

public void renderItem(Item item)
{
	ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));
}
}

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

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



×
×
  • Create New...

Important Information

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