Use World#getBlockState to get the IBlockState at a BlockPos and IBlockState#getBlock to get the IBlockState's Block.
You can use BlockPos#offset to offset the BlockPos in the direction specified by an EnumFacing. You can iterate over BlockPos.VALUES to check every direction or BlockPos.HORIZONTALS to only check the horizontal directions.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
You need to iterate over the EnumFacing.VALUES array, offset your block's BlockPos in the current direction and check if the block at that position is the other block.
Depending on what you want to do when the blocks are touching, you may need to send a packet to the server and perform the action there.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
You need to iterate over the EnumFacing.VALUES array, offset your block's BlockPos in the current direction and check if the block at that position is the other block.
Depending on what you want to do when the blocks are touching, you may need to send a packet to the server and perform the action there.
how would I do that? I'm a new modder. I see EnumFacing.VALUES, but how would I put that in the code?
Use an enhanced for statement (a.k.a. a for each loop) to iterate over EnumFacing.VALUES.
// mainPos is the main block's BlockPos, world is the current World
for (EnumFacing direction : EnumFacing.VALUES){ // For each direction
BlockPos neighbourPos = mainPos.offset(direction); // Offset the block's position by 1 block in the current direction
IBlockState neighbourState = world.getBlockState(neighbourPos); // Get the IBlockState at the neighboring position
Block neighbourBlock = neighbourState.getBlock(); // Get the IBlockState's Block
if (neighbourBlock == Blocks.coal_block){ // If the neighbouring block is a Coal Block,
// Do something
}
}
Surely your GUI has some reference to the position of the block it was opened for?
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Use an enhanced for statement (a.k.a. a for each loop) to iterate over EnumFacing.VALUES.
// mainPos is the main block's BlockPos, world is the current World
for (EnumFacing direction : EnumFacing.VALUES){ // For each direction
BlockPos neighbourPos = mainPos.offset(direction); // Offset the block's position by 1 block in the current direction
IBlockState neighbourState = world.getBlockState(neighbourPos); // Get the IBlockState at the neighboring position
Block neighbourBlock = neighbourState.getBlock(); // Get the IBlockState's Block
if (neighbourBlock == Blocks.coal_block){ // If the neighbouring block is a Coal Block,
// Do something
}
}
Surely your GUI has some reference to the position of the block it was opened for?
yes, but im doing this in a read from nbt block, should I give it its own function in the tile entity class? I've already tried to do another non @Override function and it wont popup when i do:
Putting the code in a method should work. The TileEntity#pos field contains the TileEntity's position, so you should be able to use that.
If it's not working, post your code and any errors on Gist or Pastebin.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
You're not actually doing anything when you find a neighbouring Control Rail.
Why are you doing this within readFromNBT? Should the TileEntity really be searching for neighbouring blocks when it's being loaded from NBT?
You're also not writing anything to or reading anything from NBT, so none of your TileEntity's data is being saved.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
You're not actually doing anything when you find a neighbouring Control Rail.
Why are you doing this within readFromNBT? Should the TileEntity really be searching for neighbouring blocks when it's being loaded from NBT?
You're also not writing anything to or reading anything from NBT, so none of your TileEntity's data is being saved.
well, when I made another method like this:
public void sendData(World world, NBTTagCompound nbt, BlockPos pos){
//bla bla bla do stuff here
}
it does not work. How can I get this to work? And when I say it does not work I mean I cannot call it from the gui by doing this.tileentity.sendData(world, nbt, pos);
You'll need to be a bit more specific than a method signature and "doesn't work".
Where are you calling this method from, what is it supposed to do and what's not working?
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
If your IDE shows an error on that line, mousing over it should tell you what's wrong.
What type is the tileEntity field? If it's TileEntity, you'll need to cast to genericTileEntity to call sendData on it (since sendData is a method of genericTileEntity rather than TileEntity).
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
If your IDE shows an error on that line, mousing over it should tell you what's wrong.
What type is the tileEntity field? If it's TileEntity, you'll need to cast to genericTileEntity to call sendData on it (since sendData is a method of genericTileEntity rather than TileEntity).
Casting a value before assigning it to a field doesn't change the field's type. The field's type is part of its declaration.
Either make the tileentity field type genericTileEntity or cast its value to genericTileEntity before calling sendData on it.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Casting a value before assigning it to a field doesn't change the field's type. The field's type is part of its declaration.
Either make the tileentity field type genericTileEntity or cast its value to genericTileEntity before calling sendData on it.
upon running the code in the new function it now crashes with this:
[12:17:59] [Client thread/FATAL]: Reported exception thrown!
net.minecraft.util.ReportedException: Updating screen events
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1774) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1087) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:376) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_79]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_79]
at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_79]
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 net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
Caused by: java.lang.NullPointerException
at tutorial.generic.guiGenericTileEntity.actionPerformed(guiGenericTileEntity.java:112) ~[guiGenericTileEntity.class:?]
at net.minecraft.client.gui.GuiScreen.mouseClicked(GuiScreen.java:510) ~[GuiScreen.class:?]
at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:606) ~[GuiScreen.class:?]
at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:572) ~[GuiScreen.class:?]
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1760) ~[Minecraft.class:?]
... 11 more
[12:17:59] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:663]: ---- Minecraft Crash Report ----
// Don't be sad. I'll do better next time, I promise!
java.lang.NullPointerException: Updating screen events
at tutorial.generic.guiGenericTileEntity.actionPerformed(guiGenericTileEntity.java:112)
at net.minecraft.client.gui.GuiScreen.mouseClicked(GuiScreen.java:510)
at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:606)
at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:572)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1760)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1087)
at net.minecraft.client.Minecraft.run(Minecraft.java:376)
at net.minecraft.client.main.Main.main(Main.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at tutorial.generic.guiGenericTileEntity.actionPerformed(guiGenericTileEntity.java:112)
at net.minecraft.client.gui.GuiScreen.mouseClicked(GuiScreen.java:510)
at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:606)
at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:572)
-- System Details --
Details:
Minecraft Version: 1.8
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.7.0_79, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 764048976 bytes (728 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.3.1487 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.05} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8-11.14.3.1487.jar)
UCHIJAAAA Forge{11.14.3.1487} [Minecraft Forge] (forgeSrc-1.8-11.14.3.1487.jar)
UCHIJAAAA generic{0.0.0} [Generic Mod] (bin)
Loaded coremods (and transformers):
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.3.12618 Compatibility Profile Context 13.251.9001.1001' Renderer: 'AMD Radeon HD 7800 Series'
Launched Version: 1.8
LWJGL: 2.9.1
OpenGL: AMD Radeon HD 7800 Series GL version 4.3.12618 Compatibility Profile Context 13.251.9001.1001, 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)
[12:17:59] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:663]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\UltraTechX\Desktop\forge-1.8-11.14.3.1487-src\eclipse\.\crash-reports\crash-2015-07-27_12.17.59-client.txt
at least the casting was able to get the function to be called
java.lang.NullPointerException: Updating screen events
at tutorial.generic.guiGenericTileEntity.actionPerformed(guiGenericTileEntity.java:112)
You're trying to access a member (method or field) of a null value on line 112 of guiGenericTileEntity. You need to ask yourself which value is null and why is it null? Where is it initialised from and why isn't that working?
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
You're trying to access a member (method or field) of a null value on line 112 of guiGenericTileEntity. You need to ask yourself which value is null and why is it null? Where is it initialised from and why isn't that working?
Well, I tried printing all 3 of the variables required, but all of them arent null. And the second time it crashed after printing the 3 variables needed
EDIT : its just calling the method that is crashing it, I wonder why...
so how could I be able to check whether another block i made is next to another block or not?
IDEA : if the block is touching another specific block when the gui closes, run this code
Thanks in advance!
Use World#getBlockState to get the IBlockState at a BlockPos and IBlockState#getBlock to get the IBlockState's Block.
You can use BlockPos#offset to offset the BlockPos in the direction specified by an EnumFacing. You can iterate over BlockPos.VALUES to check every direction or BlockPos.HORIZONTALS to only check the horizontal directions.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
so would I check like this?
You need to iterate over the EnumFacing.VALUES array, offset your block's BlockPos in the current direction and check if the block at that position is the other block.
Depending on what you want to do when the blocks are touching, you may need to send a packet to the server and perform the action there.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
how would I do that? I'm a new modder. I see EnumFacing.VALUES, but how would I put that in the code?
OK i figured out how to iterate it, this is what I have so far:
what's next to put inside it?
PS : I can't figure out how to grab the blockpos.
Use an enhanced for statement (a.k.a. a for each loop) to iterate over EnumFacing.VALUES.
Surely your GUI has some reference to the position of the block it was opened for?
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
yes, but im doing this in a read from nbt block, should I give it its own function in the tile entity class? I've already tried to do another non @Override function and it wont popup when i do:
Putting the code in a method should work. The TileEntity#pos field contains the TileEntity's position, so you should be able to use that.
If it's not working, post your code and any errors on Gist or Pastebin.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
OK, here is the gist : https://gist.github.com/UltraTechX/85f4b2d4d073702d1d5f
Hope You Can Help!
You're not actually doing anything when you find a neighbouring Control Rail.
Why are you doing this within readFromNBT? Should the TileEntity really be searching for neighbouring blocks when it's being loaded from NBT?
You're also not writing anything to or reading anything from NBT, so none of your TileEntity's data is being saved.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
well, when I made another method like this:
it does not work. How can I get this to work? And when I say it does not work I mean I cannot call it from the gui by doing this.tileentity.sendData(world, nbt, pos);
You'll need to be a bit more specific than a method signature and "doesn't work".
Where are you calling this method from, what is it supposed to do and what's not working?
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
look above your message, I added an edit, but i put it here, too.
If your IDE shows an error on that line, mousing over it should tell you what's wrong.
What type is the tileEntity field? If it's TileEntity, you'll need to cast to genericTileEntity to call sendData on it (since sendData is a method of genericTileEntity rather than TileEntity).
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
OK, so I changed the line :
to:
but its still not working.
Casting a value before assigning it to a field doesn't change the field's type. The field's type is part of its declaration.
Either make the tileentity field type genericTileEntity or cast its value to genericTileEntity before calling sendData on it.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
upon running the code in the new function it now crashes with this:
[12:17:59] [Client thread/FATAL]: Reported exception thrown!
net.minecraft.util.ReportedException: Updating screen events
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1774) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1087) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:376) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_79]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_79]
at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_79]
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 net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
Caused by: java.lang.NullPointerException
at tutorial.generic.guiGenericTileEntity.actionPerformed(guiGenericTileEntity.java:112) ~[guiGenericTileEntity.class:?]
at net.minecraft.client.gui.GuiScreen.mouseClicked(GuiScreen.java:510) ~[GuiScreen.class:?]
at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:606) ~[GuiScreen.class:?]
at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:572) ~[GuiScreen.class:?]
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1760) ~[Minecraft.class:?]
... 11 more
[12:17:59] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:663]: ---- Minecraft Crash Report ----
// Don't be sad. I'll do better next time, I promise!
Time: 7/27/15 12:17 PM
Description: Updating screen events
java.lang.NullPointerException: Updating screen events
at tutorial.generic.guiGenericTileEntity.actionPerformed(guiGenericTileEntity.java:112)
at net.minecraft.client.gui.GuiScreen.mouseClicked(GuiScreen.java:510)
at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:606)
at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:572)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1760)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1087)
at net.minecraft.client.Minecraft.run(Minecraft.java:376)
at net.minecraft.client.main.Main.main(Main.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at tutorial.generic.guiGenericTileEntity.actionPerformed(guiGenericTileEntity.java:112)
at net.minecraft.client.gui.GuiScreen.mouseClicked(GuiScreen.java:510)
at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:606)
at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:572)
-- Affected screen --
Details:
Screen name: tutorial.generic.guiGenericTileEntity
-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityPlayerSP['Player15'/204, l='MpServer', x=168.28, y=63.00, z=454.64]]
Chunk stats: MultiplayerChunkCache: 597, 597
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options:
Level spawn location: 104.00,64.00,432.00 - World: (104,64,432), Chunk: (at 8,4,0 in 6,27; contains blocks 96,0,432 to 111,255,447), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 1789 game time, 1789 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: 89 total; [EntitySkeleton['Skeleton'/44, l='MpServer', x=95.84, y=11.00, z=498.50], EntityBat['Bat'/288, l='MpServer', x=120.11, y=13.91, z=534.34], EntityZombie['Zombie'/51, l='MpServer', x=98.50, y=29.00, z=389.50], EntityPig['Pig'/55, l='MpServer', x=104.69, y=64.00, z=420.09], EntityCreeper['Creeper'/53, l='MpServer', x=103.50, y=22.00, z=392.50], EntityCreeper['Creeper'/52, l='MpServer', x=103.63, y=21.00, z=394.00], EntityBat['Bat'/296, l='MpServer', x=209.72, y=34.88, z=414.53], EntitySquid['Squid'/58, l='MpServer', x=106.38, y=59.50, z=466.97], EntitySheep['Sheep'/57, l='MpServer', x=100.56, y=67.00, z=443.31], EntitySheep['Sheep'/56, l='MpServer', x=105.41, y=63.00, z=436.78], EntityZombie['Zombie'/63, l='MpServer', x=101.31, y=12.00, z=498.63], EntitySquid['Squid'/61, l='MpServer', x=107.97, y=61.19, z=466.31], EntitySquid['Squid'/60, l='MpServer', x=109.25, y=59.25, z=468.81], EntitySpider['Spider'/68, l='MpServer', x=126.69, y=26.00, z=409.69], EntityZombie['Zombie'/69, l='MpServer', x=123.50, y=13.00, z=527.50], EntityCreeper['Creeper'/70, l='MpServer', x=119.50, y=13.00, z=526.50], EntityZombie['Zombie'/71, l='MpServer', x=127.47, y=26.00, z=526.91], EntitySkeleton['Skeleton'/64, l='MpServer', x=105.50, y=11.00, z=511.13], EntitySquid['Squid'/67, l='MpServer', x=122.25, y=61.50, z=395.94], EntityCreeper['Creeper'/79, l='MpServer', x=134.50, y=24.00, z=476.50], EntityCreeper['Creeper'/72, l='MpServer', x=122.31, y=26.00, z=521.91], EntityZombie['Zombie'/74, l='MpServer', x=123.50, y=23.00, z=530.50], EntityZombie['Zombie'/75, l='MpServer', x=121.50, y=23.00, z=529.50], EntityZombie['Zombie'/85, l='MpServer', x=137.97, y=28.00, z=529.50], EntityZombie['Zombie'/84, l='MpServer', x=132.56, y=12.00, z=521.00], EntitySheep['Sheep'/81, l='MpServer', x=148.34, y=65.00, z=487.84], EntitySkeleton['Skeleton'/80, l='MpServer', x=139.53, y=20.00, z=478.88], EntityZombie['Zombie'/83, l='MpServer', x=137.50, y=24.00, z=484.50], EntityCreeper['Creeper'/82, l='MpServer', x=140.50, y=18.00, z=488.50], EntitySheep['Sheep'/95, l='MpServer', x=151.91, y=65.00, z=476.84], EntitySheep['Sheep'/94, l='MpServer', x=162.78, y=64.00, z=466.81], EntitySpider['Spider'/89, l='MpServer', x=136.13, y=28.00, z=529.38], EntitySkeleton['Skeleton'/91, l='MpServer', x=139.16, y=29.00, z=530.47], EntityZombie['Zombie'/90, l='MpServer', x=130.06, y=20.00, z=532.75], EntityZombie['Zombie'/98, l='MpServer', x=156.50, y=12.00, z=496.50], EntityCreeper['Creeper'/99, l='MpServer', x=159.50, y=11.00, z=523.50], EntitySheep['Sheep'/96, l='MpServer', x=144.16, y=64.00, z=475.16], EntityEnderman['Enderman'/97, l='MpServer', x=144.50, y=23.00, z=486.50], EntityZombie['Zombie'/110, l='MpServer', x=174.50, y=29.00, z=427.50], EntityZombie['Zombie'/111, l='MpServer', x=168.00, y=19.00, z=473.56], EntityBat['Bat'/108, l='MpServer', x=162.53, y=22.81, z=382.69], EntityBat['Bat'/109, l='MpServer', x=169.34, y=13.34, z=410.47], EntityBat['Bat'/104, l='MpServer', x=165.50, y=25.72, z=395.44], EntityCreeper['Creeper'/119, l='MpServer', x=163.53, y=11.00, z=523.91], EntityCow['Cow'/118, l='MpServer', x=174.09, y=64.00, z=502.97], EntityBat['Bat'/117, l='MpServer', x=171.63, y=59.02, z=505.75], EntityBat['Bat'/116, l='MpServer', x=176.25, y=61.10, z=509.53], EntityPig['Pig'/115, l='MpServer', x=173.72, y=65.00, z=491.84], EntityPig['Pig'/114, l='MpServer', x=164.88, y=64.00, z=492.91], EntityPig['Pig'/113, l='MpServer', x=171.13, y=65.00, z=490.38], EntityZombie['Zombie'/112, l='MpServer', x=175.50, y=12.00, z=488.50], EntityBat['Bat'/127, l='MpServer', x=178.38, y=43.03, z=525.13], EntityBat['Bat'/123, l='MpServer', x=169.88, y=40.44, z=523.56], EntitySkeleton['Skeleton'/122, l='MpServer', x=162.28, y=11.00, z=528.69], EntityBat['Bat'/121, l='MpServer', x=171.56, y=56.78, z=523.00], EntityCreeper['Creeper'/120, l='MpServer', x=162.94, y=11.00, z=531.63], EntitySkeleton['Skeleton'/137, l='MpServer', x=174.78, y=11.00, z=424.66], EntitySkeleton['Skeleton'/136, l='MpServer', x=183.50, y=12.00, z=431.50], EntitySkeleton['Skeleton'/138, l='MpServer', x=180.50, y=12.00, z=431.50], EntitySquid['Squid'/141, l='MpServer', x=190.97, y=61.94, z=424.44], EntitySquid['Squid'/140, l='MpServer', x=187.66, y=53.59, z=422.84], EntityBat['Bat'/143, l='MpServer', x=182.25, y=13.06, z=435.25], EntityBat['Bat'/128, l='MpServer', x=162.31, y=56.94, z=530.38], EntitySquid['Squid'/135, l='MpServer', x=185.66, y=56.25, z=403.25], EntitySquid['Squid'/158, l='MpServer', x=206.97, y=52.97, z=418.09], EntitySquid['Squid'/159, l='MpServer', x=200.91, y=57.28, z=412.97], EntityZombie['Zombie'/144, l='MpServer', x=179.50, y=29.00, z=433.50], EntityCreeper['Creeper'/1486, l='MpServer', x=105.50, y=16.02, z=381.50], EntitySquid['Squid'/146, l='MpServer', x=182.08, y=59.00, z=429.74], EntityBat['Bat'/147, l='MpServer', x=183.50, y=17.22, z=440.13], EntityCow['Cow'/148, l='MpServer', x=183.06, y=64.00, z=492.91], EntityCow['Cow'/149, l='MpServer', x=181.78, y=64.00, z=494.19], EntityPig['Pig'/150, l='MpServer', x=178.13, y=65.00, z=492.94], EntityCow['Cow'/151, l='MpServer', x=184.53, y=64.00, z=491.44], EntitySpider['Spider'/174, l='MpServer', x=232.50, y=53.00, z=446.50], EntityZombie['Zombie'/173, l='MpServer', x=208.50, y=14.00, z=419.50], EntityBat['Bat'/163, l='MpServer', x=202.66, y=28.56, z=477.59], EntityEnderman['Enderman'/162, l='MpServer', x=208.53, y=29.00, z=464.13], EntityEnderman['Enderman'/161, l='MpServer', x=209.28, y=26.00, z=466.63], EntitySquid['Squid'/160, l='MpServer', x=194.59, y=62.31, z=439.46], EntitySpider['Spider'/164, l='MpServer', x=193.28, y=41.09, z=524.00], EntitySheep['Sheep'/177, l='MpServer', x=248.66, y=63.00, z=460.75], EntityZombie['Zombie'/472, l='MpServer', x=130.50, y=24.00, z=477.50], EntityZombie['Zombie'/473, l='MpServer', x=130.50, y=24.00, z=478.50], EntitySkeleton['Skeleton'/471, l='MpServer', x=129.50, y=24.00, z=479.50], EntityEnderman['Enderman'/1409, l='MpServer', x=160.50, y=19.02, z=531.50], EntityPlayerSP['Player15'/204, l='MpServer', x=168.28, y=63.00, z=454.64], EntityZombie['Zombie'/453, l='MpServer', x=215.50, y=32.00, z=428.50], EntityZombie['Zombie'/1456, l='MpServer', x=176.50, y=53.02, z=514.50]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:392)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2614)
at net.minecraft.client.Minecraft.run(Minecraft.java:398)
at net.minecraft.client.main.Main.main(Main.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
-- System Details --
Details:
Minecraft Version: 1.8
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.7.0_79, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 764048976 bytes (728 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.3.1487 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.05} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8-11.14.3.1487.jar)
UCHIJAAAA Forge{11.14.3.1487} [Minecraft Forge] (forgeSrc-1.8-11.14.3.1487.jar)
UCHIJAAAA generic{0.0.0} [Generic Mod] (bin)
Loaded coremods (and transformers):
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.3.12618 Compatibility Profile Context 13.251.9001.1001' Renderer: 'AMD Radeon HD 7800 Series'
Launched Version: 1.8
LWJGL: 2.9.1
OpenGL: AMD Radeon HD 7800 Series GL version 4.3.12618 Compatibility Profile Context 13.251.9001.1001, 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)
[12:17:59] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:663]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\UltraTechX\Desktop\forge-1.8-11.14.3.1487-src\eclipse\.\crash-reports\crash-2015-07-27_12.17.59-client.txt
at least the casting was able to get the function to be called
You're trying to access a member (method or field) of a null value on line 112 of guiGenericTileEntity. You need to ask yourself which value is null and why is it null? Where is it initialised from and why isn't that working?
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Well, I tried printing all 3 of the variables required, but all of them arent null. And the second time it crashed after printing the 3 variables needed
EDIT : its just calling the method that is crashing it, I wonder why...