Skip to content

Commit

Permalink
Merge pull request #13 from ZXMushroom63/main
Browse files Browse the repository at this point in the history
Add new network methods to doc
  • Loading branch information
OtterCodes101 authored Oct 5, 2023
2 parents eb23509 + 3357d7c commit fea2ad9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugindocs/globals/NetworkData.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ Methods:
- `sendPacketUseEntity({entityRef: EntityRef, action: String}) : void`
- `action` can be one of: `INTERACT`, `ATTACK` or `INTERACT_AT`
- `sendPacketPlayer({isOnGround: Boolean}) : void`
- `sendPacketPlayerPosition({posX: Number, posY: Number, posZ: Number, isOnGround: Boolean}) : void`
- `sendPacketPlayerLook({playerYaw: Number, playerPitch: Number, isOnGround: Boolean}) : void`
- `sendPacketPlayerPosLook({playerX: Number, playerY: Number, playerZ: Number, playerYaw: Number, playerPitch: Number, isOnGround: Boolean}) : void`
- `sendPacketPlayerDigging({action: String, pos: BlockPos, facing: String}) : void`
- `action` can be one of: `START_DESTROY_BLOCK`, `ABORT_DESTROY_BLOCK`, `STOP_DESTROY_BLOCK`, `DROP_ALL_ITEMS`, `DROP_ITEM` or `RELEASE_USE_ITEM`
- `facing` can be one of: `UP`, `DOWN`, `NORTH`, `SOUTH`, `EAST` or `WEST`
Expand All @@ -36,4 +39,4 @@ Methods:
- `status` can be one of: `PERFORM_RESPAWN`, `REQUEST_STATS` or `OPEN_INVENTORY_ACHIEVEMENT`
- `sendPacketSpectate({uuid: String}) : void`
- `sendPacketResourcePackStatus({hash: String, status: String}) : void`
- `status` can be one of: `SUCCESSFULLY_LOADED`, `DECLINED`, `FAILED_DOWNLOAD` or `ACCEPTED`
- `status` can be one of: `SUCCESSFULLY_LOADED`, `DECLINED`, `FAILED_DOWNLOAD` or `ACCEPTED`

0 comments on commit fea2ad9

Please sign in to comment.