mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 05:03:55 -07:00
Added Wolf creature interface
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -18,7 +18,8 @@ public enum CreatureType {
|
|||||||
SLIME("Slime"),
|
SLIME("Slime"),
|
||||||
SPIDER("Spider"),
|
SPIDER("Spider"),
|
||||||
SQUID("Squid"),
|
SQUID("Squid"),
|
||||||
ZOMBIE("Zombie");
|
ZOMBIE("Zombie"),
|
||||||
|
WOLF("Wolf");
|
||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
35
paper-api/src/main/java/org/bukkit/entity/Wolf.java
Normal file
35
paper-api/src/main/java/org/bukkit/entity/Wolf.java
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
|
||||||
|
package org.bukkit.entity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents a Wolf
|
||||||
|
*/
|
||||||
|
public interface Wolf extends Animals {
|
||||||
|
/**
|
||||||
|
* Checks if this wolf is angry
|
||||||
|
*
|
||||||
|
* @return Anger true if angry
|
||||||
|
*/
|
||||||
|
public boolean isAngry();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the anger of this wolf
|
||||||
|
*
|
||||||
|
* @param angry true if angry
|
||||||
|
*/
|
||||||
|
public void setAngry(boolean angry);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if this wolf is sitting
|
||||||
|
*
|
||||||
|
* @return true if sitting
|
||||||
|
*/
|
||||||
|
public boolean isSitting();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets if this wolf is sitting
|
||||||
|
*
|
||||||
|
* @param sitting true if sitting
|
||||||
|
*/
|
||||||
|
public void setSitting(boolean sitting);
|
||||||
|
}
|
Reference in New Issue
Block a user