Retention and Target to Providers

This commit is contained in:
Rsl1122 2019-03-06 16:54:41 +02:00
parent b396602135
commit 98847a5b71
5 changed files with 35 additions and 0 deletions

View File

@ -19,6 +19,11 @@ package com.djrapitops.plan.extension.annotation;
import com.djrapitops.plan.extension.icon.Color; import com.djrapitops.plan.extension.icon.Color;
import com.djrapitops.plan.extension.icon.Family; import com.djrapitops.plan.extension.icon.Family;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/** /**
* Method annotation to provide a boolean value about a Player. * Method annotation to provide a boolean value about a Player.
* <p> * <p>
@ -34,6 +39,8 @@ import com.djrapitops.plan.extension.icon.Family;
* *
* @author Rsl1122 * @author Rsl1122
*/ */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface BooleanProvider { public @interface BooleanProvider {
/** /**

View File

@ -19,6 +19,11 @@ package com.djrapitops.plan.extension.annotation;
import com.djrapitops.plan.extension.icon.Color; import com.djrapitops.plan.extension.icon.Color;
import com.djrapitops.plan.extension.icon.Family; import com.djrapitops.plan.extension.icon.Family;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/** /**
* Method annotation to provide a double value about a Player. * Method annotation to provide a double value about a Player.
* <p> * <p>
@ -26,6 +31,8 @@ import com.djrapitops.plan.extension.icon.Family;
* *
* @author Rsl1122 * @author Rsl1122
*/ */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface DoubleProvider { public @interface DoubleProvider {
/** /**

View File

@ -20,6 +20,11 @@ import com.djrapitops.plan.extension.FormatType;
import com.djrapitops.plan.extension.icon.Color; import com.djrapitops.plan.extension.icon.Color;
import com.djrapitops.plan.extension.icon.Family; import com.djrapitops.plan.extension.icon.Family;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/** /**
* Method annotation to provide a long (64bit number) value about a Player. * Method annotation to provide a long (64bit number) value about a Player.
* <p> * <p>
@ -30,6 +35,8 @@ import com.djrapitops.plan.extension.icon.Family;
* *
* @author Rsl1122 * @author Rsl1122
*/ */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface NumberProvider { public @interface NumberProvider {
/** /**

View File

@ -19,6 +19,11 @@ package com.djrapitops.plan.extension.annotation;
import com.djrapitops.plan.extension.icon.Color; import com.djrapitops.plan.extension.icon.Color;
import com.djrapitops.plan.extension.icon.Family; import com.djrapitops.plan.extension.icon.Family;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/** /**
* Method annotation to provide a double (Percentage) about a Player. * Method annotation to provide a double (Percentage) about a Player.
* <p> * <p>
@ -29,6 +34,8 @@ import com.djrapitops.plan.extension.icon.Family;
* *
* @author Rsl1122 * @author Rsl1122
*/ */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface PercentageProvider { public @interface PercentageProvider {
/** /**

View File

@ -19,6 +19,11 @@ package com.djrapitops.plan.extension.annotation;
import com.djrapitops.plan.extension.icon.Color; import com.djrapitops.plan.extension.icon.Color;
import com.djrapitops.plan.extension.icon.Family; import com.djrapitops.plan.extension.icon.Family;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/** /**
* Method annotation to provide a String value about a Player. * Method annotation to provide a String value about a Player.
* <p> * <p>
@ -31,6 +36,8 @@ import com.djrapitops.plan.extension.icon.Family;
* *
* @author Rsl1122 * @author Rsl1122
*/ */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface StringProvider { public @interface StringProvider {
/** /**