Jump to content

Recommended Posts

Posted

Can someone please Explain what is happening? On my updateEntity() I put a System.out.printIn(power), it print it, but I got some strange things, by the power item I put on the custom container it added 10000 of power but take a look at the CONSOLE:

 

[20:04:11] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[20:04:11] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:04:11] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...

[20:04:11] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:    Author: Paul Lamb, www.paulscode.com

[20:04:11] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:04:11] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:04:11] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...

[20:04:12] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL

[20:04:12] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[20:04:12] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.

[20:04:12] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:04:12] [sound Library Loader/INFO]: Sound engine started

[20:04:21] [server thread/INFO]: Starting integrated minecraft server version 1.7.10

[20:04:21] [server thread/INFO]: Generating keypair

[20:04:21] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[20:04:21] [server thread/INFO] [FML]: Applying holder lookups

[20:04:21] [server thread/INFO] [FML]: Holder lookups applied

[20:04:21] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@4cd69091)

[20:04:21] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@4cd69091)

[20:04:21] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@4cd69091)

[20:04:21] [server thread/INFO]: Preparing start region for level 0

[20:04:22] [server thread/INFO] [sTDOUT]: [com.gpa.startrekmod.tileentities.TileEntityReplicatorBlock:readFromNBT:65]: READ

[20:04:22] [server thread/INFO]: Preparing spawn area: 61%

10000.0

[20:04:23] [server thread/INFO]: Changing view distance to 12, from 10

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

[20:04:23] [Netty Client IO #0/INFO] [FML]: Server protocol version 1

[20:04:23] [Netty IO #1/INFO] [FML]: Client protocol version 1

[20:04:23] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]

[20:04:24] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT

[20:04:24] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER

10000.0

[20:04:24] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established

[20:04:24] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[20:04:24] [server thread/INFO]: Alanzote[local:E:6c5af151] logged in with entity id 387 at (-253.72057713996094, 94.0, 273.0333764823144)

[20:04:24] [server thread/INFO]: Alanzote joined the game

10000.0

[20:04:24] [server thread/INFO] [sTDOUT]: [com.gpa.startrekmod.tileentities.TileEntityReplicatorBlock:writeToNBT:86]: WROTE

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

0.0

0.0

10000.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

0.0

[20:05:08] [server thread/INFO] [sTDOUT]: [com.gpa.startrekmod.tileentities.TileEntityReplicatorBlock:writeToNBT:86]: WROTE

0.0

0.0

0.0

10000.0

10000.0

10000.0

0.0

10000.0

10000.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

[20:05:23] [server thread/INFO]: Saving and pausing game...

[20:05:23] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[20:05:23] [server thread/INFO] [sTDOUT]: [com.gpa.startrekmod.tileentities.TileEntityReplicatorBlock:writeToNBT:86]: WROTE

[20:05:23] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[20:05:23] [server thread/INFO]: Saving chunks for level 'New World'/The End

[20:05:23] [server thread/INFO]: Stopping server

[20:05:23] [server thread/INFO]: Saving players

[20:05:23] [server thread/INFO]: Saving worlds

[20:05:23] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[20:05:23] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[20:05:23] [server thread/INFO]: Saving chunks for level 'New World'/The End

[20:05:24] [server thread/INFO] [FML]: Unloading dimension 0

[20:05:24] [server thread/INFO] [FML]: Unloading dimension -1

[20:05:24] [server thread/INFO] [FML]: Unloading dimension 1

[20:05:24] [server thread/INFO] [FML]: Applying holder lookups

[20:05:24] [server thread/INFO] [FML]: Holder lookups applied

[20:05:24] [Client thread/INFO]: Stopping!

[20:05:24] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:05:24] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...

[20:05:25] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:    Author: Paul Lamb, www.paulscode.com

[20:05:25] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

see? 10000.0 and then 0.0! What is happening?

Here are the Read/Write

 

@Override

public void readFromNBT(NBTTagCompound nbt){

super.readFromNBT(nbt);

 

NBTTagList list = nbt.getTagList("Slots", 10);

power = nbt.getFloat("reppower");

System.out.println("READ");

this.slots = new ItemStack[getSizeInventory()];

 

for(int i = 0; i < list.tagCount(); i++){

NBTTagCompound  item = list.getCompoundTagAt(i);

byte b = item.getByte("Item");

 

if(b >= 0 && b < this.slots.length){

this.slots = ItemStack.loadItemStackFromNBT(item);

}

}

 

if(nbt.hasKey("CustomName")){

this.setInventoryName(nbt.getString("CustomName"));

}

}

@Override

public void writeToNBT(NBTTagCompound nbt){

super.writeToNBT(nbt);

 

nbt.setFloat("reppower", power);

System.out.println("WROTE");

nbt.setInteger("facingDirection", facingDirection);

NBTTagList list = new NBTTagList();

 

for(int i = 0; i < this.slots.length; i++)

{

if(this.slots != null){

NBTTagCompound item = new NBTTagCompound();

item.setByte("item", (byte)i);

this.slots.writeToNBT(item);

list.appendTag(item);

}

}

 

Thanks!

Posted

Client prints 0, server prints 10000.

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.

Posted

GUI probably. But if it is a tile entity, you need to implement the description packet functions.

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.

Posted

...Use the container stuff for that, no need to have the overhead of NBT and sending the stuff to everyone instead of just the player viewing the GUI.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

I need to have the same var on CLient/Server(client to draw power/maxpower and server to save it)

 

On client side, is it only something visible in the GUI? Or are you doing something like making the block look different for all players (like show it turned on using different model, texture or particles)? In the first case, as mentioned by diesieben07 you should use container and gui handler (this creates built-in sync). In the second case, you'll need to send packet to all players.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

I need to have the same var on CLient/Server(client to draw power/maxpower and server to save it)

 

On client side, is it only something visible in the GUI? Or are you doing something like making the block look different for all players (like show it turned on using different model, texture or particles)? In the first case, as mentioned by diesieben07 you should use container and gui handler (this creates built-in sync). In the second case, you'll need to send packet to all players.

There is a bar that displays the power divided by max power.

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.