Update to Minecraft 1.17

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2021-06-11 15:00:00 +10:00
parent 2e1a3720cf
commit 153752dfac
44 changed files with 3379 additions and 958 deletions

View File

@@ -0,0 +1,69 @@
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;
}
}