public final class PlayerChunkWatchingManager extends Object
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.objects.Object2BooleanMap<ServerPlayerEntity> |
watchingPlayers |
Constructor and Description |
---|
PlayerChunkWatchingManager() |
Modifier and Type | Method and Description |
---|---|
void |
add(long long2,
ServerPlayerEntity serverPlayerEntity,
boolean watchDisabled) |
void |
disableWatch(ServerPlayerEntity serverPlayerEntity) |
void |
enableWatch(ServerPlayerEntity serverPlayerEntity) |
Stream<ServerPlayerEntity> |
getPlayersWatchingChunk(long long2) |
boolean |
isWatchDisabled(ServerPlayerEntity serverPlayerEntity) |
boolean |
method_21715(ServerPlayerEntity serverPlayerEntity) |
void |
movePlayer(long prevPos,
long currentPos,
ServerPlayerEntity serverPlayerEntity) |
void |
remove(long long2,
ServerPlayerEntity serverPlayerEntity) |
private final it.unimi.dsi.fastutil.objects.Object2BooleanMap<ServerPlayerEntity> watchingPlayers
public Stream<ServerPlayerEntity> getPlayersWatchingChunk(long long2)
public void add(long long2, ServerPlayerEntity serverPlayerEntity, boolean watchDisabled)
public void remove(long long2, ServerPlayerEntity serverPlayerEntity)
public void disableWatch(ServerPlayerEntity serverPlayerEntity)
public void enableWatch(ServerPlayerEntity serverPlayerEntity)
public boolean method_21715(ServerPlayerEntity serverPlayerEntity)
public boolean isWatchDisabled(ServerPlayerEntity serverPlayerEntity)
public void movePlayer(long prevPos, long currentPos, ServerPlayerEntity serverPlayerEntity)