YATS/Forge Documentation
|
Public Attributes | |
final INetworkManager | netManager |
boolean | connectionClosed = false |
EntityPlayerMP | playerEntity |
int | ticksForFloatKick |
net.minecraft.network.NetServerHandler.NetServerHandler | ( | MinecraftServer | par1, |
INetworkManager | par2, | ||
EntityPlayerMP | par3 | ||
) |
boolean net.minecraft.network.NetServerHandler.canProcessPacketsAsync | ( | ) |
If this returns false, all packets will be queued for the main thread to handle, even if they would otherwise be processed asynchronously. Used to avoid processing packets on the client before the world has been downloaded (which happens on the main thread)
|
virtual |
Implements net.minecraft.network.packet.NetHandler.
void net.minecraft.network.NetServerHandler.handleAnimation | ( | Packet18Animation | par1Packet18Animation) |
void net.minecraft.network.NetServerHandler.handleAutoComplete | ( | Packet203AutoComplete | par1Packet203AutoComplete) |
void net.minecraft.network.NetServerHandler.handleBlockDig | ( | Packet14BlockDig | par1Packet14BlockDig) |
void net.minecraft.network.NetServerHandler.handleBlockItemSwitch | ( | Packet16BlockItemSwitch | par1Packet16BlockItemSwitch) |
void net.minecraft.network.NetServerHandler.handleChat | ( | Packet3Chat | par1Packet3Chat) |
void net.minecraft.network.NetServerHandler.handleClientCommand | ( | Packet205ClientCommand | par1Packet205ClientCommand) |
void net.minecraft.network.NetServerHandler.handleClientInfo | ( | Packet204ClientInfo | par1Packet204ClientInfo) |
void net.minecraft.network.NetServerHandler.handleCloseWindow | ( | Packet101CloseWindow | par1Packet101CloseWindow) |
void net.minecraft.network.NetServerHandler.handleCreativeSetSlot | ( | Packet107CreativeSetSlot | par1Packet107CreativeSetSlot) |
Handle a creative slot packet.
void net.minecraft.network.NetServerHandler.handleCustomPayload | ( | Packet250CustomPayload | par1Packet250CustomPayload) |
void net.minecraft.network.NetServerHandler.handleEnchantItem | ( | Packet108EnchantItem | par1Packet108EnchantItem) |
void net.minecraft.network.NetServerHandler.handleEntityAction | ( | Packet19EntityAction | par1Packet19EntityAction) |
runs registerPacket on the given Packet19EntityAction
void net.minecraft.network.NetServerHandler.handleErrorMessage | ( | String | par1Str, |
Object[] | par2ArrayOfObj | ||
) |
void net.minecraft.network.NetServerHandler.handleFlying | ( | Packet10Flying | par1Packet10Flying) |
void net.minecraft.network.NetServerHandler.handleKeepAlive | ( | Packet0KeepAlive | par1Packet0KeepAlive) |
Handle a keep alive packet.
void net.minecraft.network.NetServerHandler.handleKickDisconnect | ( | Packet255KickDisconnect | par1Packet255KickDisconnect) |
void net.minecraft.network.NetServerHandler.handleMapData | ( | Packet131MapData | par1Packet131MapData) |
Contains logic for handling packets containing arbitrary unique item data. Currently this is only for maps.
void net.minecraft.network.NetServerHandler.handlePlace | ( | Packet15Place | par1Packet15Place) |
void net.minecraft.network.NetServerHandler.handlePlayerAbilities | ( | Packet202PlayerAbilities | par1Packet202PlayerAbilities) |
Handle a player abilities packet.
void net.minecraft.network.NetServerHandler.handleRespawn | ( | Packet9Respawn | par1Packet9Respawn) |
respawns the player
void net.minecraft.network.NetServerHandler.handleTransaction | ( | Packet106Transaction | par1Packet106Transaction) |
void net.minecraft.network.NetServerHandler.handleUpdateSign | ( | Packet130UpdateSign | par1Packet130UpdateSign) |
Updates Client side signs
void net.minecraft.network.NetServerHandler.handleUseEntity | ( | Packet7UseEntity | par1Packet7UseEntity) |
|
virtual |
Implements net.minecraft.network.packet.NetHandler.
void net.minecraft.network.NetServerHandler.handleWindowClick | ( | Packet102WindowClick | par1Packet102WindowClick) |
|
virtual |
determine if it is a server handler
Implements net.minecraft.network.packet.NetHandler.
void net.minecraft.network.NetServerHandler.kickPlayerFromServer | ( | String | par1Str) |
void net.minecraft.network.NetServerHandler.networkTick | ( | ) |
run once each game tick
int net.minecraft.network.NetServerHandler.packetSize | ( | ) |
returns 0 for memoryMapped connections
void net.minecraft.network.NetServerHandler.sendPacketToPlayer | ( | Packet | par1Packet) |
addToSendQueue. if it is a chat packet, check before sending it
void net.minecraft.network.NetServerHandler.setPlayerLocation | ( | double | par1, |
double | par3, | ||
double | par5, | ||
float | par7, | ||
float | par8 | ||
) |
Moves the player to the specified destination and rotation
void net.minecraft.network.NetServerHandler.unexpectedPacket | ( | Packet | par1Packet) |
Default handler called for packets that don't have their own handlers in NetClientHandler; currentlly does nothing.
boolean net.minecraft.network.NetServerHandler.connectionClosed = false |
This is set to true whenever a player disconnects from the server.
final INetworkManager net.minecraft.network.NetServerHandler.netManager |
The underlying network manager for this server handler.
EntityPlayerMP net.minecraft.network.NetServerHandler.playerEntity |
Reference to the EntityPlayerMP object.
int net.minecraft.network.NetServerHandler.ticksForFloatKick |
player is kicked if they float for over 80 ticks without flying enabled