Add methods for Armadillo (#12031)

This commit is contained in:
Pedro
2025-04-29 09:44:37 -04:00
committed by GitHub
parent fc0c371761
commit a7a76c8fc7
2 changed files with 72 additions and 0 deletions

View File

@ -1,8 +1,38 @@
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
*/
State getState();
/**
* Attempt to roll up if the armadillo is {@link State#IDLE}
*/
void rollUp();
/**
* Attempt to roll out if the armadillo is not {@link State#IDLE}
*/
void rollOut();
/**
* Represents the current state of the armadillo.
*/
enum State {
IDLE,
ROLLING,
SCARED,
UNROLLING;
}
}