Skip to content

Commit 6b59223

Browse files
Update Lua definitions
1 parent 2573c11 commit 6b59223

File tree

40 files changed

+410
-32
lines changed

40 files changed

+410
-32
lines changed

library/paper/com.destroystokyo.paper.MaterialTags.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,14 @@ local MaterialTags = {}
105105
---@return org.bukkit.NamespacedKey
106106
function MaterialTags:keyFor(key) end
107107

108+
---@param vanillaTag org.bukkit.Tag
109+
---@private
110+
---@return com.destroystokyo.paper.MaterialSetTag
111+
function MaterialTags:replacedBy(vanillaTag) end
112+
113+
---@param vanillaTag org.bukkit.Tag
114+
---@param legacyKey string
115+
---@private
116+
---@return com.destroystokyo.paper.MaterialSetTag
117+
function MaterialTags:replacedBy(vanillaTag, legacyKey) end
118+

library/paper/com.destroystokyo.paper.event.server.PaperServerListPingEvent.UncheckedPlayerProfile.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function UncheckedPlayerProfile:complete(textures, onlineMode) end
9898
function UncheckedPlayerProfile:update() end
9999

100100
---@public
101-
---@return org.bukkit.profile.PlayerProfile
101+
---@return com.destroystokyo.paper.profile.PlayerProfile
102102
function UncheckedPlayerProfile:clone() end
103103

104104
---@public

library/paper/com.destroystokyo.paper.profile.PlayerProfile.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,8 @@ function PlayerProfile:update() end
132132
--- Whether this Profile has textures associated to it
133133
function PlayerProfile:hasTextures() end
134134

135+
---@public
136+
---@return com.destroystokyo.paper.profile.PlayerProfile the cloned player profile.
137+
--- {@inheritDoc}
138+
function PlayerProfile:clone() end
139+

