From e8cf617309d1d259c8203ba8b3a6df0a3e60e241 Mon Sep 17 00:00:00 2001 From: "Alex \"mcmonkey\" Goodwin" Date: Sat, 6 Jan 2024 22:12:28 -0800 Subject: [PATCH] fix group meta on paper extensions --- .../paper/properties/EntityArmsRaised.java | 1 + .../paper/properties/EntityAutoExpire.java | 1 + .../paper/properties/EntityCanTick.java | 1 + .../paper/properties/EntityCarryingEgg.java | 1 + .../properties/EntityDrinkingPotion.java | 2 ++ .../paper/properties/EntityFriction.java | 1 + .../paper/properties/EntityReputation.java | 1 + .../properties/EntityWitherInvulnerable.java | 1 + .../paper/properties/ItemArmorStand.java | 1 + .../properties/PaperElementExtensions.java | 2 ++ .../properties/PaperEntityExtensions.java | 20 ++++++++++--------- .../paper/properties/PaperItemExtensions.java | 2 +- .../properties/PaperPlayerExtensions.java | 10 ++++++++-- .../properties/PaperWorldExtensions.java | 5 ++++- 14 files changed, 36 insertions(+), 13 deletions(-) diff --git a/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityArmsRaised.java b/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityArmsRaised.java index fa0d618d19..e00898c199 100644 --- a/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityArmsRaised.java +++ b/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityArmsRaised.java @@ -63,6 +63,7 @@ public static void register() { // @name arms_raised // @input ElementTag(Boolean) // @Plugin Paper + // @group properties // @deprecated use 'aggressive' // @description // Deprecated in favor of <@link mechanism EntityTag.aggressive>. diff --git a/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityAutoExpire.java b/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityAutoExpire.java index cc5e86d0eb..eafc716499 100644 --- a/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityAutoExpire.java +++ b/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityAutoExpire.java @@ -78,6 +78,7 @@ public void adjust(Mechanism mechanism) { // @name auto_expire // @input ElementTag(Boolean) // @Plugin Paper + // @group properties // @description // Sets whether a falling_block will auto-expire (after 30 seconds, or 5 when outside the world). // See also <@link mechanism EntityTag.time_lived> diff --git a/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityCanTick.java b/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityCanTick.java index f483740fdd..b7852d4c49 100644 --- a/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityCanTick.java +++ b/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityCanTick.java @@ -66,6 +66,7 @@ public void adjust(Mechanism mechanism) { // @name can_tick // @input ElementTag(Boolean) // @Plugin Paper + // @group properties // @description // Changes whether an armor stand can tick. // @tags diff --git a/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityCarryingEgg.java b/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityCarryingEgg.java index 8f211f9e63..65641e177a 100644 --- a/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityCarryingEgg.java +++ b/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityCarryingEgg.java @@ -68,6 +68,7 @@ public void adjust(Mechanism mechanism) { // @name carrying_egg // @input ElementTag(Boolean) // @Plugin Paper + // @group properties // @description // If the entity is a turtle, sets whether it is carrying an egg. // @tags diff --git a/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityDrinkingPotion.java b/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityDrinkingPotion.java index dade27df03..d6d3181fb9 100644 --- a/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityDrinkingPotion.java +++ b/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityDrinkingPotion.java @@ -88,6 +88,7 @@ public void adjust(Mechanism mechanism) { // @name drinking_potion // @input ItemTag // @Plugin Paper + // @group properties // @description // Sets the potion item a witch is drinking. // @tags @@ -107,6 +108,7 @@ public void adjust(Mechanism mechanism) { // @name potion_drink_duration // @input DurationTag // @Plugin Paper + // @group properties // @description // Sets the duration remaining until a witch is done drinking a potion. // @tags diff --git a/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityFriction.java b/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityFriction.java index 0238609d14..132ebaca59 100644 --- a/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityFriction.java +++ b/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityFriction.java @@ -69,6 +69,7 @@ public static void register() { // @name has_friction // @input ElementTag(Boolean) // @Plugin Paper + // @group properties // @description // Forces an entity into a friction state, so it either always or never experiences friction. // An entity with no friction will move in a direction forever until its velocity is changed or it impacts a block. diff --git a/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityReputation.java b/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityReputation.java index f672520f05..1dddf7b333 100644 --- a/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityReputation.java +++ b/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityReputation.java @@ -67,6 +67,7 @@ public static void register() { // @name reputation // @input MapTag // @Plugin Paper + // @group properties // @description // Sets a villager's reputations as a map of player UUIDs to reputation maps. // Reputation maps are maps of reputation types to integer values, a full list of all valid reputation types can be found at <@link url https://jd.papermc.io/paper/1.19/com/destroystokyo/paper/entity/villager/ReputationType.html>. diff --git a/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityWitherInvulnerable.java b/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityWitherInvulnerable.java index 9643383171..dc1f43bf12 100644 --- a/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityWitherInvulnerable.java +++ b/paper/src/main/java/com/denizenscript/denizen/paper/properties/EntityWitherInvulnerable.java @@ -76,6 +76,7 @@ public void adjust(Mechanism mechanism) { // @name invulnerable_duration // @input DurationTag // @Plugin Paper + // @group properties // @description // Sets the duration remaining until the wither becomes vulnerable. // @tags diff --git a/paper/src/main/java/com/denizenscript/denizen/paper/properties/ItemArmorStand.java b/paper/src/main/java/com/denizenscript/denizen/paper/properties/ItemArmorStand.java index 4eab16a4c5..a5e1ab5767 100644 --- a/paper/src/main/java/com/denizenscript/denizen/paper/properties/ItemArmorStand.java +++ b/paper/src/main/java/com/denizenscript/denizen/paper/properties/ItemArmorStand.java @@ -87,6 +87,7 @@ public void adjust(Mechanism mechanism) { // @name armor_stand_data // @input MapTag // @Plugin Paper + // @group properties // @description // Sets a map of basic armor stand data, with keys matching EntityTag property names. // Allowed keys: base_plate, visible, marker, is_small, arms diff --git a/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperElementExtensions.java b/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperElementExtensions.java index 1b5e9822ea..090124e434 100644 --- a/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperElementExtensions.java +++ b/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperElementExtensions.java @@ -17,6 +17,7 @@ public static void register() { // @attribute // @returns ElementTag // @Plugin Paper + // @group paper // @description // Returns the element with all MiniMessage tags parsed, see <@link url https://docs.adventure.kyori.net/minimessage/format.html> for more information. // This may be useful for reading data from external plugins, but should not be used in normal scripts. @@ -29,6 +30,7 @@ public static void register() { // @attribute // @returns ElementTag // @Plugin Paper + // @group paper // @description // Returns the element with all text formatting parsed into MiniMessage format. // This may be useful for sending data to external plugins, but should not be used in normal scripts. diff --git a/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperEntityExtensions.java b/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperEntityExtensions.java index 98b7b3a3bf..1fb2c8ddaa 100644 --- a/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperEntityExtensions.java +++ b/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperEntityExtensions.java @@ -22,7 +22,7 @@ public static void register() { // <--[tag] // @attribute // @returns ElementTag - // @group properties + // @group paper // @Plugin Paper // @description // Returns the entity's spawn reason. @@ -35,7 +35,7 @@ public static void register() { // <--[tag] // @attribute // @returns ElementTag - // @group properties + // @group paper // @Plugin Paper // @description // If the entity is an experience orb, returns its spawn reason. @@ -52,7 +52,7 @@ public static void register() { // <--[tag] // @attribute // @returns EntityTag - // @group properties + // @group paper // @Plugin Paper // @description // If the entity is an experience orb, returns the entity that triggered it spawning (if any). @@ -77,7 +77,7 @@ public static void register() { // <--[tag] // @attribute // @returns EntityTag - // @group properties + // @group paper // @Plugin Paper // @description // If the entity is an experience orb, returns the entity that it was created from (if any). @@ -102,7 +102,7 @@ public static void register() { // <--[tag] // @attribute // @returns LocationTag - // @group properties + // @group paper // @Plugin Paper // @description // Returns the initial spawn location of this entity. @@ -115,7 +115,7 @@ public static void register() { // <--[tag] // @attribute // @returns ElementTag(Boolean) - // @group properties + // @group paper // @Plugin Paper // @description // Returns whether the entity was spawned from a spawner. @@ -129,6 +129,7 @@ public static void register() { // @name goat_ram // @input EntityTag // @Plugin Paper + // @group paper // @description // Causes a goat to ram the specified entity. // --> @@ -143,12 +144,12 @@ public static void register() { // <--[tag] // @attribute ]> // @returns ElementTag(Boolean) - // @group properties + // @group paper // @Plugin Paper // @description - // Returns whether the entity's bounding box would collide at the given LocationTag. + // Returns whether the entity's bounding box would collide if the entity was moved to the given location. // This checks for any colliding entities (like boats and shulkers), the world border and regular blocks. - // It will not load chunks that are within the entity's bounding box at the given location. + // (Note that this won't load chunks at the location.) // --> EntityTag.tagProcessor.registerTag(ElementTag.class, LocationTag.class, "collides_at", (attribute, entity, location) -> { return new ElementTag(entity.getBukkitEntity().collidesAt(location)); @@ -159,6 +160,7 @@ public static void register() { // @name damage_item // @input MapTag // @Plugin Paper + // @group paper // @description // Damages the given equipment slot for the given amount. // This runs all vanilla logic associated with damaging an item like gamemode and enchantment checks, events, stat changes, advancement triggers, and notifying clients to play break animations. diff --git a/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperItemExtensions.java b/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperItemExtensions.java index b13f19c978..f2829a34fe 100644 --- a/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperItemExtensions.java +++ b/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperItemExtensions.java @@ -10,7 +10,7 @@ public static void register() { // <--[tag] // @attribute // @returns ElementTag - // @group properties + // @group paper // @Plugin Paper // @description // Returns the rarity of an item, as "common", "uncommon", "rare", or "epic". diff --git a/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperPlayerExtensions.java b/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperPlayerExtensions.java index 1c75d67688..fba2df72d6 100644 --- a/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperPlayerExtensions.java +++ b/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperPlayerExtensions.java @@ -17,7 +17,7 @@ public static void register() { // @attribute // @returns ElementTag(Boolean) // @mechanism PlayerTag.affects_monster_spawning - // @group properties + // @group paper // @Plugin Paper // @description // Returns whether the player affects monster spawning. When false, no monsters will spawn naturally because of this player. @@ -31,6 +31,7 @@ public static void register() { // @name affects_monster_spawning // @input ElementTag(Boolean) // @Plugin Paper + // @group paper // @description // Sets whether this player affects monster spawning. When false, no monsters will spawn naturally because of this player. // @tags @@ -47,6 +48,7 @@ public static void register() { // @name firework_boost // @input ItemTag // @Plugin Paper + // @group paper // @description // Firework boosts the player with the specified firework rocket. // The player must be gliding. @@ -68,6 +70,7 @@ public static void register() { // @name fake_op_level // @input ElementTag(Number) // @Plugin Paper + // @group paper // @description // Sends a fake operator level to the client, enabling clientside op-required features like the debug gamemode hotkey (F3+F4). // Input should be a number from 0 to 4, 0 indicating not op and 4 indicating maximum level op. @@ -86,7 +89,7 @@ public static void register() { // @attribute // @returns ElementTag(Boolean) // @mechanism PlayerTag.flying_fall_damage - // @group properties + // @group paper // @Plugin Paper // @description // Returns whether the player will take fall damage while <@link tag PlayerTag.can_fly> is true. @@ -100,6 +103,7 @@ public static void register() { // @name add_tab_completions // @input ListTag // @Plugin Paper + // @group paper // @description // Adds custom tab completions that will be suggested to the player when typing in chat. // Tab completions added by this mechanism can be removed using <@link mechanism PlayerTag.remove_tab_completions>. @@ -113,6 +117,7 @@ public static void register() { // @name remove_tab_completions // @input ListTag // @Plugin Paper + // @group paper // @description // Removes custom tab completions added by <@link mechanism PlayerTag.add_tab_completions>. // --> @@ -125,6 +130,7 @@ public static void register() { // @name flying_fall_damage // @input ElementTag(Boolean) // @Plugin Paper + // @group paper // @description // Sets whether the player will take fall damage while <@link mechanism PlayerTag.can_fly> is true. // @tags diff --git a/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperWorldExtensions.java b/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperWorldExtensions.java index fe5b7d3fe6..2299f5864e 100644 --- a/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperWorldExtensions.java +++ b/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperWorldExtensions.java @@ -12,7 +12,7 @@ public static void register() { // @attribute // @returns ElementTag(Number) // @mechanism WorldTag.no_tick_view_distance - // @group properties + // @group paper // @deprecated replaced by Minecraft's simulation_distance and view_distance config pairing // @Plugin Paper // @description @@ -28,6 +28,7 @@ public static void register() { // @name view_distance // @input ElementTag(Number) // @Plugin Paper + // @group paper // @description // Sets this world's view distance. All chunks within this radius of a player will be visible to that player. // Input should be a number from 2 to 32. @@ -53,6 +54,7 @@ public static void register() { // @name simulation_distance // @input ElementTag(Number) // @Plugin Paper + // @group paper // @description // Sets this world's view distance. All chunks within this radius will be tracked by the server. // Input should be a number from 2 to 32. @@ -78,6 +80,7 @@ public static void register() { // @name no_tick_view_distance // @input ElementTag(Number) // @Plugin Paper + // @group paper // @deprecated replaced by Minecraft's simulation_distance and view_distance config pairing // @description // Deprecated: replaced by Minecraft's simulation_distance and view_distance config pairing