forked from PaperMC/Paper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,47 @@ | ||
package org.bukkit.entity; | ||
|
||
import org.jspecify.annotations.NullMarked; | ||
|
||
/** | ||
* Represents an Armadillo. | ||
*/ | ||
@NullMarked | ||
public interface Armadillo extends Animals { | ||
|
||
/** | ||
* Get the current state of the armadillo. | ||
* | ||
* @return the state of the armadillo | ||
*/ | ||
public State getState(); | ||
|
||
/** | ||
* Set a new state for the armadillo. | ||
* <br> | ||
* This will also make the armadillo make the transition to the new state. | ||
* | ||
* @param state the new state | ||
*/ | ||
public void setState(final State state); | ||
|
||
/** | ||
* Attempt to rollUp if it in {@link State#IDLE} | ||
*/ | ||
public void rollUp(); | ||
|
||
/** | ||
* Attempt to rollUp if it's not in {@link State#IDLE} | ||
*/ | ||
public void rollOut(); | ||
|
||
/** | ||
* Represents the current state of the Armadillo. | ||
*/ | ||
public enum State { | ||
IDLE, | ||
ROLLING, | ||
SCARED, | ||
UNROLLING; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters