| 1 | package net.minecraft.network.play;
|
| 2 |
|
| 3 | import net.minecraft.network.INetHandler;
|
| 4 | import net.minecraft.network.play.client.C00PacketKeepAlive;
|
| 5 | import net.minecraft.network.play.client.C01PacketChatMessage;
|
| 6 | import net.minecraft.network.play.client.C02PacketUseEntity;
|
| 7 | import net.minecraft.network.play.client.C03PacketPlayer;
|
| 8 | import net.minecraft.network.play.client.C07PacketPlayerDigging;
|
| 9 | import net.minecraft.network.play.client.C08PacketPlayerBlockPlacement;
|
| 10 | import net.minecraft.network.play.client.C09PacketHeldItemChange;
|
| 11 | import net.minecraft.network.play.client.C0APacketAnimation;
|
| 12 | import net.minecraft.network.play.client.C0BPacketEntityAction;
|
| 13 | import net.minecraft.network.play.client.C0CPacketInput;
|
| 14 | import net.minecraft.network.play.client.C0DPacketCloseWindow;
|
| 15 | import net.minecraft.network.play.client.C0EPacketClickWindow;
|
| 16 | import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
|
| 17 | import net.minecraft.network.play.client.C10PacketCreativeInventoryAction;
|
| 18 | import net.minecraft.network.play.client.C11PacketEnchantItem;
|
| 19 | import net.minecraft.network.play.client.C12PacketUpdateSign;
|
| 20 | import net.minecraft.network.play.client.C13PacketPlayerAbilities;
|
| 21 | import net.minecraft.network.play.client.C14PacketTabComplete;
|
| 22 | import net.minecraft.network.play.client.C15PacketClientSettings;
|
| 23 | import net.minecraft.network.play.client.C16PacketClientStatus;
|
| 24 | import net.minecraft.network.play.client.C17PacketCustomPayload;
|
| 25 | import net.minecraft.network.play.client.C18PacketSpectate;
|
| 26 | import net.minecraft.network.play.client.C19PacketResourcePackStatus;
|
| 27 |
|
| 28 | public interface INetHandlerPlayServer extends INetHandler
|
| 29 | {
|
| 30 | void handleAnimation(C0APacketAnimation packetIn);
|
| 31 |
|
| 32 | /**
|
| 33 | * Process chat messages (broadcast back to clients) and commands (executes)
|
| 34 | */
|
| 35 | void processChatMessage(C01PacketChatMessage packetIn);
|
| 36 |
|
| 37 | /**
|
| 38 | * Retrieves possible tab completions for the requested command string and sends them to the client
|
| 39 | */
|
| 40 | void processTabComplete(C14PacketTabComplete packetIn);
|
| 41 |
|
| 42 | /**
|
| 43 | * Processes the client status updates: respawn attempt from player, opening statistics or achievements, or
|
| 44 | * acquiring 'open inventory' achievement
|
| 45 | */
|
| 46 | void processClientStatus(C16PacketClientStatus packetIn);
|
| 47 |
|
| 48 | /**
|
| 49 | * Updates serverside copy of client settings: language, render distance, chat visibility, chat colours, difficulty,
|
| 50 | * and whether to show the cape
|
| 51 | */
|
| 52 | void processClientSettings(C15PacketClientSettings packetIn);
|
| 53 |
|
| 54 | /**
|
| 55 | * Received in response to the server requesting to confirm that the client-side open container matches the servers'
|
| 56 | * after a mismatched container-slot manipulation. It will unlock the player's ability to manipulate the container
|
| 57 | * contents
|
| 58 | */
|
| 59 | void processConfirmTransaction(C0FPacketConfirmTransaction packetIn);
|
| 60 |
|
| 61 | /**
|
| 62 | * Enchants the item identified by the packet given some convoluted conditions (matching window, which
|
| 63 | * should/shouldn't be in use?)
|
| 64 | */
|
| 65 | void processEnchantItem(C11PacketEnchantItem packetIn);
|
| 66 |
|
| 67 | /**
|
| 68 | * Executes a container/inventory slot manipulation as indicated by the packet. Sends the serverside result if they
|
| 69 | * didn't match the indicated result and prevents further manipulation by the player until he confirms that it has
|
| 70 | * the same open container/inventory
|
| 71 | */
|
| 72 | void processClickWindow(C0EPacketClickWindow packetIn);
|
| 73 |
|
| 74 | /**
|
| 75 | * Processes the client closing windows (container)
|
| 76 | */
|
| 77 | void processCloseWindow(C0DPacketCloseWindow packetIn);
|
| 78 |
|
| 79 | /**
|
| 80 | * Synchronizes serverside and clientside book contents and signing
|
| 81 | */
|
| 82 | void processVanilla250Packet(C17PacketCustomPayload packetIn);
|
| 83 |
|
| 84 | /**
|
| 85 | * Processes interactions ((un)leashing, opening command block GUI) and attacks on an entity with players currently
|
| 86 | * equipped item
|
| 87 | */
|
| 88 | void processUseEntity(C02PacketUseEntity packetIn);
|
| 89 |
|
| 90 | /**
|
| 91 | * Updates a players' ping statistics
|
| 92 | */
|
| 93 | void processKeepAlive(C00PacketKeepAlive packetIn);
|
| 94 |
|
| 95 | /**
|
| 96 | * Processes clients perspective on player positioning and/or orientation
|
| 97 | */
|
| 98 | void processPlayer(C03PacketPlayer packetIn);
|
| 99 |
|
| 100 | /**
|
| 101 | * Processes a player starting/stopping flying
|
| 102 | */
|
| 103 | void processPlayerAbilities(C13PacketPlayerAbilities packetIn);
|
| 104 |
|
| 105 | /**
|
| 106 | * Processes the player initiating/stopping digging on a particular spot, as well as a player dropping items?. (0:
|
| 107 | * initiated, 1: reinitiated, 2? , 3-4 drop item (respectively without or with player control), 5: stopped; x,y,z,
|
| 108 | * side clicked on;)
|
| 109 | */
|
| 110 | void processPlayerDigging(C07PacketPlayerDigging packetIn);
|
| 111 |
|
| 112 | /**
|
| 113 | * Processes a range of action-types: sneaking, sprinting, waking from sleep, opening the inventory or setting jump
|
| 114 | * height of the horse the player is riding
|
| 115 | */
|
| 116 | void processEntityAction(C0BPacketEntityAction packetIn);
|
| 117 |
|
| 118 | /**
|
| 119 | * Processes player movement input. Includes walking, strafing, jumping, sneaking; excludes riding and toggling
|
| 120 | * flying/sprinting
|
| 121 | */
|
| 122 | void processInput(C0CPacketInput packetIn);
|
| 123 |
|
| 124 | /**
|
| 125 | * Updates which quickbar slot is selected
|
| 126 | */
|
| 127 | void processHeldItemChange(C09PacketHeldItemChange packetIn);
|
| 128 |
|
| 129 | /**
|
| 130 | * Update the server with an ItemStack in a slot.
|
| 131 | */
|
| 132 | void processCreativeInventoryAction(C10PacketCreativeInventoryAction packetIn);
|
| 133 |
|
| 134 | void processUpdateSign(C12PacketUpdateSign packetIn);
|
| 135 |
|
| 136 | /**
|
| 137 | * Processes block placement and block activation (anvil, furnace, etc.)
|
| 138 | */
|
| 139 | void processPlayerBlockPlacement(C08PacketPlayerBlockPlacement packetIn);
|
| 140 |
|
| 141 | void handleSpectate(C18PacketSpectate packetIn);
|
| 142 |
|
| 143 | void handleResourcePackStatus(C19PacketResourcePackStatus packetIn);
|
| 144 | }
|
| 145 |
|