Added API to find a claim by its ID.
This commit is contained in:
parent
1d3214cbee
commit
5e0d3f09de
|
|
@ -582,6 +582,17 @@ public abstract class DataStore
|
|||
return null;
|
||||
}
|
||||
|
||||
//finds a claim by ID
|
||||
public synchronized Claim getClaim(long id)
|
||||
{
|
||||
for(Claim claim : this.claims)
|
||||
{
|
||||
if(claim.getID() == id) return claim;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
//gets a unique, persistent identifier string for a chunk
|
||||
private String getChunkString(Location location)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user