Added API to find a claim by its ID.
This commit is contained in:
1 parent
1d3214cbee
commit
5e0d3f09de
1 file changed
+11
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user