Skip to content

Commit

Permalink
docs: add javadoc to CarBarrier (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
Snabeldier authored Feb 5, 2025
1 parent 9598286 commit bb07555
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/main/java/minevalley/core/api/utils/CarBarrier.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,24 @@
@SuppressWarnings("unused")
public interface CarBarrier {

void open();
/**
* Opens the barrier.
*
* @throws IllegalStateException if the barrier is already open or removed.
*/
void open() throws IllegalStateException;

void close();
/**
* Closes the barrier.
*
* @throws IllegalStateException if the barrier is already closed or removed.
*/
void close() throws IllegalStateException;

void remove();
/**
* Removes the barrier.
*
* @throws IllegalStateException if the barrier is already removed.
*/
void remove() throws IllegalStateException;
}

0 comments on commit bb07555

Please sign in to comment.