Added Wolf creature interface

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot 2011-03-31 22:10:28 +01:00
parent a687d992de
commit d15ff4b638
2 changed files with 37 additions and 1 deletions

View File

@ -18,7 +18,8 @@ public enum CreatureType {
SLIME("Slime"),
SPIDER("Spider"),
SQUID("Squid"),
ZOMBIE("Zombie");
ZOMBIE("Zombie"),
WOLF("Wolf");
private String name;

View 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);
}