public final class PlayerGenerationTracker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.objects.Object2BooleanMap<ServerPlayerEntity> |
generatingPlayers |
Constructor and Description |
---|
PlayerGenerationTracker() |
Modifier and Type | Method and Description |
---|---|
void |
addPlayer(long chunkPosIn,
ServerPlayerEntity player,
boolean canGenerateChunks) |
boolean |
cannotGenerateChunks(ServerPlayerEntity player) |
void |
disableGeneration(ServerPlayerEntity player) |
void |
enableGeneration(ServerPlayerEntity player) |
boolean |
func_225419_d(ServerPlayerEntity p_225419_1_) |
java.util.stream.Stream<ServerPlayerEntity> |
getGeneratingPlayers(long chunkPosIn) |
void |
removePlayer(long chunkPosIn,
ServerPlayerEntity player) |
void |
updatePlayerPosition(long oldChunkPos,
long newChunkPos,
ServerPlayerEntity player) |
private final it.unimi.dsi.fastutil.objects.Object2BooleanMap<ServerPlayerEntity> generatingPlayers
public java.util.stream.Stream<ServerPlayerEntity> getGeneratingPlayers(long chunkPosIn)
public void addPlayer(long chunkPosIn, ServerPlayerEntity player, boolean canGenerateChunks)
public void removePlayer(long chunkPosIn, ServerPlayerEntity player)
public void disableGeneration(ServerPlayerEntity player)
public void enableGeneration(ServerPlayerEntity player)
public boolean cannotGenerateChunks(ServerPlayerEntity player)
public boolean func_225419_d(ServerPlayerEntity p_225419_1_)
public void updatePlayerPosition(long oldChunkPos, long newChunkPos, ServerPlayerEntity player)