Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added punctuation to comments. #1116

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 18 additions & 18 deletions src/main/java/org/bukkit/inventory/ItemStack.java
Expand Up @@ -14,7 +14,7 @@
import org.bukkit.material.MaterialData;

/**
* Represents a stack of items
* Represents a stack of items.
*/
public class ItemStack implements Cloneable, ConfigurationSerializable {
private int type = 0;
Expand All @@ -27,7 +27,7 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
protected ItemStack() {}

/**
* Defaults stack size to 1, with no extra data
* Defaults stack size to 1, with no extra data.
*
* @param type item material id
* @deprecated Magic value
Expand Down Expand Up @@ -154,9 +154,9 @@ private static Material getType0(int id) {
}

/**
* Sets the type of this item
* Sets the type of this item.
* <p>
* Note that in doing so you will reset the MaterialData for this stack
* Note that in doing so you will reset the MaterialData for this stack.
*
* @param type New type to set the items in this stack to
*/
Expand All @@ -167,7 +167,7 @@ public void setType(Material type) {
}

/**
* Gets the type id of this item
* Gets the type id of this item.
*
* @return Type Id of the items in this stack
* @deprecated Magic value
Expand All @@ -178,9 +178,9 @@ public int getTypeId() {
}

/**
* Sets the type id of this item
* Sets the type id of this item.
* <p>
* Note that in doing so you will reset the MaterialData for this stack
* Note that in doing so you will reset the MaterialData for this stack.
*
* @param type New type id to set the items in this stack to
* @deprecated Magic value
Expand All @@ -195,7 +195,7 @@ public void setTypeId(int type) {
}

/**
* Gets the amount of items in this stack
* Gets the amount of items in this stack.
*
* @return Amount of items in this stick
*/
Expand All @@ -204,7 +204,7 @@ public int getAmount() {
}

/**
* Sets the amount of items in this stack
* Sets the amount of items in this stack.
*
* @param amount New amount of items in this stack
*/
Expand All @@ -213,7 +213,7 @@ public void setAmount(int amount) {
}

/**
* Gets the MaterialData for this stack of items
* Gets the MaterialData for this stack of items.
*
* @return MaterialData for this item
*/
Expand All @@ -227,7 +227,7 @@ public MaterialData getData() {
}

/**
* Sets the MaterialData for this stack of items
* Sets the MaterialData for this stack of items.
*
* @param data New MaterialData for this item
*/
Expand All @@ -246,7 +246,7 @@ public void setData(MaterialData data) {
}

/**
* Sets the durability of this item
* Sets the durability of this item.
*
* @param durability Durability of this item
*/
Expand All @@ -255,7 +255,7 @@ public void setDurability(final short durability) {
}

/**
* Gets the durability of this item
* Gets the durability of this item.
*
* @return Durability of this item
*/
Expand Down Expand Up @@ -363,7 +363,7 @@ public final int hashCode() {
}

/**
* Checks if this ItemStack contains the given {@link Enchantment}
* Checks if this ItemStack contains the given {@link Enchantment}.
*
* @param ench Enchantment to test
* @return True if this has the given enchantment
Expand All @@ -373,7 +373,7 @@ public boolean containsEnchantment(Enchantment ench) {
}

/**
* Gets the level of the specified enchantment on this item stack
* Gets the level of the specified enchantment on this item stack.
*
* @param ench Enchantment to check
* @return Level of the enchantment, or 0
Expand Down Expand Up @@ -469,7 +469,7 @@ public void addUnsafeEnchantment(Enchantment ench, int level) {

/**
* Removes the specified {@link Enchantment} if it exists on this
* ItemStack
* ItemStack.
*
* @param ench Enchantment to remove
* @return Previous level, or 0
Expand Down Expand Up @@ -506,7 +506,7 @@ public Map<String, Object> serialize() {
}

/**
* Required method for configuration serialization
* Required method for configuration serialization.
*
* @param args map to deserialize
* @return deserialized item stack
Expand Down Expand Up @@ -583,7 +583,7 @@ public boolean setItemMeta(ItemMeta itemMeta) {
}

/*
* Cannot be overridden, so it's safe for constructor call
* Cannot be overridden, so it's safe for constructor call.
*/
private boolean setItemMeta0(ItemMeta itemMeta, Material material) {
if (itemMeta == null) {
Expand Down