Improve entity hierarchy by adding Mob interface.
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -3,7 +3,7 @@ package org.bukkit.entity;
|
||||
/**
|
||||
* Represents a Slime.
|
||||
*/
|
||||
public interface Slime extends LivingEntity {
|
||||
public interface Slime extends Mob {
|
||||
|
||||
/**
|
||||
* @return The size of the slime
|
||||
@@ -14,19 +14,4 @@ public interface Slime extends LivingEntity {
|
||||
* @param sz The new size of the slime.
|
||||
*/
|
||||
public void setSize(int sz);
|
||||
|
||||
/**
|
||||
* Set the {@link LivingEntity} target for this slime. Set to null to clear
|
||||
* the target.
|
||||
*
|
||||
* @param target the entity to target
|
||||
*/
|
||||
public void setTarget(LivingEntity target);
|
||||
|
||||
/**
|
||||
* Get the {@link LivingEntity} this slime is currently targeting.
|
||||
*
|
||||
* @return the current target, or null if no target exists.
|
||||
*/
|
||||
public LivingEntity getTarget();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user