Commits
Airtheon Thesalion authored and md_5 committed 1871ca9d3d5
1 1 | package org.bukkit.entity; |
2 2 | |
3 3 | /** |
4 4 | * Represents a fishing hook. |
5 5 | */ |
6 6 | public interface FishHook extends Projectile { |
7 + | |
8 + | /** |
9 + | * Get the minimum number of ticks one has to wait for a fish biting. |
10 + | * <p> |
11 + | * The default is 100 ticks (5 seconds).<br> |
12 + | * Note that this is before applying lure. |
13 + | * |
14 + | * @return Minimum number of ticks one has to wait for a fish biting |
15 + | */ |
16 + | public int getMinWaitTime(); |
17 + | |
18 + | /** |
19 + | * Set the minimum number of ticks one has to wait for a fish biting. |
20 + | * <p> |
21 + | * The default is 100 ticks (5 seconds).<br> |
22 + | * Note that this is before applying lure. |
23 + | * |
24 + | * @param minWaitTime Minimum number of ticks one has to wait for a fish |
25 + | * biting |
26 + | */ |
27 + | public void setMinWaitTime(int minWaitTime); |
28 + | |
29 + | /** |
30 + | * Get the maximum number of ticks one has to wait for a fish biting. |
31 + | * <p> |
32 + | * The default is 600 ticks (30 seconds).<br> |
33 + | * Note that this is before applying lure. |
34 + | * |
35 + | * @return Maximum number of ticks one has to wait for a fish biting |
36 + | */ |
37 + | public int getMaxWaitTime(); |
38 + | |
39 + | /** |
40 + | * Set the maximum number of ticks one has to wait for a fish biting. |
41 + | * <p> |
42 + | * The default is 600 ticks (30 seconds).<br> |
43 + | * Note that this is before applying lure. |
44 + | * |
45 + | * @param maxWaitTime Maximum number of ticks one has to wait for a fish |
46 + | * biting |
47 + | */ |
48 + | public void setMaxWaitTime(int maxWaitTime); |
49 + | |
50 + | /** |
51 + | * Get whether the lure enchantment should be applied to reduce the wait |
52 + | * time. |
53 + | * <p> |
54 + | * The default is true.<br> |
55 + | * Lure reduces the wait time by 100 ticks (5 seconds) for each level of the |
56 + | * enchantment. |
57 + | * |
58 + | * @return Whether the lure enchantment should be applied to reduce the wait |
59 + | * time |
60 + | */ |
61 + | public boolean getApplyLure(); |
62 + | |
63 + | /** |
64 + | * Set whether the lure enchantment should be applied to reduce the wait |
65 + | * time. |
66 + | * <p> |
67 + | * The default is true.<br> |
68 + | * Lure reduces the wait time by 100 ticks (5 seconds) for each level of the |
69 + | * enchantment. |
70 + | * |
71 + | * @param applyLure Whether the lure enchantment should be applied to reduce |
72 + | * the wait time |
73 + | */ |
74 + | public void setApplyLure(boolean applyLure); |
75 + | |
7 76 | /** |
8 77 | * Gets the chance of a fish biting. |
9 78 | * <p> |
10 79 | * 0.0 = No Chance.<br> |
11 80 | * 1.0 = Instant catch. |
12 81 | * |
13 82 | * @return chance the bite chance |
14 83 | * @deprecated has no effect in newer Minecraft versions |
15 84 | */ |
16 85 | |