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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
package org.bukkit.entity;
import org.bukkit.inventory.AbstractHorseInventory;
import org.bukkit.inventory.InventoryHolder;
/**
* Represents a Horse-like creature.
*/
public interface AbstractHorse extends Animals, Vehicle, InventoryHolder, Tameable {
/**
* Gets the horse's variant.
* <p>
* A horse's variant defines its physical appearance and capabilities.
* Whether a horse is a regular horse, donkey, mule, or other kind of horse
* is determined using the variant.
*
* @return a {@link Horse.Variant} representing the horse's variant
* @deprecated different variants are different classes
*/
@Deprecated
public Horse.Variant getVariant();
/**
* @param variant
* @deprecated you are required to spawn a different entity
*/
@Deprecated
public void setVariant(Horse.Variant variant);
/**
* Gets the domestication level of this horse.
* <p>
* A higher domestication level indicates that the horse is closer to
* becoming tame. As the domestication level gets closer to the max
* domestication level, the chance of the horse becoming tame increases.
*
* @return domestication level
*/
public int getDomestication();
/**
* Sets the domestication level of this horse.
* <p>
* Setting the domestication level to a high value will increase the
* horse's chances of becoming tame.
* <p>
* Domestication level must be greater than zero and no greater than
* the max domestication level of the horse, determined with
* {@link #getMaxDomestication()}
*
* @param level domestication level
*/
public void setDomestication(int level);
/**
* Gets the maximum domestication level of this horse.
* <p>
* The higher this level is, the longer it will likely take
* for the horse to be tamed.
*
* @return the max domestication level
*/
public int getMaxDomestication();
/**
* Sets the maximum domestication level of this horse.
* <p>
* Setting a higher max domestication will increase the amount of
* domesticating (feeding, riding, etc.) necessary in order to tame it,
* while setting a lower max value will have the opposite effect.
* <p>
* Maximum domestication must be greater than zero.
*
* @param level the max domestication level
*/
public void setMaxDomestication(int level);
/**
* Gets the jump strength of this horse.
* <p>
* Jump strength defines how high the horse can jump. A higher jump strength
* increases how high a jump will go.
*
* @return the horse's jump strength
*/
public double getJumpStrength();
/**
* Sets the jump strength of this horse.
* <p>
* A higher jump strength increases how high a jump will go.
* Setting a jump strength to 0 will result in no jump.
* You cannot set a jump strength to a value below 0 or
* above 2.
*
* @param strength jump strength for this horse
*/
public void setJumpStrength(double strength);
@Override
public AbstractHorseInventory getInventory();
}
|