Many javadoc fixes thanks to Celtic Minstrel

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2011-09-25 02:56:40 +01:00
parent 1968b78a12
commit a8e72bdb91
78 changed files with 380 additions and 335 deletions

View File

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

View File

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

View File

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

View File

@@ -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) {