File tree Expand file tree Collapse file tree 1 file changed +5
-20
lines changed
src/main/java/org/spongepowered/api/block/entity Expand file tree Collapse file tree 1 file changed +5
-20
lines changed Original file line number Diff line number Diff line change 5656public 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.
You can’t perform that action at this time.
0 commit comments