mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
SPIGOT-5803: Add Piglin/Zoglin Baby API
This commit is contained in:
parent
f42d62fb18
commit
6f3c5f4a5a
2 changed files with 32 additions and 2 deletions
|
@ -3,4 +3,19 @@ package org.bukkit.entity;
|
||||||
/**
|
/**
|
||||||
* Represents a Piglin.
|
* Represents a Piglin.
|
||||||
*/
|
*/
|
||||||
public interface Piglin extends Monster { }
|
public interface Piglin extends Monster {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets whether the piglin is a baby
|
||||||
|
*
|
||||||
|
* @return Whether the piglin is a baby
|
||||||
|
*/
|
||||||
|
public boolean isBaby();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets whether the piglin is a baby
|
||||||
|
*
|
||||||
|
* @param flag Whether the piglin is a baby
|
||||||
|
*/
|
||||||
|
public void setBaby(boolean flag);
|
||||||
|
}
|
||||||
|
|
|
@ -3,4 +3,19 @@ package org.bukkit.entity;
|
||||||
/**
|
/**
|
||||||
* Represents a Zoglin.
|
* Represents a Zoglin.
|
||||||
*/
|
*/
|
||||||
public interface Zoglin extends Monster { }
|
public interface Zoglin extends Monster {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets whether the zoglin is a baby
|
||||||
|
*
|
||||||
|
* @return Whether the zoglin is a baby
|
||||||
|
*/
|
||||||
|
public boolean isBaby();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets whether the zoglin is a baby
|
||||||
|
*
|
||||||
|
* @param flag Whether the zoglin is a baby
|
||||||
|
*/
|
||||||
|
public void setBaby(boolean flag);
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue