Package com.bergerkiller.bukkit.tc.properties

Examples of com.bergerkiller.bukkit.tc.properties.IPropertiesHolder


    return offset;
  }

  public static boolean parseProperties(IParsable properties, String key, String args) {
    IProperties prop;
    IPropertiesHolder holder;
    if (properties instanceof IPropertiesHolder) {
      holder = ((IPropertiesHolder) properties);
      prop = holder.getProperties();
    } else if (properties instanceof IProperties) {
      prop = (IProperties) properties;
      holder = prop.getHolder();
    } else {
      return false;
    }
    if (holder == null) {
      return prop.parseSet(key, args);
    } else if (prop.parseSet(key, args) || holder.parseSet(key, args))  {
      holder.onPropertiesChanged();
      return true;
    } else {
      return false;
    }
  }
View Full Code Here

TOP

Related Classes of com.bergerkiller.bukkit.tc.properties.IPropertiesHolder

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.