public class ChunkLocationSet extends Object
Constructor and Description |
---|
ChunkLocationSet(TridentPlayer player)
Creates a new chunk set for the given player
|
Modifier and Type | Method and Description |
---|---|
void |
clean(int distance)
Clears the chunks that are not used within the specified view distance
|
void |
clean0(int viewDist) |
void |
clear()
Correctly clears and releases the chunk references held by this set
|
Set<ChunkLocation> |
locations()
Obtains the chunks that are held in this location set
|
void |
update(int viewDistance)
Updates the chunks the player does not currently have within the given view distance
|
public ChunkLocationSet(TridentPlayer player)
player
- the player to associate the chunks withpublic void clean(int distance)
distance
- the distance of chunks of which to retainpublic void update(int viewDistance)
viewDistance
- the diameter of the circle which to send chunks that the player currently does not possess as
listed in this setpublic void clear()
@Policy(value="holds knownChunks") public Set<ChunkLocation> locations()
Copyright © 2016. All rights reserved.