Different protocols, server properties

This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-06 20:58:16 +01:00
parent 7732d6b6f7
commit 069ff9f965
9 changed files with 266 additions and 86 deletions

View File

@ -28,10 +28,10 @@ the Free Software Foundation, either version 3 of the License, or
$dataName = array(
MC_KEEP_ALIVE => "KeepAlive",
MC_CLIENT_HANDSHAKE => "ClientHandshake",
MC_CLIENT_CONNECT => "ClientConnect",
MC_SERVER_HANDSHAKE => "ServerHandshake",
MC_CLIENT_CONNECT => "ClientConnect",
MC_CLIENT_HANDSHAKE => "ClientHandshake",
MC_CLIENT_DISCONNECT => "ClientDisconnect",
@ -44,21 +44,27 @@ $dataName = array(
MC_SET_TIME => "SetTime",
MC_START_GAME => "StartGame",
0x93 => "MoveEntity_PosRot",
0x94 => "MovePlayer",
MC_REMOVE_ENTITY => "RemoveEntity",
0x96 => "RemoveBlock",
MC_MOVE_ENTITY_POSROT => "MoveEntity_PosRot",
MC_MOVE_PLAYER => "MovePlayer",
MC_PLACE_BLOCK => "PlaceBlock",
MC_REMOVE_BLOCK => "RemoveBlock",
0x9d => "RequestChunk",
MC_REQUEST_CHUNK => "RequestChunk",
0x9f => "PlayerEquipment",
MC_PLAYER_EQUIPMENT => "PlayerEquipment",
0xa1 => "UseItem",
MC_USE_ITEM => "UseItem",
MC_PLAYER_ACTION => "PlayerAction",
MC_SET_ENTITY_DATA => "SetEntityData",
MC_SET_ENTITY_MOTION => "SetEntityMotion",
MC_SET_HEALTH => "SetHealth",
MC_SET_SPAWN_POSITION => "SetSpawnPosition",
MC_ANIMATE => "Animate",
MC_RESPAWN => "Respawn",
0xa4 => "SetEntityMotion",
0xa5 => "SetHealth",
0xa7 => "Animate",
0xb1 => "ClientMessage"
MC_CLIENT_MESSAGE => "ClientMessage",
MC_SIGN_UPDATE => "SignUpdate",
MC_ADVENTURE_SETTINGS => "AdventureSettings",
);