public class NetHandlerPlayServer extends java.lang.Object implements INetHandlerPlayServer, ITickable
| Modifier and Type | Field and Description |
|---|---|
NetworkManager |
netManager |
EntityPlayerMP |
playerEntity |
| Constructor and Description |
|---|
NetHandlerPlayServer(MinecraftServer server,
NetworkManager networkManagerIn,
EntityPlayerMP playerIn) |
| Modifier and Type | Method and Description |
|---|---|
NetworkManager |
getNetworkManager() |
void |
handleAnimation(C0APacketAnimation packetIn) |
void |
handleResourcePackStatus(C19PacketResourcePackStatus packetIn) |
void |
handleSpectate(C18PacketSpectate packetIn) |
void |
kickPlayerFromServer(java.lang.String reason)
Kick a player from the server with a reason
|
void |
onDisconnect(IChatComponent reason)
Invoked when disconnecting, the parameter is a ChatComponent describing the reason for termination
|
void |
processChatMessage(C01PacketChatMessage packetIn)
Process chat messages (broadcast back to clients) and commands (executes)
|
void |
processClickWindow(C0EPacketClickWindow packetIn)
Executes a container/inventory slot manipulation as indicated by the packet.
|
void |
processClientSettings(C15PacketClientSettings packetIn)
Updates serverside copy of client settings: language, render distance, chat visibility, chat colours, difficulty,
and whether to show the cape
|
void |
processClientStatus(C16PacketClientStatus packetIn)
Processes the client status updates: respawn attempt from player, opening statistics or achievements, or
acquiring 'open inventory' achievement
|
void |
processCloseWindow(C0DPacketCloseWindow packetIn)
Processes the client closing windows (container)
|
void |
processConfirmTransaction(C0FPacketConfirmTransaction packetIn)
Received in response to the server requesting to confirm that the client-side open container matches the servers'
after a mismatched container-slot manipulation.
|
void |
processCreativeInventoryAction(C10PacketCreativeInventoryAction packetIn)
Update the server with an ItemStack in a slot.
|
void |
processEnchantItem(C11PacketEnchantItem packetIn)
Enchants the item identified by the packet given some convoluted conditions (matching window, which
should/shouldn't be in use?)
|
void |
processEntityAction(C0BPacketEntityAction packetIn)
Processes a range of action-types: sneaking, sprinting, waking from sleep, opening the inventory or setting jump
height of the horse the player is riding
|
void |
processHeldItemChange(C09PacketHeldItemChange packetIn)
Updates which quickbar slot is selected
|
void |
processInput(C0CPacketInput packetIn)
Processes player movement input.
|
void |
processKeepAlive(C00PacketKeepAlive packetIn)
Updates a players' ping statistics
|
void |
processPlayer(C03PacketPlayer packetIn)
Processes clients perspective on player positioning and/or orientation
|
void |
processPlayerAbilities(C13PacketPlayerAbilities packetIn)
Processes a player starting/stopping flying
|
void |
processPlayerBlockPlacement(C08PacketPlayerBlockPlacement packetIn)
Processes block placement and block activation (anvil, furnace, etc.)
|
void |
processPlayerDigging(C07PacketPlayerDigging packetIn)
Processes the player initiating/stopping digging on a particular spot, as well as a player dropping items?.
|
void |
processTabComplete(C14PacketTabComplete packetIn)
Retrieves possible tab completions for the requested command string and sends them to the client
|
void |
processUpdateSign(C12PacketUpdateSign packetIn) |
void |
processUseEntity(C02PacketUseEntity packetIn)
Processes interactions ((un)leashing, opening command block GUI) and attacks on an entity with players currently
equipped item
|
void |
processVanilla250Packet(C17PacketCustomPayload packetIn)
Synchronizes serverside and clientside book contents and signing
|
void |
sendPacket(Packet packetIn) |
void |
setPlayerLocation(double x,
double y,
double z,
float yaw,
float pitch) |
void |
setPlayerLocation(double x,
double y,
double z,
float yaw,
float pitch,
java.util.Set<S08PacketPlayerPosLook.EnumFlags> relativeSet) |
void |
update()
Like the old updateEntity(), except more generic.
|
public final NetworkManager netManager
public EntityPlayerMP playerEntity
public NetHandlerPlayServer(MinecraftServer server, NetworkManager networkManagerIn, EntityPlayerMP playerIn)
public void update()
public NetworkManager getNetworkManager()
public void kickPlayerFromServer(java.lang.String reason)
public void processInput(C0CPacketInput packetIn)
processInput in interface INetHandlerPlayServerpublic void processPlayer(C03PacketPlayer packetIn)
processPlayer in interface INetHandlerPlayServerpublic void setPlayerLocation(double x,
double y,
double z,
float yaw,
float pitch)
public void setPlayerLocation(double x,
double y,
double z,
float yaw,
float pitch,
java.util.Set<S08PacketPlayerPosLook.EnumFlags> relativeSet)
public void processPlayerDigging(C07PacketPlayerDigging packetIn)
processPlayerDigging in interface INetHandlerPlayServerpublic void processPlayerBlockPlacement(C08PacketPlayerBlockPlacement packetIn)
processPlayerBlockPlacement in interface INetHandlerPlayServerpublic void handleSpectate(C18PacketSpectate packetIn)
handleSpectate in interface INetHandlerPlayServerpublic void handleResourcePackStatus(C19PacketResourcePackStatus packetIn)
handleResourcePackStatus in interface INetHandlerPlayServerpublic void onDisconnect(IChatComponent reason)
onDisconnect in interface INetHandlerpublic void sendPacket(Packet packetIn)
public void processHeldItemChange(C09PacketHeldItemChange packetIn)
processHeldItemChange in interface INetHandlerPlayServerpublic void processChatMessage(C01PacketChatMessage packetIn)
processChatMessage in interface INetHandlerPlayServerpublic void handleAnimation(C0APacketAnimation packetIn)
handleAnimation in interface INetHandlerPlayServerpublic void processEntityAction(C0BPacketEntityAction packetIn)
processEntityAction in interface INetHandlerPlayServerpublic void processUseEntity(C02PacketUseEntity packetIn)
processUseEntity in interface INetHandlerPlayServerpublic void processClientStatus(C16PacketClientStatus packetIn)
processClientStatus in interface INetHandlerPlayServerpublic void processCloseWindow(C0DPacketCloseWindow packetIn)
processCloseWindow in interface INetHandlerPlayServerpublic void processClickWindow(C0EPacketClickWindow packetIn)
processClickWindow in interface INetHandlerPlayServerpublic void processEnchantItem(C11PacketEnchantItem packetIn)
processEnchantItem in interface INetHandlerPlayServerpublic void processCreativeInventoryAction(C10PacketCreativeInventoryAction packetIn)
processCreativeInventoryAction in interface INetHandlerPlayServerpublic void processConfirmTransaction(C0FPacketConfirmTransaction packetIn)
processConfirmTransaction in interface INetHandlerPlayServerpublic void processUpdateSign(C12PacketUpdateSign packetIn)
processUpdateSign in interface INetHandlerPlayServerpublic void processKeepAlive(C00PacketKeepAlive packetIn)
processKeepAlive in interface INetHandlerPlayServerpublic void processPlayerAbilities(C13PacketPlayerAbilities packetIn)
processPlayerAbilities in interface INetHandlerPlayServerpublic void processTabComplete(C14PacketTabComplete packetIn)
processTabComplete in interface INetHandlerPlayServerpublic void processClientSettings(C15PacketClientSettings packetIn)
processClientSettings in interface INetHandlerPlayServerpublic void processVanilla250Packet(C17PacketCustomPayload packetIn)
processVanilla250Packet in interface INetHandlerPlayServer