mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 04:05:50 -07:00
Many javadoc fixes thanks to Celtic Minstrel
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -51,7 +51,7 @@ public class Bed extends MaterialData implements Directional {
|
||||
|
||||
/**
|
||||
* Configure this to be either the head or the foot of the bed
|
||||
* @param isHeadOfBed
|
||||
* @param isHeadOfBed True to make it the head.
|
||||
*/
|
||||
public void setHeadOfBed(boolean isHeadOfBed) {
|
||||
setData((byte) (isHeadOfBed ? (getData() | 0x8) : (getData() & ~0x8)));
|
||||
|
@@ -6,6 +6,7 @@ public interface Directional {
|
||||
|
||||
/**
|
||||
* Sets the direction that this block is facing in
|
||||
* @param face The facing direction
|
||||
*/
|
||||
public void setFacingDirection(BlockFace face);
|
||||
|
||||
|
@@ -37,7 +37,7 @@ public class Door extends MaterialData implements Directional {
|
||||
|
||||
/**
|
||||
* Configure this door to be either open or closed;
|
||||
* @param isOpen
|
||||
* @param isOpen True to open the door.
|
||||
*/
|
||||
public void setOpen(boolean isOpen) {
|
||||
setData((byte) (isOpen ? (getData() | 0x4) : (getData() & ~0x4)));
|
||||
@@ -52,7 +52,7 @@ public class Door extends MaterialData implements Directional {
|
||||
|
||||
/**
|
||||
* Configure this part of the door to be either the top or the bottom half;
|
||||
* @param isTopHalf
|
||||
* @param isTopHalf True to make it the top half.
|
||||
*/
|
||||
public void setTopHalf(boolean isTopHalf) {
|
||||
setData((byte) (isTopHalf ? (getData() | 0x8) : (getData() & ~0x8)));
|
||||
|
@@ -75,6 +75,7 @@ public class MaterialData {
|
||||
/**
|
||||
* Creates a new ItemStack based on this MaterialData
|
||||
*
|
||||
* @param amount The stack size of the new stak
|
||||
* @return New ItemStack containing a copy of this MaterialData
|
||||
*/
|
||||
public ItemStack toItemStack(int amount) {
|
||||
|
Reference in New Issue
Block a user