Skip to content

Commit 289329a

Browse files
MrHell228aromaa
andauthored
Change BlockEntity#setValid() to remove() (#2516)
* Change BlockEntity#setValid() to remove() * Fix description Co-authored-by: Joni Aromaa <[email protected]> --------- Co-authored-by: Joni Aromaa <[email protected]>
1 parent 22cb82d commit 289329a

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

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

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -56,31 +56,16 @@
5656
public interface BlockEntity extends SerializableDataHolder.Mutable, Locatable {
5757

5858
/**
59-
* Checks for whether the block entity is currently valid or not.
59+
* Returns whether this block entity has been removed.
6060
*
61-
* <p>Use this method to check if processing should be run on this
62-
* {@link BlockEntity}. If it is valid, then processing can be run on it.
63-
* If not, then processing should wait until it becomes valid or is
64-
* destroyed.</p>
65-
*
66-
* @return True if the block entity is valid, false if not
61+
* @return True if this block entity has been removed
6762
*/
68-
boolean isValid();
63+
boolean isRemoved();
6964

7065
/**
71-
* Changes the validation of this block entity.
72-
*
73-
* <p>If the block entity is invalid, no processing will be done on this
74-
* {@link BlockEntity} until it either becomes valid or is reset on the next
75-
* tick.</p>
76-
*
77-
* <p>If the block entity is valid, then processing can continue and this
78-
* {@link BlockEntity} will not be reset on the next tick.</p>
79-
*
80-
* @param valid True if the block entity should be validated, or false if
81-
* it should be invalidated
66+
* Removes this block entity from the world and its corresponding block.
8267
*/
83-
void setValid(boolean valid);
68+
void remove();
8469

8570
/**
8671
* Gets the type of {@link BlockEntity} this is.

0 commit comments

Comments
 (0)