Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package org.bukkit.block;
2
3import org.bukkit.entity.CreatureType;
4
5/**
6 * Represents a creature spawner.
7 *
8 * @author sk89q
9 * @author Cogito
10 */
11public interface CreatureSpawner extends BlockState {
12
13 /**
14 * Get the spawner's creature type.
15 *
16 * @return
17 */
18 public CreatureType getCreatureType();
19
20 /**
21 * Set the spawner creature type.
22 *
23 * @param mobType
24 */
25 public void setCreatureType(CreatureType creatureType);
26
27 /**
28 * Get the spawner's creature type.
29 *
30 * @return
31 */
32 public String getCreatureTypeId();
33
34 /**
35 * Set the spawner mob type.
36 *
37 * @param creatureType
38 */
39 public void setCreatureTypeId(String creatureType);
40
41 /**
42 * Get the spawner's delay.
43 *
44 * @return
45 */
46 public int getDelay();
47
48 /**
49 * Set the spawner's delay.
50 *
51 * @param delay
52 */
53 public void setDelay(int delay);
54}