Skip to content

Commit 369d888

Browse files
committed
Change BlockEntity#setTicking()
1 parent 645af7d commit 369d888

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main/java/org/spongepowered/api/block/entity/BlockEntity.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,16 @@ public interface BlockEntity extends SerializableDataHolder.Mutable, Locatable {
8282
boolean isTicking();
8383

8484
/**
85-
* Sets if this block entity will naturally tick.
85+
* Attempts to set if this block entity will naturally tick.
86+
*
87+
* <p>This will return <code>false</code>
88+
* if {@link #isRemoved()} returns <code>true</code>
89+
* or {@link #canTick()} returns <code>false</code></p>
8690
*
8791
* @param ticking The ticking state
92+
* @return True if ticking state was successfully set
8893
*/
89-
void setTicking(boolean ticking);
94+
boolean setTicking(boolean ticking);
9095

9196
/**
9297
* Gets the type of {@link BlockEntity} this is.

0 commit comments

Comments
 (0)