Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
MonsterEggs.java
Go to the documentation of this file.
1 package org.bukkit.material;
2 
3 import java.util.ArrayList;
4 import java.util.List;
5 
6 import org.bukkit.Material;
7 
11 public class MonsterEggs extends TexturedMaterial {
12 
13  private static final List<Material> textures = new ArrayList<Material>();
14  static {
15  textures.add(Material.STONE);
16  textures.add(Material.COBBLESTONE);
17  textures.add(Material.SMOOTH_BRICK);
18  }
19 
20  public MonsterEggs() {
21  super(Material.MONSTER_EGGS);
22  }
23 
24  public MonsterEggs(final int type) {
25  super(type);
26  }
27 
28  public MonsterEggs(final Material type) {
29  super((textures.contains(type)) ? Material.MONSTER_EGGS : type);
30  if (textures.contains(type)) {
31  setMaterial(type);
32  }
33  }
34 
35  public MonsterEggs(final int type, final byte data) {
36  super(type, data);
37  }
38 
39  public MonsterEggs(final Material type, final byte data) {
40  super(type, data);
41  }
42 
43  @Override
44  public List<Material> getTextures() {
45  return textures;
46  }
47 
48  @Override
49  public MonsterEggs clone() {
50  return (MonsterEggs) super.clone();
51  }
52 }