001 package org.bukkit.plugin; 002 003 import java.util.Set; 004 005 import org.bukkit.plugin.java.JavaPlugin; 006 007 /** 008 * Represents a concept that a plugin is aware of. 009 * <p> 010 * The internal representation may be singleton, or be a parameterized 011 * instance, but must be immutable. 012 */ 013 public interface PluginAwareness { 014 /** 015 * Each entry here represents a particular plugin's awareness. These can 016 * be checked by using {@link PluginDescriptionFile#getAwareness()}.{@link 017 * Set#contains(Object) contains(flag)}. 018 */ 019 public enum Flags implements PluginAwareness { 020 /** 021 * This specifies that all (text) resources stored in a plugin's jar 022 * use UTF-8 encoding. 023 * 024 * @see JavaPlugin#getTextResource(String) 025 */ 026 UTF8, 027 ; 028 } 029 }