All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.alangomes.springspigot.util.Synchronize Maven / Gradle / Ivy

There is a newer version: 0.20.7
Show newest version
package dev.alangomes.springspigot.util;

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

/**
 * Utility annotation to force method to be called in the Bukkit main thread.
 * All calls outside the main thread will be scheduled to the next server tick.
 *
 * If the method returns value, the value will be {@code null}.
 *
 * If the call originate from the main thread, it will be executed normally.
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Synchronize {
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy