|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.server.management.PlayerManager
public class PlayerManager
Constructor Summary | |
---|---|
PlayerManager(WorldServer par1WorldServer,
int par2)
|
Method Summary | |
---|---|
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. |
void |
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 |
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 |
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlayerManager(WorldServer par1WorldServer, int par2)
Method Detail |
---|
public WorldServer getWorldServer()
public void updatePlayerInstances()
public PlayerInstance getOrCreateChunkWatcher(int par1, int par2, boolean par3)
public void flagChunkForUpdate(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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |