Skip to content

Commit

Permalink
Minor Meta updates & JavaDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Fortifier42 committed Aug 8, 2020
1 parent 2eb1001 commit d8cfb62
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Expand Up @@ -70,7 +70,7 @@ public static NPCTag getDenizen(int id) {
}

/**
* Returns a InventoryTag object from the Inventory trait of a valid NPC.
* Returns the InventoryTag object from the Inventory trait of a valid NPC.
*
* @param npc the Citizens NPC
* @return the NPC's InventoryTag
Expand Down
Expand Up @@ -1621,7 +1621,7 @@ else if (obj instanceof EntityTag) {
// @attribute <PlayerTag.inventory>
// @returns InventoryTag
// @description
// Returns a InventoryTag of the player's current inventory.
// Returns the InventoryTag of the player's inventory.
// Works with offline players.
// -->
registerTag("inventory", (attribute, object) -> {
Expand All @@ -1632,7 +1632,7 @@ else if (obj instanceof EntityTag) {
// @attribute <PlayerTag.enderchest>
// @returns InventoryTag
// @description
// Gets the player's enderchest inventory.
// Returns the InventoryTag of the player's enderchest inventory.
// Works with offline players.
// -->
registerTag("enderchest", (attribute, object) -> {
Expand All @@ -1647,8 +1647,8 @@ else if (obj instanceof EntityTag) {
// @attribute <PlayerTag.open_inventory>
// @returns InventoryTag
// @description
// Gets the inventory the player currently has open. If the player has no open
// inventory, this returns the player's inventory.
// Returns the InventoryTag for the inventory the player has open.
// If the player has no open inventory, this returns the player's inventory.
// -->
registerOnlineOnlyTag("open_inventory", (attribute, object) -> {
return InventoryTag.mirrorBukkitInventory(object.getPlayerEntity().getOpenInventory().getTopInventory());
Expand Down
Expand Up @@ -144,7 +144,7 @@ public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException
isAdjust = arg.toString().equalsIgnoreCase("adjust");
}

// Check for an origin, which can be a InventoryTag, EntityTag, LocationTag
// Check for an origin, which can be an InventoryTag, EntityTag, LocationTag
// or a ListTag of ItemTags
else if (!scriptEntry.hasObject("origin")
&& arg.matchesPrefix("origin", "o", "source", "items", "item", "i", "from", "f")
Expand All @@ -153,7 +153,7 @@ else if (!scriptEntry.hasObject("origin")
scriptEntry.addObject("origin", Conversion.getInventory(arg, scriptEntry));
}

// Check for a destination, which can be a InventoryTag, EntityTag
// Check for a destination, which can be an InventoryTag, EntityTag
// or LocationTag
else if (!scriptEntry.hasObject("destination")
&& arg.matchesPrefix("destination", "dest", "d", "target", "to", "t")
Expand Down
Expand Up @@ -74,7 +74,7 @@ public static List<Entity> convertEntities(List<EntityTag> entities) {
}

/**
* Gets a InventoryTag from an Object, which can be a
* Gets the InventoryTag from an Object, which can be a
* EntityTag, LocationTag, InventoryTag, or a ListTag of ItemTags
*
* @param arg An argument to parse
Expand Down

0 comments on commit d8cfb62

Please sign in to comment.