Class LocalServerConnection
java.lang.Object
com.ardor3d.example.craft.network.LocalServerConnection
- All Implemented Interfaces:
IServerConnection
"Fake" local server implementation which just generate data upon request throught the LocalServerDataHandler and
pongs the data back. For real server/client communication, just implement the IServerConnection and send the requests
etc to your server.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
void
getModifier
(ChunkModifier chunkModifier) void
requestChunk
(int x, int z) void
void
update
(int x, int z) void
updatePlayerPosition
(ReadOnlyVector3 location, ReadOnlyVector3 direction)
-
Constructor Details
-
LocalServerConnection
-
-
Method Details
-
getModifier
- Specified by:
getModifier
in interfaceIServerConnection
-
update
public void update(int x, int z) - Specified by:
update
in interfaceIServerConnection
-
requestChunk
public void requestChunk(int x, int z) - Specified by:
requestChunk
in interfaceIServerConnection
-
setBlock
- Specified by:
setBlock
in interfaceIServerConnection
-
updatePlayerPosition
- Specified by:
updatePlayerPosition
in interfaceIServerConnection
-
connect
- Specified by:
connect
in interfaceIServerConnection
-
close
public void close()- Specified by:
close
in interfaceIServerConnection
-