Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
CreatureSpawner.java
1 package org.bukkit.block;
2 
5 
6 /**
7  * Represents a creature spawner.
8  */
9 public interface CreatureSpawner extends BlockState {
10 
11  /**
12  * Get the spawner's creature type.
13  *
14  * @return The creature type.
15  * @deprecated In favour of {@link #getSpawnedType()}.
16  */
17  @Deprecated
19 
20  /**
21  * Get the spawner's creature type.
22  *
23  * @return The creature type.
24  */
25  public EntityType getSpawnedType();
26 
27  /**
28  * Set the spawner's creature type.
29  *
30  * @param creatureType The creature type.
31  */
32  public void setSpawnedType(EntityType creatureType);
33 
34  /**
35  * Set the spawner creature type.
36  *
37  * @param creatureType The creature type.
38  * @deprecated In favour of {@link #setSpawnedType(EntityType)}.
39  */
40  @Deprecated
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  @Deprecated
50  public String getCreatureTypeId();
51 
52  /**
53  * Set the spawner mob type.
54  *
55  * @param creatureType The creature type's name.
56  */
57  public void setCreatureTypeByName(String creatureType);
58 
59  /**
60  * Get the spawner's creature type.
61  *
62  * @return The creature type's name.
63  */
64  public String getCreatureTypeName();
65 
66  /**
67  * Set the spawner mob type.
68  *
69  * @param creatureType The creature type's name.
70  * @deprecated Use {@link #setCreatureTypeByName(String)}.
71  */
72  @Deprecated
73  public void setCreatureTypeId(String creatureType);
74 
75  /**
76  * Get the spawner's delay.
77  *
78  * @return The delay.
79  */
80  public int getDelay();
81 
82  /**
83  * Set the spawner's delay.
84  *
85  * @param delay The delay.
86  */
87  public void setDelay(int delay);
88 }
void setCreatureType(CreatureType creatureType)
void setSpawnedType(EntityType creatureType)
void setCreatureTypeId(String creatureType)
void setCreatureTypeByName(String creatureType)