Commits
Black Hole authored and md_5 committed 6dd5aa2ce1e
1 1 | package org.bukkit.block; |
2 2 | |
3 - | import org.bukkit.entity.CreatureType; |
4 3 | import org.bukkit.entity.EntityType; |
5 4 | |
6 5 | /** |
7 6 | * Represents a creature spawner. |
8 7 | */ |
9 8 | public interface CreatureSpawner extends BlockState { |
10 9 | |
11 - | /** |
12 - | * Get the spawner's creature type. |
13 - | * |
14 - | * @return The creature type. |
15 - | * @deprecated In favour of {@link #getSpawnedType()}. |
16 - | */ |
17 - | |
18 - | public CreatureType getCreatureType(); |
19 - | |
20 10 | /** |
21 11 | * Get the spawner's creature type. |
22 12 | * |
23 13 | * @return The creature type. |
24 14 | */ |
25 15 | public EntityType getSpawnedType(); |
26 16 | |
27 17 | /** |
28 18 | * Set the spawner's creature type. |
29 19 | * |
30 20 | * @param creatureType The creature type. |
31 21 | */ |
32 22 | public void setSpawnedType(EntityType creatureType); |
33 23 | |
34 - | /** |
35 - | * Set the spawner creature type. |
36 - | * |
37 - | * @param creatureType The creature type. |
38 - | * @deprecated In favour of {@link #setSpawnedType(EntityType)}. |
39 - | */ |
40 - | |
41 - | public void setCreatureType(CreatureType creatureType); |
42 - | |
43 - | /** |
44 - | * Get the spawner's creature type. |
45 - | * |
46 - | * @return The creature type's name. |
47 - | * @deprecated Use {@link #getCreatureTypeName()}. |
48 - | */ |
49 - | |
50 - | public String getCreatureTypeId(); |
51 - | |
52 24 | /** |
53 25 | * Set the spawner mob type. |
54 26 | * |
55 27 | * @param creatureType The creature type's name. |
56 28 | */ |
57 29 | public void setCreatureTypeByName(String creatureType); |
58 30 | |
59 31 | /** |
60 32 | * Get the spawner's creature type. |
61 33 | * |
62 34 | * @return The creature type's name. |
63 35 | */ |
64 36 | public String getCreatureTypeName(); |
65 37 | |
66 - | /** |
67 - | * Set the spawner mob type. |
68 - | * |
69 - | * @param creatureType The creature type's name. |
70 - | * @deprecated Use {@link #setCreatureTypeByName(String)}. |
71 - | */ |
72 - | |
73 - | public void setCreatureTypeId(String creatureType); |
74 - | |
75 38 | /** |
76 39 | * Get the spawner's delay. |
77 40 | * |
78 41 | * @return The delay. |
79 42 | */ |
80 43 | public int getDelay(); |
81 44 | |
82 45 | /** |
83 46 | * Set the spawner's delay. |
84 47 | * |