Package me.ryanhamshire.GriefPrevention

Examples of me.ryanhamshire.GriefPrevention.Claim


  }
 
  @SuppressWarnings("null")
  @Override
  public Collection<? extends Region> getRegionsAt_i(final Location l) {
    final Claim c = plugin.dataStore.getClaimAt(l, false, null);
    if (c != null)
      return Arrays.asList(new GriefPreventionRegion(c));
    return Collections.emptySet();
  }
View Full Code Here


 
  @Override
  @Nullable
  public Region getRegion_i(final World world, final String name) {
    try {
      final Claim c = plugin.dataStore.getClaim(Long.parseLong(name));
      if (c != null && world.equals(c.getLesserBoundaryCorner().getWorld()))
        return new GriefPreventionRegion(c);
      return null;
    } catch (final NumberFormatException e) {
      return null;
    }
View Full Code Here

    }
   
    @Override
    public void deserialize(final Fields fields) throws StreamCorruptedException {
      final long id = fields.getPrimitive("id", long.class);
      final Claim c = plugin.dataStore.getClaim(id);
      if (c == null)
        throw new StreamCorruptedException("Invalid claim " + id);
      claim = c;
    }
View Full Code Here

TOP

Related Classes of me.ryanhamshire.GriefPrevention.Claim

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.