Skip to content

Commit

Permalink
Added Experimental Annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Outspending committed Dec 29, 2023
1 parent a0354be commit 2ceb51f
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 114 deletions.
111 changes: 0 additions & 111 deletions build.gradle

This file was deleted.

2 changes: 2 additions & 0 deletions build.gradle/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

2 changes: 0 additions & 2 deletions src/main/java/me/outspending/biomesapi/BiomeTempModifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public enum BiomeTempModifier {
*
* @version 0.0.1
*/
@AsOf("0.0.1")
NONE(Biome.TemperatureModifier.NONE),

/**
Expand All @@ -30,7 +29,6 @@ public enum BiomeTempModifier {
*
* @version 0.0.1
*/
@AsOf("0.0.1")
FROZEN(Biome.TemperatureModifier.FROZEN);

/**
Expand Down
1 change: 0 additions & 1 deletion src/main/java/me/outspending/biomesapi/CustomBiome.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import lombok.Getter;
import lombok.Setter;
import me.outspending.biomesapi.annotations.AsOf;
import me.outspending.biomesapi.nms.NMSHandler;
import net.minecraft.resources.ResourceLocation;
import org.bukkit.Color;
import org.bukkit.NamespacedKey;
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/me/outspending/biomesapi/annotations/AsOf.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package me.outspending.biomesapi.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
* This annotation is used to indicate the version or date since the annotated element has been present or modified.
Expand All @@ -20,6 +22,14 @@
* In the above example, the {@code someApiMethod} method has been present or modified since version 1.0.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({
ElementType.METHOD,
ElementType.TYPE,
ElementType.CONSTRUCTOR,
ElementType.MODULE,
ElementType.PACKAGE
})
@AsOf("0.0.1")
public @interface AsOf {

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package me.outspending.biomesapi.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
* This annotation is used to mark elements that are experimental.
* Experimental elements are those that are not yet stable and may change in the future.
* This annotation can be applied to methods, types, constructors, modules, and packages.
*
* @version 0.0.1
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({
ElementType.METHOD,
ElementType.TYPE,
ElementType.CONSTRUCTOR,
ElementType.MODULE,
ElementType.PACKAGE
})
@AsOf("0.0.1")
public @interface Experimental {
}

0 comments on commit 2ceb51f

Please sign in to comment.