/
Talkable.java
51 lines (45 loc) · 1.33 KB
/
Talkable.java
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package net.citizensnpcs.api.ai.speech;
import org.bukkit.entity.Entity;
/**
* Talkable provides an interface for talking to Players, Entities and NPCs.
*
*/
public interface Talkable extends Comparable<Object> {
/**
* Gets the LivingEntity associated with this Talkable
*
* @return a LivingEntity
*/
public Entity getEntity();
/**
* Gets the name of the Talkable LivingEntity
*
* @return name
*/
public String getName();
/**
* Called by a {@link VocalChord} when talking near this Talkable Entity to provide a universal method to getting an
* event/output.
*
* @param context
* the Speech context
* @param message
* The message to send
* @param vocalChord
* The chord to use
*
*/
public void talkNear(SpeechContext context, String message);
/**
* Called by a {@link VocalChord} when talking to this Talkable Entity to provide a universal method to getting an
* event/output.
*
* @param context
* the Speech context
* @param message
* The message to send
* @param vocalChord
* The chord to use
*/
public void talkTo(SpeechContext context, String message);
}