001    /*
002     * The FML Forge Mod Loader suite. Copyright (C) 2012 cpw
003     *
004     * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free
005     * Software Foundation; either version 2.1 of the License, or any later version.
006     *
007     * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
008     * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
009     *
010     * You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51
011     * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
012     */
013    package net.minecraft.src;
014    
015    import static java.lang.annotation.ElementType.FIELD;
016    import static java.lang.annotation.RetentionPolicy.RUNTIME;
017    
018    import java.lang.annotation.Retention;
019    import java.lang.annotation.Target;
020    
021    /**
022     * @author cpw
023     * 
024     */
025    @Retention(value = RUNTIME)
026    @Target(value = FIELD)
027    public @interface MLProp
028    {
029        /**
030         * Adds additional help to top of configuration file.
031         */
032        String info() default "";
033    
034        /**
035         * Maximum value allowed if field is a number.
036         */
037        double max() default Double.MAX_VALUE;
038    
039        /**
040         * Minimum value allowed if field is a number.
041         */
042        double min() default Double.MIN_VALUE;
043    
044        /**
045         * Overrides the field name for property key.
046         */
047        String name() default "";
048    
049    }