Files
pcinv/src/main/java/be/seeseepuff/pcinv/meta/Property.java
Sebastiaan de Schaetzen e703da995e
Some checks failed
Build / build (push) Failing after 15s
Got most of the create menu working
2025-06-07 17:32:55 +02:00

28 lines
677 B
Java

package be.seeseepuff.pcinv.meta;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* An annotation to mark a property descriptor of an asset.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Property {
/**
* The displayable name of the property.
*
* @return the display name of the property
*/
String value();
/**
* Whether the property is required for the asset.
*
* @return true if the property is required, false otherwise
*/
boolean required() default false;
}