summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/entity/Slime.java
blob: 0d87d203540d767d93ab4f9b75ab778f3a881e08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package org.bukkit.entity;

/**
 * Represents a Slime.
 */
public interface Slime extends LivingEntity {

    /**
     * @return The size of the slime
     */
    public int getSize();

    /**
     * @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();
}