Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
SmoothBrick.java
1 package org.bukkit.material;
2 
3 import java.util.ArrayList;
4 import java.util.List;
5 
6 import org.bukkit.Material;
7 
8 /**
9  * Represents the different types of smooth bricks.
10  */
11 public class SmoothBrick extends TexturedMaterial {
12 
13  private static final List<Material> textures = new ArrayList<Material>();
14  static {
15  textures.add(Material.STONE);
16  textures.add(Material.MOSSY_COBBLESTONE);
17  textures.add(Material.COBBLESTONE);
18  textures.add(Material.SMOOTH_BRICK);
19  }
20 
21  public SmoothBrick() {
22  super(Material.SMOOTH_BRICK);
23  }
24 
25  /**
26  *
27  * @deprecated Magic value
28  */
29  @Deprecated
30  public SmoothBrick(final int type) {
31  super(type);
32  }
33 
34  public SmoothBrick(final Material type) {
35  super((textures.contains(type)) ? Material.SMOOTH_BRICK : type);
36  if (textures.contains(type)) {
37  setMaterial(type);
38  }
39  }
40 
41  /**
42  *
43  * @deprecated Magic value
44  */
45  @Deprecated
46  public SmoothBrick(final int type, final byte data) {
47  super(type, data);
48  }
49 
50  /**
51  *
52  * @deprecated Magic value
53  */
54  @Deprecated
55  public SmoothBrick(final Material type, final byte data) {
56  super(type, data);
57  }
58 
59  @Override
60  public List<Material> getTextures() {
61  return textures;
62  }
63 
64  @Override
65  public SmoothBrick clone() {
66  return (SmoothBrick) super.clone();
67  }
68 }
SmoothBrick(final int type, final byte data)
SmoothBrick(final Material type, final byte data)