YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.server.management.PlayerManager Class Reference

Public Member Functions

 PlayerManager (WorldServer par1WorldServer, int par2)
 
WorldServer getWorldServer ()
 
void updatePlayerInstances ()
 
PlayerInstance getOrCreateChunkWatcher (int par1, int par2, boolean par3)
 
void flagChunkForUpdate (int par1, int par2, int par3)
 
void addPlayer (EntityPlayerMP par1EntityPlayerMP)
 
void filterChunkLoadQueue (EntityPlayerMP par1EntityPlayerMP)
 
void removePlayer (EntityPlayerMP par1EntityPlayerMP)
 
void updateMountedMovingPlayer (EntityPlayerMP par1EntityPlayerMP)
 
boolean isPlayerWatchingChunk (EntityPlayerMP par1EntityPlayerMP, int par2, int par3)
 

Static Public Member Functions

static int getFurthestViewableBlock (int par0)
 

Constructor & Destructor Documentation

net.minecraft.server.management.PlayerManager.PlayerManager ( WorldServer  par1WorldServer,
int  par2 
)

Member Function Documentation

void net.minecraft.server.management.PlayerManager.addPlayer ( EntityPlayerMP  par1EntityPlayerMP)

Adds an EntityPlayerMP to the PlayerManager.

void net.minecraft.server.management.PlayerManager.filterChunkLoadQueue ( EntityPlayerMP  par1EntityPlayerMP)

Removes all chunks from the given player's chunk load queue that are not in viewing range of the player.

void net.minecraft.server.management.PlayerManager.flagChunkForUpdate ( int  par1,
int  par2,
int  par3 
)

the "PlayerInstance"/ chunkWatcher will send this chunk to all players who are in line of sight

static int net.minecraft.server.management.PlayerManager.getFurthestViewableBlock ( int  par0)
static

Get the furthest viewable block given player's view distance

PlayerInstance net.minecraft.server.management.PlayerManager.getOrCreateChunkWatcher ( int  par1,
int  par2,
boolean  par3 
)
WorldServer net.minecraft.server.management.PlayerManager.getWorldServer ( )
boolean net.minecraft.server.management.PlayerManager.isPlayerWatchingChunk ( EntityPlayerMP  par1EntityPlayerMP,
int  par2,
int  par3 
)
void net.minecraft.server.management.PlayerManager.removePlayer ( EntityPlayerMP  par1EntityPlayerMP)

Removes an EntityPlayerMP from the PlayerManager.

void net.minecraft.server.management.PlayerManager.updateMountedMovingPlayer ( EntityPlayerMP  par1EntityPlayerMP)

update chunks around a player being moved by server logic (e.g. cart, boat)

void net.minecraft.server.management.PlayerManager.updatePlayerInstances ( )

updates all the player instances that need to be updated


The documentation for this class was generated from the following file: