blob: 9422d56cd2b6422a882ee1bcc7c9ba1fdc109f7d (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
package org.bukkit.entity;
import org.bukkit.inventory.LlamaInventory;
/**
* Represents a Llama.
*/
public interface Llama extends ChestedHorse {
/**
* Represents the base color that the llama has.
*/
public enum Color {
/**
* A cream-colored llama.
*/
CREAMY,
/**
* A white llama.
*/
WHITE,
/**
* A brown llama.
*/
BROWN,
/**
* A gray llama.
*/
GRAY;
}
/**
* Gets the llama's color.
*
* @return a {@link Color} representing the llama's color
*/
Color getColor();
/**
* Sets the llama's color.
*
* @param color a {@link Color} for this llama
*/
void setColor(Color color);
/**
* Gets the llama's strength. A higher strength llama will have more
* inventory slots and be more threatening to entities.
*
* @return llama strength [1,5]
*/
int getStrength();
/**
* Sets the llama's strength. A higher strength llama will have more
* inventory slots and be more threatening to entities. Inventory slots are
* equal to strength * 3.
*
* @param strength llama strength [1,5]
*/
void setStrength(int strength);
@Override
LlamaInventory getInventory();
}
|