Skip to content

Commit

Permalink
fix group meta on paper extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 7, 2024
1 parent bf3bff3 commit e8cf617
Show file tree
Hide file tree
Showing 14 changed files with 36 additions and 13 deletions.
Expand Up @@ -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>.
Expand Down
Expand Up @@ -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>
Expand Down
Expand Up @@ -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
Expand Down
Expand Up @@ -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
Expand Down
Expand Up @@ -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
Expand All @@ -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
Expand Down
Expand Up @@ -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.
Expand Down
Expand Up @@ -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>.
Expand Down
Expand Up @@ -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
Expand Down
Expand Up @@ -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
Expand Down
Expand Up @@ -17,6 +17,7 @@ public static void register() {
// @attribute <ElementTag.parse_minimessage>
// @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.
Expand All @@ -29,6 +30,7 @@ public static void register() {
// @attribute <ElementTag.to_minimessage>
// @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.
Expand Down
Expand Up @@ -22,7 +22,7 @@ public static void register() {
// <--[tag]
// @attribute <EntityTag.spawn_reason>
// @returns ElementTag
// @group properties
// @group paper
// @Plugin Paper
// @description
// Returns the entity's spawn reason.
Expand All @@ -35,7 +35,7 @@ public static void register() {
// <--[tag]
// @attribute <EntityTag.xp_spawn_reason>
// @returns ElementTag
// @group properties
// @group paper
// @Plugin Paper
// @description
// If the entity is an experience orb, returns its spawn reason.
Expand All @@ -52,7 +52,7 @@ public static void register() {
// <--[tag]
// @attribute <EntityTag.xp_trigger>
// @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).
Expand All @@ -77,7 +77,7 @@ public static void register() {
// <--[tag]
// @attribute <EntityTag.xp_source>
// @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).
Expand All @@ -102,7 +102,7 @@ public static void register() {
// <--[tag]
// @attribute <EntityTag.spawn_location>
// @returns LocationTag
// @group properties
// @group paper
// @Plugin Paper
// @description
// Returns the initial spawn location of this entity.
Expand All @@ -115,7 +115,7 @@ public static void register() {
// <--[tag]
// @attribute <EntityTag.from_spawner>
// @returns ElementTag(Boolean)
// @group properties
// @group paper
// @Plugin Paper
// @description
// Returns whether the entity was spawned from a spawner.
Expand All @@ -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.
// -->
Expand All @@ -143,12 +144,12 @@ public static void register() {
// <--[tag]
// @attribute <EntityTag.collides_at[<location>]>
// @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));
Expand All @@ -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.
Expand Down
Expand Up @@ -10,7 +10,7 @@ public static void register() {
// <--[tag]
// @attribute <ItemTag.rarity>
// @returns ElementTag
// @group properties
// @group paper
// @Plugin Paper
// @description
// Returns the rarity of an item, as "common", "uncommon", "rare", or "epic".
Expand Down
Expand Up @@ -17,7 +17,7 @@ public static void register() {
// @attribute <PlayerTag.affects_monster_spawning>
// @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.
Expand All @@ -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
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -86,7 +89,7 @@ public static void register() {
// @attribute <PlayerTag.flying_fall_damage>
// @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.
Expand All @@ -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>.
Expand All @@ -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>.
// -->
Expand All @@ -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
Expand Down
Expand Up @@ -12,7 +12,7 @@ public static void register() {
// @attribute <WorldTag.no_tick_view_distance>
// @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
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit e8cf617

Please sign in to comment.