package org.bukkit.material; import java.util.ArrayList; import java.util.List; import org.bukkit.Material; /** * Represents the different types of steps. */ public class Step extends TexturedMaterial { private static final List textures = new ArrayList(); static { textures.add(Material.STONE); textures.add(Material.SANDSTONE); textures.add(Material.WOOD); textures.add(Material.COBBLESTONE); textures.add(Material.BRICK); textures.add(Material.SMOOTH_BRICK); } public Step() { super(Material.STEP); } public Step(final int type) { super(type); } public Step(final Material type) { super((textures.contains(type)) ? Material.STEP : type); if (textures.contains(type)) { setMaterial(type); } } public Step(final int type, final byte data) { super(type, data); } public Step(final Material type, final byte data) { super(type, data); } @Override public List getTextures() { return textures; } }