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

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

The newest version!
package org.bukkit.material;

import org.bukkit.Material;
import org.bukkit.block.BlockFace;

/**
 * Represents a chest
 */
public class Chest extends DirectionalContainer {

  public Chest() {
    super(Material.CHEST);
  }

  /**
   * Instantiate a chest facing in a particular direction.
   *
   * @param direction the direction the chest's lit opens towards
   */
  public Chest(BlockFace direction) {
    this();
    setFacingDirection(direction);
  }

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

  public Chest(final Material type) {
    super(type);
  }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy