Jump to content

[1.7.10] transfer item though pipe system


WARDOGSK93

Recommended Posts

hi i have been trying to get my pipes to work

 

i have them rendering and connecting fine but when it comes to moving 1 item from one inventory to another i cant get it to work

 

i have tried just getting an a instance of the inventory connected on the pipe system and just replacing a empty slot in another inventory connected to the same pipe system but for some reason  it crashes if you want to view my code i will link you to the github page

 

pics:

 

https://www.dropbox.com/s/g2fd89fc0a7ce2a/2014-08-31_20.49.44.png?dl=0

https://www.dropbox.com/s/oqn290mdai686re/2014-08-31_20.50.04.png?dl=0

https://www.dropbox.com/s/ioztgttw3zufzuo/2014-08-31_20.50.15.png?dl=0

 

src code for transporting items:

 

https://github.com/TeamDogz/WAR-Craft/blob/master/src/main/java/com/dogz/mods/WARCraft/Blocks/BlockPipe.java#L38

 

full github: https://github.com/TeamDogz/WAR-Craft/tree/master/src/main/java/com/dogz/mods/WARCraft

 

error log (if needed):

 

---- Minecraft Crash Report ----
// Ouch. That hurt 

Time: 31/08/14 21:03
Description: Rendering item

java.lang.NullPointerException: Rendering item
at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:267)
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419)
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585)
at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:291)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:118)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1145)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1066)
at net.minecraft.client.Minecraft.run(Minecraft.java:961)
at net.minecraft.client.main.Main.main(Main.java:164)
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:134)
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 GradleStart.bounce(GradleStart.java:107)
at GradleStart.startClient(GradleStart.java:100)
at GradleStart.main(GradleStart.java:65)


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

-- Head --
Stacktrace:
at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:267)
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419)

-- Item being rendered --
Details:
Item Type: null
Item Aux: ~~ERROR~~ NullPointerException: null
Item NBT: null
Item Foil: ~~ERROR~~ NullPointerException: null
Stacktrace:
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585)
at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:291)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:118)

-- Screen render details --
Details:
Screen name: net.minecraft.client.gui.inventory.GuiChest
Mouse location: Scaled: (213, 119). Absolute: (427, 240)
Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['iprosyndicte'/186, l='MpServer', x=-552.60, y=76.62, z=-59.96]]
Chunk stats: MultiplayerChunkCache: 25, 25
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options: 
Level spawn location: World: (-208,64,256), Chunk: (at 0,4,0 in -13,16; contains blocks -208,0,256 to -193,255,271), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 209260 game time, 209260 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: 30 total; [EntityPig['Pig'/205, l='MpServer', x=-555.16, y=80.81, z=-106.97], EntityPig['Pig'/204, l='MpServer', x=-544.69, y=77.81, z=-105.53], EntityPig['Pig'/207, l='MpServer', x=-553.75, y=65.81, z=-3.63], EntityMinecartChest['entity.MinecartChest.name'/206, l='MpServer', x=-503.50, y=24.50, z=-58.50], EntityPig['Pig'/201, l='MpServer', x=-537.53, y=65.00, z=-27.75], EntityMinecartChest['entity.MinecartChest.name'/200, l='MpServer', x=-575.50, y=24.50, z=-80.50], EntityPig['Pig'/203, l='MpServer', x=-580.50, y=74.00, z=-85.69], EntityPig['Pig'/197, l='MpServer', x=-572.81, y=74.00, z=-23.19], EntityMinecartChest['entity.MinecartChest.name'/193, l='MpServer', x=-537.50, y=25.50, z=-40.50], EntityHorse['Donkey'/192, l='MpServer', x=-538.50, y=74.00, z=-70.50], EntityPig['Pig'/195, l='MpServer', x=-590.97, y=78.00, z=-58.97], EntityMinecartChest['entity.MinecartChest.name'/194, l='MpServer', x=-542.50, y=29.50, z=-40.88], EntityPig['Pig'/217, l='MpServer', x=-508.81, y=74.81, z=-101.63], EntityPig['Pig'/218, l='MpServer', x=-510.06, y=74.81, z=-100.84], EntityPig['Pig'/212, l='MpServer', x=-604.94, y=78.81, z=-68.81], EntityMinecartChest['entity.MinecartChest.name'/213, l='MpServer', x=-589.50, y=28.50, z=-4.50], EntityBat['Bat'/214, l='MpServer', x=-594.27, y=29.67, z=-34.48], EntityPig['Pig'/215, l='MpServer', x=-507.78, y=73.81, z=-86.63], EntityPig['Pig'/208, l='MpServer', x=-546.47, y=64.81, z=-7.34], EntityPig['Pig'/209, l='MpServer', x=-550.25, y=69.81, z=-3.50], EntityBat['Bat'/569, l='MpServer', x=-564.22, y=31.94, z=-10.84], EntityPig['Pig'/210, l='MpServer', x=-560.38, y=68.81, z=-12.81], EntityMinecartChest['entity.MinecartChest.name'/211, l='MpServer', x=-607.50, y=32.50, z=-35.50], EntityClientPlayerMP['iprosyndicte'/186, l='MpServer', x=-552.60, y=76.62, z=-59.96], EntityMinecartChest['entity.MinecartChest.name'/187, l='MpServer', x=-572.50, y=34.50, z=-35.50], EntityBat['Bat'/352, l='MpServer', x=-560.25, y=60.10, z=-44.25], EntityHorse['Horse'/190, l='MpServer', x=-536.66, y=74.00, z=-72.63], EntityHorse['Horse'/191, l='MpServer', x=-536.66, y=74.00, z=-70.66], EntityBat['Bat'/188, l='MpServer', x=-560.25, y=60.10, z=-44.25], EntityVillager['Villager'/189, l='MpServer', x=-538.50, y=74.00, z=-72.50]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:417)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2567)
at net.minecraft.client.Minecraft.run(Minecraft.java:983)
at net.minecraft.client.main.Main.main(Main.java:164)
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:134)
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 GradleStart.bounce(GradleStart.java:107)
at GradleStart.startClient(GradleStart.java:100)
at GradleStart.main(GradleStart.java:65)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8 (x86) version 6.2
Java Version: 1.7.0_67, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 69002848 bytes (65 MB) / 232497152 bytes (221 MB) up to 259522560 bytes (247 MB)
JVM Flags: 0 total; 
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP v9.05 FML v7.10.25.1208 Minecraft Forge 10.13.0.1208 5 mods loaded, 5 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{7.10.25.1208} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.0.1208.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.13.0.1208} [Minecraft Forge] (forgeSrc-1.7.10-10.13.0.1208.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
dogz{1.7.10-1.0} [DogzCore] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
WARCraft{1.7.10-1.0} [WAR-Craft] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: Intel(R) HD Graphics GL version 4.0.0 - Build 9.17.10.2963, Intel
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

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)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)

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



×
×
  • Create New...

Important Information

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