mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-03 14:11:27 +01:00
Added Wolf creature interface
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
a687d992de
commit
d15ff4b638
@ -18,7 +18,8 @@ public enum CreatureType {
|
||||
SLIME("Slime"),
|
||||
SPIDER("Spider"),
|
||||
SQUID("Squid"),
|
||||
ZOMBIE("Zombie");
|
||||
ZOMBIE("Zombie"),
|
||||
WOLF("Wolf");
|
||||
|
||||
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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user