Improve entity hierarchy by adding Mob interface.

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2018-08-10 19:47:56 +10:00
parent 30068a6e08
commit d2b8685893
5 changed files with 28 additions and 38 deletions

View File

@@ -4,23 +4,4 @@ package org.bukkit.entity;
* Represents a Creature. Creatures are non-intelligent monsters or animals
* which have very simple abilities.
*/
public interface Creature extends LivingEntity {
/**
* Instructs this Creature to set the specified LivingEntity as its
* target.
* <p>
* Hostile creatures may attack their target, and friendly creatures may
* follow their target.
*
* @param target New LivingEntity to target, or null to clear the target
*/
public void setTarget(LivingEntity target);
/**
* Gets the current target of this Creature
*
* @return Current target of this creature, or null if none exists
*/
public LivingEntity getTarget();
}
public interface Creature extends Mob {}