All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.material.SmoothBrick Maven / Gradle / Ivy

package org.bukkit.material;

import org.bukkit.Material;

import java.util.ArrayList;
import java.util.List;

/**
 * Represents the different types of smooth bricks.
 */
public class SmoothBrick extends TexturedMaterial {

  private static final List textures = new ArrayList();

  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);
  }

  /**
   * @param type the raw type id
   * @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);
    }
  }

  /**
   * @param type the raw type id
   * @param data the raw data value
   * @deprecated Magic value
   */
  @Deprecated
  public SmoothBrick(final int type, final byte data) {
    super(type, data);
  }

  /**
   * @param type the type
   * @param data the raw data value
   * @deprecated Magic value
   */
  @Deprecated
  public SmoothBrick(final Material type, final byte data) {
    super(type, data);
  }

  @Override
  public List getTextures() {
    return textures;
  }

  @Override
  public SmoothBrick clone() {
    return (SmoothBrick) super.clone();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy