Skip to content

Commit

Permalink
Add BlockEntity tick methods
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHell228 committed Jun 28, 2024
1 parent 289329a commit 54ec594
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/main/java/org/spongepowered/api/block/entity/BlockEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,27 @@ 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();

/**
* Sets if this block entity will naturally tick.
*
* @param ticking The ticking state
*/
void setTicking(boolean ticking);

/**
* Gets the type of {@link BlockEntity} this is.
*
Expand Down

0 comments on commit 54ec594

Please sign in to comment.