Files
Paper/paper-api/src/main/java/org/bukkit/entity/Axolotl.java
Bukkit/Spigot 153752dfac Update to Minecraft 1.17
By: md_5 <git@md-5.net>
2021-06-11 15:00:00 +10:00

70 lines
1.3 KiB
Java

package org.bukkit.entity;
import org.jetbrains.annotations.NotNull;
/**
* An Axolotl.
*/
public interface Axolotl extends Animals {
/**
* Gets if this axolotl is playing dead.
*
* An axolotl may play dead when it is damaged underwater.
*
* @return playing dead status
*/
boolean isPlayingDead();
/**
* Sets if this axolotl is playing dead.
*
* An axolotl may play dead when it is damaged underwater.
*
* @param playingDead playing dead status
*/
void setPlayingDead(boolean playingDead);
/**
* Get the variant of this axolotl.
*
* @return axolotl variant
*/
@NotNull
Variant getVariant();
/**
* Set the variant of this axolotl.
*
* @param variant axolotl variant
*/
void setVariant(@NotNull Variant variant);
/**
* Represents the variant of a axolotl - ie its color.
*/
public enum Variant {
/**
* Leucistic (pink) axolotl.
*/
LUCY,
/**
* Brown axolotl.
*/
WILD,
/**
* Gold axolotl.
*/
GOLD,
/**
* Cyan axolotl.
*/
CYAN,
/**
* Blue axolotl.
*/
BLUE;
}
}