Package com.comphenix.protocol.utility
Class MinecraftFields
java.lang.Object
com.comphenix.protocol.utility.MinecraftFields
Retrieve the content of well-known fields in Minecraft.
- Author:
- Kristian
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetNetworkManager(org.bukkit.entity.Player player)Retrieve the network mananger associated with a particular player.static ObjectgetPlayerConnection(org.bukkit.entity.Player player)Retrieve the PlayerConnection (or NetServerHandler) associated with a player.
-
Method Details
-
getNetworkManager
Retrieve the network mananger associated with a particular player.- Parameters:
player- - the player.- Returns:
- The network manager, or NULL if no network manager has been asssociated yet.
-
getPlayerConnection
Retrieve the PlayerConnection (or NetServerHandler) associated with a player.- Parameters:
player- - the player.- Returns:
- The player connection.
-