Added API to find a claim by its ID.

This commit is contained in:
ryanhamshire 2015-01-11 15:08:40 -08:00
parent 1d3214cbee
commit 5e0d3f09de

View File

@ -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)
{