2825ece820
while some of these may of been true, they are extreme cases and cause a ton of noise to plugin developers. Use ApiStatus.Internal instead of Deprecated for actual internal API that continues to have use (internally). These do not help plugin developers if they bring moise noise than value.
48 lines
1.0 KiB
Java
48 lines
1.0 KiB
Java
package org.bukkit.material;
|
|
|
|
import org.bukkit.Material;
|
|
import org.bukkit.block.BlockFace;
|
|
|
|
/**
|
|
* Represents a chest
|
|
*
|
|
* @deprecated all usage of MaterialData is deprecated and subject to removal.
|
|
* Use {@link org.bukkit.block.data.BlockData}.
|
|
*/
|
|
@Deprecated(since = "1.13", forRemoval = true)
|
|
public class Chest extends DirectionalContainer {
|
|
|
|
public Chest() {
|
|
super(Material.LEGACY_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);
|
|
}
|
|
|
|
public Chest(final Material type) {
|
|
super(type);
|
|
}
|
|
|
|
/**
|
|
* @param type the type
|
|
* @param data the raw data value
|
|
* @deprecated Magic value
|
|
*/
|
|
@Deprecated(since = "1.6.2")
|
|
public Chest(final Material type, final byte data) {
|
|
super(type, data);
|
|
}
|
|
|
|
@Override
|
|
public Chest clone() {
|
|
return (Chest) super.clone();
|
|
}
|
|
}
|