diff --git a/build.gradle.kts b/build.gradle.kts index 95dda334e2..75be8bd5d2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -178,7 +178,7 @@ tasks { options { (this as? StandardJavadocDocletOptions)?.apply { links( - "https://logging.apache.org/log4j/log4j-${libs.versions.log4j.get()}/log4j-api/apidocs/", + "https://logging.apache.org/log4j/2.x/javadoc/log4j-api/", "https://google.github.io/guice/api-docs/${libs.versions.guice.get()}/javadoc/", "https://configurate.aoeu.xyz/${libs.versions.configurate.get()}/apidocs/", "https://www.javadoc.io/doc/com.google.code.gson/gson/${libs.versions.gson.get()}/", diff --git a/src/main/java/org/spongepowered/api/block/entity/BlockEntity.java b/src/main/java/org/spongepowered/api/block/entity/BlockEntity.java index bc74a110b3..8d2ec2f13d 100644 --- a/src/main/java/org/spongepowered/api/block/entity/BlockEntity.java +++ b/src/main/java/org/spongepowered/api/block/entity/BlockEntity.java @@ -67,6 +67,32 @@ public interface BlockEntity extends SerializableDataHolder.Mutable, Locatable { */ void remove(); + /** + * Returns whether this block entity can tick. + * + * @return True if this block entity can tick + */ + boolean canTick(); + + /** + * Returns whether this block entity is ticking. + * + * @return True if this block entity is ticking + */ + boolean isTicking(); + + /** + * Attempts to set if this block entity will naturally tick. + * + *

This will return false + * if {@link #isRemoved()} returns true + * or {@link #canTick()} returns false

+ * + * @param ticking The ticking state + * @return True if ticking state was successfully set + */ + boolean setTicking(boolean ticking); + /** * Gets the type of {@link BlockEntity} this is. *