Commits
Doc authored and md_5 committed 25d548eb23f
1 1 | package org.bukkit.entity; |
2 2 | |
3 + | import org.jetbrains.annotations.NotNull; |
4 + | import org.jetbrains.annotations.Nullable; |
5 + | |
3 6 | /** |
4 7 | * Represents a Creeper |
5 8 | */ |
6 9 | public interface Creeper extends Monster { |
7 10 | |
8 11 | /** |
9 12 | * Checks if this Creeper is powered (Electrocuted) |
10 13 | * |
11 14 | * @return true if this creeper is powered |
12 15 | */ |
62 65 | |
63 66 | /** |
64 67 | * Get the explosion radius in which this Creeper's explosion will affect. |
65 68 | * |
66 69 | * @return the explosion radius |
67 70 | */ |
68 71 | public int getExplosionRadius(); |
69 72 | |
70 73 | /** |
71 74 | * Makes this Creeper explode instantly. |
72 - | * |
75 + | * <br> |
73 76 | * The resulting explosion can be cancelled by an |
74 77 | * {@link org.bukkit.event.entity.ExplosionPrimeEvent} and obeys the mob |
75 78 | * griefing gamerule. |
76 79 | */ |
77 80 | public void explode(); |
78 81 | |
79 82 | /** |
80 83 | * Ignites this Creeper, beginning its fuse. |
81 - | * |
84 + | * <br> |
82 85 | * The amount of time the Creeper takes to explode will depend on what |
83 86 | * {@link #setMaxFuseTicks} is set as. |
87 + | * <br> |
88 + | * The resulting explosion can be cancelled by an |
89 + | * {@link org.bukkit.event.entity.ExplosionPrimeEvent} and obeys the mob |
90 + | * griefing gamerule. |
84 91 | * |
92 + | * @param entity the entity which ignited the creeper |
93 + | */ |
94 + | public void ignite( Entity entity); |
95 + | |
96 + | /** |
97 + | * Ignites this Creeper, beginning its fuse. |
98 + | * <br> |
99 + | * The amount of time the Creeper takes to explode will depend on what |
100 + | * {@link #setMaxFuseTicks} is set as. |
101 + | * <br> |
85 102 | * The resulting explosion can be cancelled by an |
86 103 | * {@link org.bukkit.event.entity.ExplosionPrimeEvent} and obeys the mob |
87 104 | * griefing gamerule. |
88 105 | */ |
89 106 | public void ignite(); |
107 + | |
108 + | /** |
109 + | * Gets the entity which ignited the creeper, if available. |
110 + | * |
111 + | * @return the entity which ignited the creeper (if available) or null |
112 + | */ |
113 + | |
114 + | public Entity getIgniter(); |
90 115 | } |