public class PlayerManager extends Object
Constructor and Description |
---|
PlayerManager(WorldServer par1WorldServer,
int par2) |
Modifier and Type | Method and Description |
---|---|
void |
addPlayer(EntityPlayerMP par1EntityPlayerMP)
Adds an EntityPlayerMP to the PlayerManager.
|
void |
filterChunkLoadQueue(EntityPlayerMP par1EntityPlayerMP)
Removes all chunks from the given player's chunk load queue that are not in viewing range of the player.
|
static int |
getFurthestViewableBlock(int par0)
Get the furthest viewable block given player's view distance
|
PlayerInstance |
getOrCreateChunkWatcher(int par1,
int par2,
boolean par3) |
WorldServer |
getWorldServer() |
boolean |
isPlayerWatchingChunk(EntityPlayerMP par1EntityPlayerMP,
int par2,
int par3) |
void |
markBlockForUpdate(int par1,
int par2,
int par3)
Called by WorldManager.markBlockForUpdate; marks a block to be resent to clients.
|
void |
removePlayer(EntityPlayerMP par1EntityPlayerMP)
Removes an EntityPlayerMP from the PlayerManager.
|
void |
updateMountedMovingPlayer(EntityPlayerMP par1EntityPlayerMP)
update chunks around a player being moved by server logic (e.g.
|
void |
updatePlayerInstances()
updates all the player instances that need to be updated
|
public PlayerManager(WorldServer par1WorldServer, int par2)
public WorldServer getWorldServer()
public void updatePlayerInstances()
public PlayerInstance getOrCreateChunkWatcher(int par1, int par2, boolean par3)
public void markBlockForUpdate(int par1, int par2, int par3)
public void addPlayer(EntityPlayerMP par1EntityPlayerMP)
public void filterChunkLoadQueue(EntityPlayerMP par1EntityPlayerMP)
public void removePlayer(EntityPlayerMP par1EntityPlayerMP)
public void updateMountedMovingPlayer(EntityPlayerMP par1EntityPlayerMP)
public boolean isPlayerWatchingChunk(EntityPlayerMP par1EntityPlayerMP, int par2, int par3)
public static int getFurthestViewableBlock(int par0)