package com.elmakers.mine.bukkit.api.magic;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import com.google.common.base.Optional;
import org.bukkit.command.CommandSender;

public interface MagicProperties {
    /**
     * Check to see if this property store contains a specific property.
     *
     * If this is an inherited store (such as a Wand to a WandTemplate), inherited
     * properties are checked as well.
     *
     * @param key The key to check
     * @return true if this store has the specified key.
     */
    boolean hasProperty(@Nonnull String key);

    /**
     * Return the raw value of a key in the store, or null if the key is not
     * present.
     *
     * @param key The key to retrieve
     * @return The raw value stored for the given key, or null if not present.
     */
    @Nullable Object getProperty(@Nonnull String key);

    /**
     * Get a property only if it is of a specific type.
     *
     * @param key The key to retrieve
     * @param type The class the value is expected to be
     * @return An Optional wrapper for the value
     */
    @Nonnull <T> Optional<? extends T> getProperty(@Nonnull String key, @Nonnull Class<T> type);

    /**
     * Get a property, specifying a default value.
     *
     * @param key The key to retrieve
     * @param defaultValue The value to return if the key is not present in the store or is not the correct type.
     * @return The value, if present and of the correct type, otherwise returns defaultValue
     */
    @Nonnull <T> T getProperty(@Nonnull String key, @Nonnull T defaultValue);

    /**
     * Print all properties to a CommandSender in a human-readable format.
     *
     * @param sender Where to print properties.
     */
    void describe(CommandSender sender);
}

@@ -188,16 +188,39 @@
 ender;%0A%0A
+import java.util.Set;%0A%0A
 public i
@@ -1804,11 +1804,374 @@
 sender);
+%0A%0A    /**%0A     * Print all properties except those in a specific set.%0A     *%0A     * Useful for differentiating between inherited and non-inherited properties.%0A     *%0A     * @param sender Where to print properties.%0A     * @param ignoreProperties A set of properties to ignore%0A     */%0A    void describe(CommandSender sender, @Nullable Set%3CString%3E ignoreProperties);
 %0A%7D%0A

Add describe method that can skip a Set of properties