mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 03:35:51 -07:00
Added LivingEntity.throwEgg() and LivingEntity.throwSnowball().
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
9
paper-api/src/main/java/org/bukkit/Egg.java
Normal file
9
paper-api/src/main/java/org/bukkit/Egg.java
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
package org.bukkit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents an egg.
|
||||||
|
*
|
||||||
|
* @author sk89q
|
||||||
|
*/
|
||||||
|
public interface Egg extends Entity {
|
||||||
|
}
|
@@ -18,4 +18,14 @@ public interface LivingEntity extends Entity {
|
|||||||
* @param health New health represented from 0-20
|
* @param health New health represented from 0-20
|
||||||
*/
|
*/
|
||||||
public void setHealth(int health);
|
public void setHealth(int health);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Throws an egg from the entity.
|
||||||
|
*/
|
||||||
|
public Egg throwEgg();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Throws a snowball from the entity.
|
||||||
|
*/
|
||||||
|
public Snowball throwSnowball();
|
||||||
}
|
}
|
||||||
|
9
paper-api/src/main/java/org/bukkit/Snowball.java
Normal file
9
paper-api/src/main/java/org/bukkit/Snowball.java
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
package org.bukkit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implements a snowball.
|
||||||
|
*
|
||||||
|
* @author sk89q
|
||||||
|
*/
|
||||||
|
public interface Snowball extends Entity {
|
||||||
|
}
|
Reference in New Issue
Block a user