library/paper/imports.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,17 +675,25 @@
675675
---| '"io.papermc.paper.command.brigadier.Commands"'
676676
---| '"io.papermc.paper.command.brigadier.MessageComponentSerializer"'
677677
---| '"io.papermc.paper.command.brigadier.argument.ArgumentTypes"'
678+
---| '"io.papermc.paper.command.brigadier.argument.AxisSet"'
678679
---| '"io.papermc.paper.command.brigadier.argument.CustomArgumentType.Converted"'
679680
---| '"io.papermc.paper.command.brigadier.argument.CustomArgumentType"'
680681
---| '"io.papermc.paper.command.brigadier.argument.RegistryArgumentExtractor"'
681682
---| '"io.papermc.paper.command.brigadier.argument.SignedMessageResolver"'
682683
---| '"io.papermc.paper.command.brigadier.argument.VanillaArgumentProvider"'
684+
---| '"io.papermc.paper.command.brigadier.argument.position.ColumnBlockPosition"'
685+
---| '"io.papermc.paper.command.brigadier.argument.position.ColumnFinePosition"'
686+
---| '"io.papermc.paper.command.brigadier.argument.predicate.BlockInWorldPredicate.Result"'
687+
---| '"io.papermc.paper.command.brigadier.argument.predicate.BlockInWorldPredicate"'
683688
---| '"io.papermc.paper.command.brigadier.argument.predicate.ItemStackPredicate"'
684689
---| '"io.papermc.paper.command.brigadier.argument.range.DoubleRangeProvider"'
685690
---| '"io.papermc.paper.command.brigadier.argument.range.IntegerRangeProvider"'
686691
---| '"io.papermc.paper.command.brigadier.argument.range.RangeProvider"'
692+
---| '"io.papermc.paper.command.brigadier.argument.resolvers.AngleResolver"'
687693
---| '"io.papermc.paper.command.brigadier.argument.resolvers.ArgumentResolver"'
688694
---| '"io.papermc.paper.command.brigadier.argument.resolvers.BlockPositionResolver"'
695+
---| '"io.papermc.paper.command.brigadier.argument.resolvers.ColumnBlockPositionResolver"'
696+
---| '"io.papermc.paper.command.brigadier.argument.resolvers.ColumnFinePositionResolver"'
689697
---| '"io.papermc.paper.command.brigadier.argument.resolvers.FinePositionResolver"'
690698
---| '"io.papermc.paper.command.brigadier.argument.resolvers.PlayerProfileListResolver"'
691699
---| '"io.papermc.paper.command.brigadier.argument.resolvers.RotationResolver"'
@@ -845,6 +853,7 @@
845853
---| '"io.papermc.paper.event.connection.configuration.PlayerConnectionReconfigureEvent"'
846854
---| '"io.papermc.paper.event.entity.ElderGuardianAppearanceEvent"'
847855
---| '"io.papermc.paper.event.entity.EntityAttemptSmashAttackEvent"'
856+
---| '"io.papermc.paper.event.entity.EntityAttemptSpinAttackEvent"'
848857
---| '"io.papermc.paper.event.entity.EntityCompostItemEvent"'
849858
---| '"io.papermc.paper.event.entity.EntityDamageItemEvent"'
850859
---| '"io.papermc.paper.event.entity.EntityDyeEvent"'
@@ -920,6 +929,7 @@
920929
---| '"io.papermc.paper.event.server.WhitelistStateUpdateEvent.WhitelistStatus"'
921930
---| '"io.papermc.paper.event.server.WhitelistStateUpdateEvent"'
922931
---| '"io.papermc.paper.event.world.StructuresLocateEvent"'
932+
---| '"io.papermc.paper.event.world.WorldDifficultyChangeEvent"'
923933
---| '"io.papermc.paper.event.world.WorldGameRuleChangeEvent"'
924934
---| '"io.papermc.paper.event.world.border.WorldBorderBoundsChangeEvent.Type"'
925935
---| '"io.papermc.paper.event.world.border.WorldBorderBoundsChangeEvent"'
@@ -1083,6 +1093,7 @@
10831093
---| '"io.papermc.paper.tag.TagEntry"'
10841094
---| '"io.papermc.paper.text.Filtered"'
10851095
---| '"io.papermc.paper.text.PaperComponents"'
1096+
---| '"io.papermc.paper.threadedregions.RegionizedServerInitEvent"'
10861097
---| '"io.papermc.paper.threadedregions.scheduler.AsyncScheduler"'
10871098
---| '"io.papermc.paper.threadedregions.scheduler.EntityScheduler"'
10881099
---| '"io.papermc.paper.threadedregions.scheduler.GlobalRegionScheduler"'
@@ -1193,6 +1204,7 @@
11931204
---| '"org.bukkit.advancement.AdvancementRequirement"'
11941205
---| '"org.bukkit.advancement.AdvancementRequirements"'
11951206
---| '"org.bukkit.attribute.Attributable"'
1207+
---| '"org.bukkit.attribute.Attribute.Sentiment"'
11961208
---| '"org.bukkit.attribute.Attribute"'
11971209
---| '"org.bukkit.attribute.AttributeInstance"'
11981210
---| '"org.bukkit.attribute.AttributeModifier.Operation"'

library/paper/io.papermc.paper.command.brigadier.argument.ArgumentTypes.lua

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ function ArgumentTypes:playerProfiles() end
3535
--- A block position argument.
3636
function ArgumentTypes:blockPosition() end
3737

38+
---@public
39+
---@return any column block position argument
40+
--- A column block position argument.
41+
function ArgumentTypes:columnBlockPosition() end
42+
43+
---@public
44+
---@return any block predicate argument
45+
--- A block predicate argument.
46+
function ArgumentTypes:blockInWorldPredicate() end
47+
3848
---@public
3949
---@return any fine position argument
4050
--- A fine position argument.
@@ -46,11 +56,32 @@ function ArgumentTypes:finePosition() end
4656
--- A fine position argument.
4757
function ArgumentTypes:finePosition(centerIntegers) end
4858

59+
---@public
60+
---@return any column fine position argument
61+
--- A column fine position argument.
62+
function ArgumentTypes:columnFinePosition() end
63+
64+
---@param centerIntegers boolean if whole numbers should be centered (+0.5)
65+
---@public
66+
---@return any column fine position argument
67+
--- A column fine position argument.
68+
function ArgumentTypes:columnFinePosition(centerIntegers) end
69+
4970
---@public
5071
---@return any rotation argument
5172
--- A rotation argument.
5273
function ArgumentTypes:rotation() end
5374

75+
---@public
76+
---@return any angle argument
77+
--- An angle argument.
78+
function ArgumentTypes:angle() end
79+
80+
---@public
81+
---@return any a set of axes.
82+
--- An argument used to resolve a set of axes.
83+
function ArgumentTypes:axes() end
84+
5485
---@public
5586
---@return any argument
5687
--- A blockstate argument which will provide rich parsing for specifying the specific block variant and then the block entity NBT if applicable.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
--- Optional.empty
2+
---@meta
3+
-- io.papermc.paper.command.brigadier.argument.AxisSet
4+
---@class io.papermc.paper.command.brigadier.argument.AxisSet: java.util.Set, java.lang.Object
5+
local AxisSet = {}
6+

library/paper/io.papermc.paper.command.brigadier.argument.VanillaArgumentProvider.lua

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,40 @@ function VanillaArgumentProvider:playerProfiles() end
3232
---@return any
3333
function VanillaArgumentProvider:blockPosition() end
3434

35+
---@public
36+
---@return any
37+
function VanillaArgumentProvider:columnBlockPosition() end
38+
3539
---@param centerIntegers boolean
3640
---@public
3741
---@return any
3842
function VanillaArgumentProvider:finePosition(centerIntegers) end
3943

44+
---@param centerIntegers boolean
45+
---@public
46+
---@return any
47+
function VanillaArgumentProvider:columnFinePosition(centerIntegers) end
48+
4049
---@public
4150
---@return any
4251
function VanillaArgumentProvider:rotation() end
4352

53+
---@public
54+
---@return any
55+
function VanillaArgumentProvider:angle() end
56+
57+
---@public
58+
---@return any
59+
function VanillaArgumentProvider:axes() end
60+
4461
---@public
4562
---@return any
4663
function VanillaArgumentProvider:blockState() end
4764

65+
---@public
66+
---@return any
67+
function VanillaArgumentProvider:blockInWorldPredicate() end
68+
4869
---@public
4970
---@return any
5071
function VanillaArgumentProvider:itemStack() end
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--- Optional.empty
2+
---@meta
3+
-- io.papermc.paper.command.brigadier.argument.position.ColumnBlockPosition
4+
---@class io.papermc.paper.command.brigadier.argument.position.ColumnBlockPosition: java.lang.Object
5+
local ColumnBlockPosition = {}
6+
7+
---@public
8+
---@return number the block's X-coordinate
9+
--- Gets the X-coordinate of the block position.
10+
function ColumnBlockPosition:blockX() end
11+
12+
---@public
13+
---@return number the block's Z-coordinate
14+
--- Gets the Z-coordinate of the block position.
15+
function ColumnBlockPosition:blockZ() end
16+
17+
---@param y number the Y-coordinate to include in the new position
18+
---@public
19+
---@return io.papermc.paper.math.BlockPosition a {@link BlockPosition} representing the full 3D position
20+
--- Converts this column-based position into a full 3D {@link BlockPosition} by supplying a Y-coordinate.
21+
function ColumnBlockPosition:toPosition(y) end
22+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--- Optional.empty
2+
---@meta
3+
-- io.papermc.paper.command.brigadier.argument.position.ColumnFinePosition
4+
---@class io.papermc.paper.command.brigadier.argument.position.ColumnFinePosition: java.lang.Object
5+
local ColumnFinePosition = {}
6+
7+
---@public
8+
---@return number the X-coordinate as a double
9+
--- Gets the X-coordinate of this position.
10+
function ColumnFinePosition:x() end
11+
12+
---@public
13+
---@return number the Z-coordinate as a double
14+
--- Gets the Z-coordinate of this position.
15+
function ColumnFinePosition:z() end
16+
17+
---@param y number the Y-coordinate to include in the new position
18+
---@public
19+
---@return io.papermc.paper.math.FinePosition a {@link FinePosition} representing the full 3D position
20+
--- Converts this column-based position into a full 3D {@link FinePosition} by supplying a Y-coordinate.
21+
function ColumnFinePosition:toPosition(y) end
22+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--- Optional.empty
2+
---@meta
3+
-- io.papermc.paper.command.brigadier.argument.predicate.BlockInWorldPredicate.Result
4+
---@class io.papermc.paper.command.brigadier.argument.predicate.BlockInWorldPredicate.Result
5+
---@field public TRUE io.papermc.paper.command.brigadier.argument.predicate.BlockInWorldPredicate.Result
6+
---@field public FALSE io.papermc.paper.command.brigadier.argument.predicate.BlockInWorldPredicate.Result
7+
---@field public UNLOADED_CHUNK io.papermc.paper.command.brigadier.argument.predicate.BlockInWorldPredicate.Result
8+
local Result = {}
9+

0 commit comments

Comments
 (0)