Files
Paper/paper-api/src/main/java/org/bukkit/material/SmoothBrick.java
Bukkit/Spigot f9bec6eadd Deprecate magic values
By: Wesley Wolfe <weswolf@aol.com>
2013-08-19 13:32:18 -05:00

69 lines
1.4 KiB
Java

package org.bukkit.material;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Material;
/**
* Represents the different types of smooth bricks.
*/
public class SmoothBrick extends TexturedMaterial {
private static final List<Material> textures = new ArrayList<Material>();
static {
textures.add(Material.STONE);
textures.add(Material.MOSSY_COBBLESTONE);
textures.add(Material.COBBLESTONE);
textures.add(Material.SMOOTH_BRICK);
}
public SmoothBrick() {
super(Material.SMOOTH_BRICK);
}
/**
*
* @deprecated Magic value
*/
@Deprecated
public SmoothBrick(final int type) {
super(type);
}
public SmoothBrick(final Material type) {
super((textures.contains(type)) ? Material.SMOOTH_BRICK : type);
if (textures.contains(type)) {
setMaterial(type);
}
}
/**
*
* @deprecated Magic value
*/
@Deprecated
public SmoothBrick(final int type, final byte data) {
super(type, data);
}
/**
*
* @deprecated Magic value
*/
@Deprecated
public SmoothBrick(final Material type, final byte data) {
super(type, data);
}
@Override
public List<Material> getTextures() {
return textures;
}
@Override
public SmoothBrick clone() {
return (SmoothBrick) super.clone();
}
}