[Bleeding] Add new MaterialData classes for new blocks and update existing blocks with new data
By: Mike Primm <mike@primmhome.com>
This commit is contained in:
45
paper-api/src/main/java/org/bukkit/material/Chest.java
Normal file
45
paper-api/src/main/java/org/bukkit/material/Chest.java
Normal file
@@ -0,0 +1,45 @@
|
||||
package org.bukkit.material;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.BlockFace;
|
||||
|
||||
/**
|
||||
* Represents a chest
|
||||
*/
|
||||
public class Chest extends FurnaceAndDispenser {
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
public Chest(final int type) {
|
||||
super(type);
|
||||
}
|
||||
|
||||
public Chest(final Material type) {
|
||||
super(type);
|
||||
}
|
||||
|
||||
public Chest(final int type, final byte data) {
|
||||
super(type, data);
|
||||
}
|
||||
|
||||
public Chest(final Material type, final byte data) {
|
||||
super(type, data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Chest clone() {
|
||||
return (Chest) super.clone();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user