Search in sources :

Example 1 with BaseMagicProperties

use of com.elmakers.mine.bukkit.magic.BaseMagicProperties in project MagicPlugin by elBukkit.

the class WandProperties method getProperty.

@Override
@Nullable
public Object getProperty(String key) {
    Object value = null;
    BaseMagicProperties storage = getStorage(key);
    if (storage != null && storage != this) {
        value = storage.getProperty(key);
    }
    if (value == null) {
        value = super.getProperty(key);
    }
    if (value == null && wandTemplate != null) {
        value = wandTemplate.getProperty(key);
    }
    return value;
}
Also used : BaseMagicProperties(com.elmakers.mine.bukkit.magic.BaseMagicProperties) Nullable(javax.annotation.Nullable)

Aggregations

BaseMagicProperties (com.elmakers.mine.bukkit.magic.BaseMagicProperties)1 Nullable (javax.annotation.Nullable)1