public class PlayerManager
extends java.lang.Object
| Constructor and Description |
|---|
PlayerManager(WorldServer p_i1176_1_) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPlayer(EntityPlayerMP p_72683_1_)
Adds an EntityPlayerMP to the PlayerManager.
|
void |
filterChunkLoadQueue(EntityPlayerMP p_72691_1_)
Removes all chunks from the given player's chunk load queue that are not in viewing range of the player.
|
boolean |
func_152621_a(int p_152621_1_,
int p_152621_2_) |
void |
func_152622_a(int p_152622_1_) |
static int |
getFurthestViewableBlock(int p_72686_0_)
Get the furthest viewable block given player's view distance
|
WorldServer |
getWorldServer() |
boolean |
isPlayerWatchingChunk(EntityPlayerMP p_72694_1_,
int p_72694_2_,
int p_72694_3_) |
void |
markBlockForUpdate(int p_151250_1_,
int p_151250_2_,
int p_151250_3_) |
void |
removePlayer(EntityPlayerMP p_72695_1_)
Removes an EntityPlayerMP from the PlayerManager.
|
void |
updatePlayerInstances()
updates all the player instances that need to be updated
|
void |
updatePlayerPertinentChunks(EntityPlayerMP p_72685_1_)
Update which chunks the player needs info on.
|
public PlayerManager(WorldServer p_i1176_1_)
public WorldServer getWorldServer()
public void updatePlayerInstances()
public boolean func_152621_a(int p_152621_1_,
int p_152621_2_)
public void markBlockForUpdate(int p_151250_1_,
int p_151250_2_,
int p_151250_3_)
public void addPlayer(EntityPlayerMP p_72683_1_)
public void filterChunkLoadQueue(EntityPlayerMP p_72691_1_)
public void removePlayer(EntityPlayerMP p_72695_1_)
public void updatePlayerPertinentChunks(EntityPlayerMP p_72685_1_)
public boolean isPlayerWatchingChunk(EntityPlayerMP p_72694_1_, int p_72694_2_, int p_72694_3_)
public void func_152622_a(int p_152622_1_)
public static int getFurthestViewableBlock(int p_72686_0_)