Jump to content

Wait() and Timer Help


ArcticWolfz

Recommended Posts

Don't use wait() or timer.  The Item class is a singleton.

 

You should be counting update ticks and storing the result in the itemstack's NBT tags.

 

https://github.com/Draco18s/Artifacts/blob/master/draco18s/artifacts/components/ComponentRepair.java

Line 113

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

 

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

 

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

Link to comment
Share on other sites

i got crash

 

 

---- Minecraft Crash Report ----

// Who set us up the TNT?

 

Time: 11/23/13 12:14 AM

Description: Ticking entity

 

java.lang.NullPointerException

at net.craftyx.mod.item.transmutationGem.onUpdate(transmutationGem.java:31)

at net.minecraft.item.ItemStack.updateAnimation(ItemStack.java:497)

at net.minecraft.entity.player.InventoryPlayer.decrementAnimations(InventoryPlayer.java:359)

at net.minecraft.entity.player.EntityPlayer.onLivingUpdate(EntityPlayer.java:606)

at net.minecraft.client.entity.EntityPlayerSP.onLivingUpdate(EntityPlayerSP.java:307)

at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1826)

at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:342)

at net.minecraft.client.entity.EntityClientPlayerMP.onUpdate(EntityClientPlayerMP.java:78)

at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2350)

at net.minecraft.world.World.updateEntity(World.java:2311)

at net.minecraft.world.World.updateEntities(World.java:2157)

at net.minecraft.client.Minecraft.runTick(Minecraft.java:1919)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:908)

at net.minecraft.client.Minecraft.run(Minecraft.java:836)

at net.minecraft.client.main.Main.main(Main.java:93)

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:57)

at net.minecraft.launchwrapper.Launch.main(Launch.java:18)

 

 

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

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.craftyx.mod.item.transmutationGem.onUpdate(transmutationGem.java:31)

at net.minecraft.item.ItemStack.updateAnimation(ItemStack.java:497)

at net.minecraft.entity.player.InventoryPlayer.decrementAnimations(InventoryPlayer.java:359)

at net.minecraft.entity.player.EntityPlayer.onLivingUpdate(EntityPlayer.java:606)

at net.minecraft.client.entity.EntityPlayerSP.onLivingUpdate(EntityPlayerSP.java:307)

at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1826)

at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:342)

at net.minecraft.client.entity.EntityClientPlayerMP.onUpdate(EntityClientPlayerMP.java:78)

at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2350)

at net.minecraft.world.World.updateEntity(World.java:2311)

 

-- Entity being ticked --

Details:

Entity Type: null (net.minecraft.client.entity.EntityClientPlayerMP)

Entity ID: 226

Entity Name: Player901

Entity's Exact location: 331.62, 64.62, 662.72

Entity's Block location: World: (331,64,662), Chunk: (at 11,4,6 in 20,41; contains blocks 320,0,656 to 335,255,671), Region: (0,1; contains chunks 0,32 to 31,63, blocks 0,0,512 to 511,255,1023)

Entity's Momentum: 0.00, -0.08, 0.00

Stacktrace:

at net.minecraft.world.World.updateEntities(World.java:2157)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player901'/226, l='MpServer', x=331.62, y=64.62, z=662.72]]

Chunk stats: MultiplayerChunkCache: 441

Level seed: 0

Level generator: ID 00 - default, ver 1. Features enabled: false

Level generator options:

Level spawn location: World: (168,64,252), Chunk: (at 8,4,12 in 10,15; contains blocks 160,0,240 to 175,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 6131 game time, 6131 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: 78 total; [EntitySkeleton['Skeleton'/410, l='MpServer', x=356.59, y=55.00, z=621.13], EntityBat['Bat'/411, l='MpServer', x=365.21, y=57.77, z=616.27], EntityCreeper['Creeper'/408, l='MpServer', x=340.06, y=31.00, z=736.38], EntitySkeleton['Skeleton'/409, l='MpServer', x=365.50, y=56.00, z=604.91], EntitySquid['Squid'/414, l='MpServer', x=350.88, y=48.00, z=719.50], EntityBat['Bat'/412, l='MpServer', x=365.50, y=55.70, z=608.40], EntityZombie['Zombie'/413, l='MpServer', x=351.88, y=32.00, z=627.44], EntitySheep['Sheep'/402, l='MpServer', x=339.84, y=70.00, z=688.25], EntitySquid['Squid'/403, l='MpServer', x=342.78, y=48.38, z=719.50], EntityZombie['Zombie'/400, l='MpServer', x=346.38, y=31.00, z=625.44], EntityZombie['Zombie'/401, l='MpServer', x=345.00, y=31.00, z=630.50], EntitySquid['Squid'/406, l='MpServer', x=348.50, y=48.00, z=726.50], EntitySquid['Squid'/407, l='MpServer', x=350.72, y=49.00, z=728.50], EntitySheep['Sheep'/404, l='MpServer', x=346.78, y=63.00, z=705.63], EntityCreeper['Creeper'/405, l='MpServer', x=345.94, y=33.00, z=734.78], EntityCreeper['Creeper'/392, l='MpServer', x=333.50, y=30.00, z=740.50], EntityCreeper['Creeper'/399, l='MpServer', x=347.69, y=57.00, z=602.06], EntityCreeper['Creeper'/398, l='MpServer', x=348.50, y=57.00, z=603.50], EntitySkeleton['Skeleton'/396, l='MpServer', x=350.38, y=53.00, z=588.31], EntitySheep['Sheep'/387, l='MpServer', x=331.55, y=63.63, z=683.50], EntitySkeleton['Skeleton'/386, l='MpServer', x=320.50, y=18.00, z=616.91], EntitySheep['Sheep'/390, l='MpServer', x=333.50, y=65.00, z=704.50], EntitySheep['Sheep'/389, l='MpServer', x=324.16, y=69.00, z=689.16], EntityCreeper['Creeper'/388, l='MpServer', x=333.50, y=28.00, z=700.50], EntityCreeper['Creeper'/440, l='MpServer', x=384.70, y=44.00, z=723.83], EntityBat['Bat'/312, l='MpServer', x=254.43, y=50.00, z=679.05], EntitySkeleton['Skeleton'/433, l='MpServer', x=399.84, y=41.00, z=592.50], EntityChicken['Chicken'/434, l='MpServer', x=401.84, y=72.00, z=630.47], EntitySkeleton['Skeleton'/314, l='MpServer', x=255.59, y=22.00, z=695.94], EntityChicken['Chicken'/435, l='MpServer', x=393.28, y=72.00, z=628.53], EntityBat['Bat'/436, l='MpServer', x=398.75, y=48.10, z=700.78], EntitySkeleton['Skeleton'/437, l='MpServer', x=399.06, y=39.00, z=718.53], EntityBat['Bat'/438, l='MpServer', x=391.53, y=55.01, z=708.21], EntityBat['Bat'/439, l='MpServer', x=393.00, y=55.00, z=709.69], EntityZombie['Zombie'/424, l='MpServer', x=383.75, y=58.00, z=674.41], EntitySkeleton['Skeleton'/298, l='MpServer', x=251.31, y=13.00, z=663.66], EntityBat['Bat'/419, l='MpServer', x=393.26, y=47.35, z=598.49], EntityBat['Bat'/418, l='MpServer', x=389.22, y=48.58, z=599.52], EntitySkeleton['Skeleton'/421, l='MpServer', x=386.13, y=64.00, z=647.50], EntityBat['Bat'/420, l='MpServer', x=371.25, y=54.10, z=632.25], EntityCreeper['Creeper'/302, l='MpServer', x=258.44, y=53.00, z=662.01], EntityCreeper['Creeper'/423, l='MpServer', x=375.94, y=59.00, z=668.69], EntitySkeleton['Skeleton'/303, l='MpServer', x=253.88, y=51.00, z=671.50], EntityBat['Bat'/422, l='MpServer', x=375.78, y=52.93, z=636.91], EntitySkeleton['Skeleton'/337, l='MpServer', x=273.88, y=30.00, z=717.50], EntitySkeleton['Skeleton'/336, l='MpServer', x=278.91, y=44.00, z=686.50], EntitySheep['Sheep'/466, l='MpServer', x=401.88, y=71.00, z=739.09], EntitySheep['Sheep'/464, l='MpServer', x=410.31, y=69.00, z=720.84], EntitySheep['Sheep'/465, l='MpServer', x=406.72, y=69.00, z=720.25], EntityBat['Bat'/326, l='MpServer', x=260.25, y=53.10, z=672.75], EntityZombie['Zombie'/327, l='MpServer', x=264.97, y=44.00, z=692.25], EntityCreeper['Creeper'/461, l='MpServer', x=391.59, y=38.00, z=715.30], EntitySkeleton['Skeleton'/324, l='MpServer', x=258.41, y=44.00, z=679.13], EntityCreeper['Creeper'/325, l='MpServer', x=262.25, y=52.00, z=683.01], EntitySheep['Sheep'/459, l='MpServer', x=409.94, y=74.00, z=673.13], EntityBat['Bat'/322, l='MpServer', x=276.34, y=12.79, z=677.48], EntityZombie['Zombie'/323, l='MpServer', x=264.50, y=19.00, z=684.50], EntitySheep['Sheep'/457, l='MpServer', x=405.16, y=73.00, z=678.84], EntitySquid['Squid'/334, l='MpServer', x=287.50, y=55.34, z=655.13], EntityChicken['Chicken'/454, l='MpServer', x=400.50, y=80.00, z=622.50], EntityBat['Bat'/335, l='MpServer', x=282.75, y=40.10, z=677.31], EntityChicken['Chicken'/453, l='MpServer', x=403.50, y=74.00, z=622.50], EntitySkeleton['Skeleton'/332, l='MpServer', x=276.13, y=46.00, z=631.69], EntityChicken['Chicken'/452, l='MpServer', x=409.38, y=76.00, z=613.41], EntitySkeleton['Skeleton'/333, l='MpServer', x=275.31, y=46.00, z=630.78], EntityChicken['Chicken'/451, l='MpServer', x=405.34, y=75.00, z=604.47], EntityChicken['Chicken'/450, l='MpServer', x=407.34, y=75.00, z=605.50], EntityChicken['Chicken'/449, l='MpServer', x=394.59, y=75.00, z=601.53], EntitySkeleton['Skeleton'/328, l='MpServer', x=263.50, y=26.00, z=707.50], EntityClientPlayerMP['Player901'/226, l='MpServer', x=331.62, y=64.62, z=662.72], EntitySquid['Squid'/352, l='MpServer', x=283.50, y=56.97, z=644.38], EntityCreeper['Creeper'/353, l='MpServer', x=296.50, y=35.00, z=732.50], EntitySquid['Squid'/355, l='MpServer', x=293.50, y=57.00, z=719.28], EntityCreeper['Creeper'/364, l='MpServer', x=304.30, y=24.00, z=735.70], EntitySkeleton['Skeleton'/365, l='MpServer', x=311.50, y=45.00, z=731.50], EntityEnderman['Enderman'/367, l='MpServer', x=310.50, y=35.00, z=738.50], EntityCreeper['Creeper'/362, l='MpServer', x=306.25, y=27.00, z=682.06], EntitySheep['Sheep'/363, l='MpServer', x=319.47, y=63.00, z=715.41]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440)

at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2310)

at net.minecraft.client.Minecraft.run(Minecraft.java:854)

at net.minecraft.client.main.Main.main(Main.java:93)

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:57)

at net.minecraft.launchwrapper.Launch.main(Launch.java:18)

 

-- System Details --

Details:

Minecraft Version: 1.6.2

Operating System: Windows 7 (amd64) version 6.1

Java Version: 1.7.0_45, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 756087248 bytes (721 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 10365 (580440 bytes; 0 MB) allocated, 5 (280 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 2, tcache: 0, allocated: 1, tallocated: 63

FML: MCP v8.04 FML v6.2.62.871 Minecraft Forge 9.10.1.871 4 mods loaded, 4 mods active

mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

FML{6.2.62.871} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge{9.10.1.871} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

craftyx{Alpha 0.0.1} [Craftyx] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Launched Version: 1.6

LWJGL: 2.9.0

OpenGL: GeForce G105M/PCIe/SSE2 GL version 3.3.0, NVIDIA Corporation

Is Modded: Definitely; Client brand changed to 'fml,forge'

Type: Client (map_client.txt)

Resource Pack: Default

Current Language: English (US)

Profiler Position: N/A (disabled)

Vec3 Pool Size: 3112 (174272 bytes; 0 MB) allocated, 19 (1064 bytes; 0 MB) used

 

 

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.