Co-authored-by: Bjarne Koll <git@lynxplay.dev> Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com> Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com> Co-authored-by: Noah van der Aa <ndvdaa@gmail.com> Co-authored-by: Owen1212055 <23108066+Owen1212055@users.noreply.github.com> Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com>
42 lines
793 B
Java
42 lines
793 B
Java
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 {
|
|
// Start generate - ArmadilloState
|
|
// @GeneratedFrom 1.21.6-rc1
|
|
IDLE,
|
|
ROLLING,
|
|
SCARED,
|
|
UNROLLING;
|
|
// End generate - ArmadilloState
|
|
}
|
|
|
|
}
|