cn.nukkit.api.DeprecationDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powernukkit Show documentation
Show all versions of powernukkit Show documentation
A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.
package cn.nukkit.api;
import java.lang.annotation.*;
/**
* Describe the deprecation with more details. This is persisted to the class file, so it can be read without javadocs.
*/
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.ANNOTATION_TYPE, ElementType.TYPE,
ElementType.FIELD, ElementType.PACKAGE})
@Documented
public @interface DeprecationDetails {
/**
* The version which marked this element as deprecated.
*/
String since();
/**
* Why it is deprecated.
*/
String reason();
/**
* What should be used or do instead.
*/
String replaceWith() default "";
/**
* When the annotated element will be removed or have it's signature changed.
*/
String toBeRemovedAt() default "";
/**
* The maintainer party that has added this depreciation. For example: PowerNukkit, Cloudburst Nukkit, and Nukkit
*/
String by() default "";
}