Package net.minecraft.src
Class PlayerManager
java.lang.Object
net.minecraft.src.PlayerManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlayer(EntityPlayerMP par1EntityPlayerMP) Adds an EntityPlayerMP to the PlayerManager.voidfilterChunkLoadQueue(EntityPlayerMP par1EntityPlayerMP) Removes all chunks from the given player's chunk load queue that are not in viewing range of the player.static intgetFurthestViewableBlock(int par0) Get the furthest viewable block given player's view distancebooleanisPlayerWatchingChunk(EntityPlayerMP par1EntityPlayerMP, int par2, int par3) voidmarkBlockForUpdate(int par1, int par2, int par3) Called by WorldManager.markBlockForUpdate; marks a block to be resent to clients.voidremovePlayer(EntityPlayerMP par1EntityPlayerMP) Removes an EntityPlayerMP from the PlayerManager.voidupdateMountedMovingPlayer(EntityPlayerMP par1EntityPlayerMP) update chunks around a player being moved by server logic (e.g. cart, boat)voidupdates all the player instances that need to be updated
-
Constructor Details
-
PlayerManager
-
-
Method Details
-
getWorldServer
-
updatePlayerInstances
public void updatePlayerInstances()updates all the player instances that need to be updated -
markBlockForUpdate
public void markBlockForUpdate(int par1, int par2, int par3) Called by WorldManager.markBlockForUpdate; marks a block to be resent to clients. -
addPlayer
Adds an EntityPlayerMP to the PlayerManager. -
filterChunkLoadQueue
Removes all chunks from the given player's chunk load queue that are not in viewing range of the player. -
removePlayer
Removes an EntityPlayerMP from the PlayerManager. -
updateMountedMovingPlayer
update chunks around a player being moved by server logic (e.g. cart, boat) -
isPlayerWatchingChunk
-
getFurthestViewableBlock
public static int getFurthestViewableBlock(int par0) Get the furthest viewable block given player's view distance
-