package Ġcom . exp an se mc . town ship . plugin . registry . view Ċ Ċ import Ġcom . exp an se mc . town ship . api . registry . central . Central Claim Registry Ċ import Ġcom . exp an se mc . town ship . api . claim . Claim Ċ import Ġcom . exp an se mc . town ship . api . registry . type . Claim Registry Ċ import Ġcom . exp an se mc . town ship . api . town . Town Ċ import Ġorg . spongepowered . api . world . Server Location Ċ import Ġorg . spongepowered . api . world . server . Server World Ċ import Ġjava . util .* Ċ Ċ data Ġclass ĠT own Claim Registry View ( ĊĠĠĠ Ġprivate Ġval Ġcentral : ĠCentral Claim Registry , ĊĠĠĠ Ġprivate Ġval Ġtown : ĠT own Ċ ) Ġ: ĠClaim Registry Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġsize (): ĠInt Ġ= ĊĠĠĠĠĠĠĠ Ġthis . central . size () ĊĊĠĠĠ Ġoverride Ġfun ĠgetAll (): ĠCollection < Claim > Ġ= ĊĠĠĠĠĠĠĠ Ġthis . central . getAll For ( this . town ) ĊĊĠĠĠ Ġoverride Ġfun Ġcontains ( element : ĠClaim ): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ Ġelement . town Ġ== Ġthis . town Ġ&& Ġelement Ġin Ġcentral ĊĊĠĠĠ Ġoverride Ġfun Ġcontains ( location : ĠServer Location ): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ Ġthis . central . get ( location ). filter Ġ{ Ġit . town Ġ== Ġthis . town Ġ}. isPresent ĊĊĠĠĠ Ġoverride Ġfun ĠgetAll For ( world : ĠServer World ): ĠCollection < Claim > Ġ= ĊĠĠĠĠĠĠĠ Ġthis . central . getAll For ( this . town , Ġworld ) ĊĊĠĠĠ Ġoverride Ġfun Ġget ( location : ĠServer Location ): ĠOptional < Claim > Ġ= ĊĠĠĠĠĠĠĠ Ġcentral . get ( location ). filter Ġ{ Ġit . town Ġ== Ġthis . town Ġ} Ċ }