Skip to content

Commit bb07555

Browse files
authored
docs: add javadoc to CarBarrier (#298)
1 parent 9598286 commit bb07555

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

src/main/java/minevalley/core/api/utils/CarBarrier.java

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,24 @@
33
@SuppressWarnings("unused")
44
public interface CarBarrier {
55

6-
void open();
6+
/**
7+
* Opens the barrier.
8+
*
9+
* @throws IllegalStateException if the barrier is already open or removed.
10+
*/
11+
void open() throws IllegalStateException;
712

8-
void close();
13+
/**
14+
* Closes the barrier.
15+
*
16+
* @throws IllegalStateException if the barrier is already closed or removed.
17+
*/
18+
void close() throws IllegalStateException;
919

10-
void remove();
20+
/**
21+
* Removes the barrier.
22+
*
23+
* @throws IllegalStateException if the barrier is already removed.
24+
*/
25+
void remove() throws IllegalStateException;
1126
}

0 commit comments

Comments
 (0)