Skip to content

Commit

Permalink
meta corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jun 15, 2021
1 parent 58d8857 commit ffa29f1
Show file tree
Hide file tree
Showing 22 changed files with 38 additions and 25 deletions.
Expand Up @@ -5,6 +5,18 @@

public interface AreaContainmentObject extends ObjectTag {

// <--[ObjectType]
// @name AreaObject
// @prefix None
// @base None
// @format
// N/A
//
// @description
// "AreaObject" is a pseudo-ObjectType that represents any object that indicates a world-space area, such as a CuboidTag.
//
// -->

String getNoteName();

boolean doesContainLocation(Location loc);
Expand Down
Expand Up @@ -198,7 +198,7 @@ public static void registerTags() {

// <--[tag]
// @attribute <ColorTag.hex>
// @returns ElementTag)
// @returns ElementTag
// @description
// Returns a hex code formatting of this color, like '#ff00ff'.
// -->
Expand Down
Expand Up @@ -1971,10 +1971,10 @@ else if (meta.hasDisplayName() && CoreUtilities.toLowerCase(meta.getDisplayName(

// <--[tag]
// @attribute <InventoryTag.slot[<#>|...]>
// @returns ItemTag or ListTag(ItemTag)
// @returns ObjectTag
// @description
// If one slot is specified, returns the item in the specified slot.
// If more than what slot is specified, returns a list of the item in each given slot.
// If one slot is specified, returns the ItemTag in the specified slot.
// If more than what slot is specified, returns a ListTag(ItemTag) of the item in each given slot.
// -->
registerTag("slot", (attribute, object) -> {
if (!attribute.hasContext(1)) {
Expand Down
Expand Up @@ -1409,11 +1409,12 @@ public static void registerTags() {

// <--[tag]
// @attribute <LocationTag.skull_skin.full>
// @returns ElementTag|ElementTag
// @returns ElementTag
// @mechanism LocationTag.skull_skin
// @description
// Returns the skin the skull item is displaying - just the name or UUID as text, not a player object,
// along with the permanently cached texture property.
// In format "uuid|texture" - separated by a pipe, but not a ListTag.
// -->
if (attribute.startsWith("full", 2)) {
attribute.fulfill(1);
Expand Down
Expand Up @@ -815,7 +815,7 @@ else if (attribute.startsWith("list", 2)) {

// <--[tag]
// @attribute <NPCTag.owner>
// @returns PlayerTag/ElementTag
// @returns PlayerTag
// @mechanism NPCTag.owner
// @description
// Returns the owner of the NPC as a PlayerTag if it's a player, otherwise as just the name.
Expand Down
Expand Up @@ -12,7 +12,7 @@ public BiomeTagBase() {
// @returns BiomeTag
// @description
// Returns a biome object constructed from the input value.
// Refer to <@link language BiomeTag objects>.
// Refer to <@link objecttype BiomeTag>.
// -->
TagManager.registerTagHandler("biome", (attribute) -> {
if (!attribute.hasContext(1)) {
Expand Down
Expand Up @@ -12,7 +12,7 @@ public ChunkTagBase() {
// @returns ChunkTag
// @description
// Returns a chunk object constructed from the input value.
// Refer to <@link language ChunkTag objects>.
// Refer to <@link objecttype ChunkTag>.
// -->
TagManager.registerTagHandler("chunk", (attribute) -> {
if (!attribute.hasContext(1)) {
Expand Down
Expand Up @@ -12,7 +12,7 @@ public ColorTagBase() {
// @returns ColorTag
// @description
// Returns a color object constructed from the input value.
// Refer to <@link language ColorTag objects>.
// Refer to <@link objecttype ColorTag>.
// -->
TagManager.registerTagHandler("color", (attribute) -> {
if (!attribute.hasContext(1)) {
Expand Down
Expand Up @@ -12,7 +12,7 @@ public CuboidTagBase() {
// @returns CuboidTag
// @description
// Returns a cuboid object constructed from the input value.
// Refer to <@link language CuboidTag objects>.
// Refer to <@link objecttype CuboidTag>.
// -->
TagManager.registerTagHandler("cuboid", (attribute) -> {
if (!attribute.hasContext(1)) {
Expand Down
Expand Up @@ -12,7 +12,7 @@ public EllipsoidTagBase() {
// @returns EllipsoidTag
// @description
// Returns an ellipsoid object constructed from the input value.
// Refer to <@link language EllipsoidTag objects>.
// Refer to <@link objecttype EllipsoidTag>.
// -->
TagManager.registerTagHandler("ellipsoid", (attribute) -> {
if (!attribute.hasContext(1)) {
Expand Down
Expand Up @@ -12,7 +12,7 @@ public EntityTagBase() {
// @returns EntityTag
// @description
// Returns an entity object constructed from the input value.
// Refer to <@link language EntityTag objects>.
// Refer to <@link objecttype EntityTag>.
// -->
TagManager.registerTagHandler("entity", (attribute) -> {
if (!attribute.hasContext(1)) {
Expand Down
Expand Up @@ -12,7 +12,7 @@ public InventoryTagBase() {
// @returns InventoryTag
// @description
// Returns an inventory object constructed from the input value.
// Refer to <@link language InventoryTag objects>.
// Refer to <@link objecttype InventoryTag>.
// -->
TagManager.registerTagHandler("inventory", (attribute) -> {
if (!attribute.hasContext(1)) {
Expand Down
Expand Up @@ -12,7 +12,7 @@ public ItemTagBase() {
// @returns ItemTag
// @description
// Returns an item object constructed from the input value.
// Refer to <@link language ItemTag objects>.
// Refer to <@link objecttype ItemTag>.
// -->
TagManager.registerTagHandler("item", (attribute) -> {
if (!attribute.hasContext(1)) {
Expand Down
Expand Up @@ -12,7 +12,7 @@ public LocationTagBase() {
// @returns LocationTag
// @description
// Returns a location object constructed from the input value.
// Refer to <@link language LocationTag objects>.
// Refer to <@link objecttype LocationTag>.
// -->
TagManager.registerTagHandler("location", (attribute) -> {
if (!attribute.hasContext(1)) {
Expand Down
Expand Up @@ -12,7 +12,7 @@ public MaterialTagBase() {
// @returns MaterialTag
// @description
// Returns a material object constructed from the input value.
// Refer to <@link language MaterialTag objects>.
// Refer to <@link objecttype MaterialTag>.
// -->
TagManager.registerTagHandler("material", (attribute) -> {
if (!attribute.hasContext(1)) {
Expand Down
Expand Up @@ -34,7 +34,7 @@ public NPCTagBase() {
// @returns NPCTag
// @description
// Returns an npc object constructed from the input value.
// Refer to <@link language NPCTag objects>.
// Refer to <@link objecttype NPCTag>.
// If no input value is specified, returns the linked NPC.
// -->
if (Depends.citizens != null) {
Expand Down
Expand Up @@ -22,7 +22,7 @@ public PlayerTagBase() {
// @returns PlayerTag
// @description
// Returns a player object constructed from the input value.
// Refer to <@link language PlayerTag objects>.
// Refer to <@link objecttype PlayerTag>.
// If no input value is specified, returns the linked player.
// -->
Bukkit.getServer().getPluginManager().registerEvents(this, Denizen.getInstance());
Expand Down
Expand Up @@ -12,7 +12,7 @@ public PluginTagBase() {
// @returns PluginTag
// @description
// Returns a plugin object constructed from the input value.
// Refer to <@link language PluginTag objects>.
// Refer to <@link objecttype PluginTag>.
// -->
TagManager.registerTagHandler("plugin", (attribute) -> {
if (!attribute.hasContext(1)) {
Expand Down
Expand Up @@ -12,7 +12,7 @@ public PolygonTagBase() {
// @returns PolygonTag
// @description
// Returns a polygon object constructed from the input value.
// Refer to <@link language PolygonTag objects>.
// Refer to <@link objecttype PolygonTag>.
// -->
TagManager.registerTagHandler("polygon", (attribute) -> {
if (!attribute.hasContext(1)) {
Expand Down
Expand Up @@ -616,7 +616,7 @@ else if (recipe instanceof CookingRecipe<?>) {
// @returns ListTag(BiomeTag)
// @description
// Returns a list of all biomes known to the server.
// Generally used with <@link language BiomeTag Objects>.
// Generally used with <@link objecttype BiomeTag>.
// This is based on Bukkit Biome enum, as seen at <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/Biome.html>.
// -->
if (attribute.startsWith("biome_types") || attribute.startsWith("list_biome_types")) {
Expand Down Expand Up @@ -679,7 +679,7 @@ else if (recipe instanceof CookingRecipe<?>) {
// @returns ListTag
// @description
// Returns a list of all entity types known to the server.
// Generally used with <@link language EntityTag Objects>.
// Generally used with <@link objecttype EntityTag>.
// This is only their Bukkit enum names, as seen at <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html>.
// -->
if (attribute.startsWith("entity_types") || attribute.startsWith("list_entity_types")) {
Expand All @@ -696,7 +696,7 @@ else if (recipe instanceof CookingRecipe<?>) {
// @returns ListTag(MaterialTag)
// @description
// Returns a list of all materials known to the server.
// Generally used with <@link language MaterialTag Objects>.
// Generally used with <@link objecttype MaterialTag>.
// This is only types listed in the Bukkit Material enum, as seen at <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html>.
// -->
if (attribute.startsWith("material_types") || attribute.startsWith("list_material_types")) {
Expand Down
Expand Up @@ -12,7 +12,7 @@ public TradeTagBase() {
// @returns TradeTag
// @description
// Returns a trade object constructed from the input value.
// Refer to <@link language TradeTag objects>.
// Refer to <@link objecttype TradeTag>.
// -->
TagManager.registerTagHandler("trade", (attribute) -> {
if (!attribute.hasContext(1)) {
Expand Down
Expand Up @@ -12,7 +12,7 @@ public WorldTagBase() {
// @returns WorldTag
// @description
// Returns a world object constructed from the input value.
// Refer to <@link language WorldTag objects>.
// Refer to <@link objecttype WorldTag>.
// -->
TagManager.registerTagHandler("world", (attribute) -> {
if (!attribute.hasContext(1)) {
Expand Down

0 comments on commit ffa29f1

Please sign in to comment.