Added Wolf creature interface
This commit is contained in:
parent
97072919fb
commit
88771cac97
@ -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
src/main/java/org/bukkit/entity/Wolf.java
Normal file
35
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…
x
Reference in New Issue
Block a user