Added Wolf creature interface

This commit is contained in:
Dinnerbone 2011-03-31 22:10:28 +01:00
parent 97072919fb
commit 88771cac97
2 changed files with 37 additions and 1 deletions

View File

@ -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;

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