This repository was archived by the owner on Apr 5, 2026. It is now read-only.
forked from ParchmentMC/Parchment
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdefinitions.unpick.patch
More file actions
299 lines (280 loc) · 11.9 KB
/
definitions.unpick.patch
File metadata and controls
299 lines (280 loc) · 11.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
--- a/definitions.unpick
+++ b/definitions.unpick
@@ -13,174 +_,14 @@
target_method net.minecraft.server.level.TicketType register (Ljava/lang/String;JI)Lnet/minecraft/server/level/TicketType;
param 1 chunk_ticket_type_expiration
- param 2 chunk_ticket_type_flags
target_method net.minecraft.server.level.TicketType <init> (JI)V
param 0 chunk_ticket_type_expiration
- param 1 chunk_ticket_type_flags
target_method net.minecraft.server.level.TicketType timeout ()J
return chunk_ticket_type_expiration
-target_method net.minecraft.server.level.TicketType flags ()I
- return chunk_ticket_type_flags
-
-#: Integers in ARGB color format.
-group int argb_color
- @format hex
- net.minecraft.util.CommonColors.*
- net.minecraft.realms.RealmsScreen.COLOR_DARK_GRAY
- net.minecraft.realms.RealmsScreen.COLOR_MEDIUM_GRAY
- net.minecraft.realms.RealmsScreen.COLOR_GREEN
- net.minecraft.realms.RealmsScreen.COLOR_LINK
- net.minecraft.realms.RealmsScreen.COLOR_LINK_HOVER
-
-target_method net.minecraft.util.ARGB alpha (I)I
- param 0 argb_color
-
-target_method net.minecraft.util.ARGB red (I)I
- param 0 argb_color
-
-target_method net.minecraft.util.ARGB green (I)I
- param 0 argb_color
-
-target_method net.minecraft.util.ARGB blue (I)I
- param 0 argb_color
-
-target_method net.minecraft.util.ARGB color (IIII)I
- return argb_color
-
-target_method net.minecraft.util.ARGB color (III)I
- return argb_color
-
-target_method net.minecraft.util.ARGB color (Lnet/minecraft/world/phys/Vec3;)I
- return argb_color
-
-target_method net.minecraft.util.ARGB multiply (II)I
- param 0 argb_color
- param 1 argb_color
- return argb_color
-
-target_method net.minecraft.util.ARGB scaleRGB (IF)I
- param 0 argb_color
- return argb_color
-
-target_method net.minecraft.util.ARGB scaleRGB (II)I
- param 0 argb_color
- return argb_color
-
-target_method net.minecraft.util.ARGB greyscale (I)I
- param 0 argb_color
- return argb_color
-
-target_method net.minecraft.util.ARGB srgbLerp (FII)I
- param 1 argb_color
- param 2 argb_color
- return argb_color
-
-target_method net.minecraft.util.ARGB opaque (I)I
- param 0 argb_color
- return argb_color
-
-target_method net.minecraft.util.ARGB transparent (I)I
- param 0 argb_color
- return argb_color
-
-target_method net.minecraft.util.ARGB color (II)I
- param 1 argb_color
- return argb_color
-
-target_method net.minecraft.util.ARGB color (FI)I
- param 1 argb_color
- return argb_color
-
-target_method net.minecraft.util.ARGB white (F)I
- return argb_color
-
-target_method net.minecraft.util.ARGB colorFromFloat (FFFF)I
- return argb_color
-
-target_method net.minecraft.util.ARGB average (II)I
- param 0 argb_color
- param 1 argb_color
- return argb_color
-
-target_method net.minecraft.util.ARGB toABGR (I)I
- param 0 argb_color
-
-target_method net.minecraft.util.ARGB fromABGR (I)I
- return argb_color
-
-target_method net.minecraft.client.gui.Font drawInBatch (Ljava/lang/String;FFIZLorg/joml/Matrix4f;Lnet/minecraft/client/renderer/MultiBufferSource;Lnet/minecraft/client/gui/Font$DisplayMode;II)V
- param 3 argb_color
-
-target_method net.minecraft.client.gui.Font drawInBatch (Lnet/minecraft/network/chat/Component;FFIZLorg/joml/Matrix4f;Lnet/minecraft/client/renderer/MultiBufferSource;Lnet/minecraft/client/gui/Font$DisplayMode;II)V
- param 3 argb_color
-
-target_method net.minecraft.client.gui.Font drawInBatch (Lnet/minecraft/util/FormattedCharSequence;FFIZLorg/joml/Matrix4f;Lnet/minecraft/client/renderer/MultiBufferSource;Lnet/minecraft/client/gui/Font$DisplayMode;II)V
- param 3 argb_color
-
-target_method net.minecraft.client.gui.Font drawInBatch8xOutline (Lnet/minecraft/util/FormattedCharSequence;FFIILorg/joml/Matrix4f;Lnet/minecraft/client/renderer/MultiBufferSource;I)V
- param 3 argb_color
- param 4 argb_color
-
-target_method net.minecraft.client.gui.GuiGraphics drawCenteredString (Lnet/minecraft/client/gui/Font;Ljava/lang/String;III)V
- param 4 argb_color
-
-target_method net.minecraft.client.gui.GuiGraphics drawCenteredString (Lnet/minecraft/client/gui/Font;Lnet/minecraft/network/chat/Component;III)V
- param 4 argb_color
-
-target_method net.minecraft.client.gui.GuiGraphics drawCenteredString (Lnet/minecraft/client/gui/Font;Lnet/minecraft/util/FormattedCharSequence;III)V
- param 4 argb_color
-
-target_method net.minecraft.client.gui.GuiGraphics drawString (Lnet/minecraft/client/gui/Font;Ljava/lang/String;III)V
- param 4 argb_color
-
-target_method net.minecraft.client.gui.GuiGraphics drawString (Lnet/minecraft/client/gui/Font;Ljava/lang/String;IIIZ)V
- param 4 argb_color
-
-target_method net.minecraft.client.gui.GuiGraphics drawString (Lnet/minecraft/client/gui/Font;Lnet/minecraft/network/chat/Component;III)V
- param 4 argb_color
-
-target_method net.minecraft.client.gui.GuiGraphics drawString (Lnet/minecraft/client/gui/Font;Lnet/minecraft/network/chat/Component;IIIZ)V
- param 4 argb_color
-
-target_method net.minecraft.client.gui.GuiGraphics drawWordWrap (Lnet/minecraft/client/gui/Font;Lnet/minecraft/network/chat/FormattedText;IIIIZ)V
- param 5 argb_color
-
-target_method net.minecraft.client.gui.GuiGraphics drawWordWrap (Lnet/minecraft/client/gui/Font;Lnet/minecraft/network/chat/FormattedText;IIII)V
- param 5 argb_color
-
-target_method net.minecraft.client.gui.GuiGraphics hLine (IIII)V
- param 3 argb_color
-
-target_method net.minecraft.client.gui.GuiGraphics vLine (IIII)V
- param 3 argb_color
-
-target_method net.minecraft.client.gui.GuiGraphics fill (IIIII)V
- param 4 argb_color
-
-target_method net.minecraft.client.gui.GuiGraphics fill (Lcom/mojang/blaze3d/pipeline/RenderPipeline;IIIII)V
- param 5 argb_color
-
-target_method net.minecraft.client.gui.GuiGraphics fillGradient (IIIIII)V
- param 4 argb_color
- param 5 argb_color
-
-target_method net.minecraft.client.gui.GuiGraphics renderOutline (IIIII)V
- param 4 argb_color
-
-target_method com.mojang.blaze3d.vertex.VertexConsumer setColor (I)Lcom/mojang/blaze3d/vertex/VertexConsumer;
- param 0 argb_color
-
-target_method net.minecraft.network.chat.TextColor fromRgb (I)Lnet/minecraft/network/chat/TextColor;
- param 0 argb_color
-
-target_method net.minecraft.network.chat.Style withColor (I)Lnet/minecraft/network/chat/Style;
- param 0 argb_color
-
-target_method net.minecraft.network.chat.MutableComponent withColor (I)Lnet/minecraft/network/chat/MutableComponent;
- param 0 argb_color
+target_annotation net.minecraft.server.level.TicketType$Flags chunk_ticket_type_flags
group int cursor_shape
org.lwjgl.glfw.GLFW.GLFW_ARROW_CURSOR
@@ -277,7 +_,6 @@
#: Flags used in {@link net.minecraft.entity.mob.VexEntity#VEX_FLAGS VEX_FLAGS}.
group int vex_flags
- @flags
net.minecraft.world.entity.monster.Vex.FLAG_IS_CHARGING
target_method net.minecraft.world.entity.monster.Vex getVexFlag (I)Z
@@ -371,8 +_,22 @@
group int entity_status
net.minecraft.world.entity.EntityEvent.*
-target_method net.minecraft.world.entity.Entity handleEntityEvent (B)V
+group int entity_status
+ @scope class net.minecraft.world.entity.projectile.arrow.Arrow
+ net.minecraft.world.entity.projectile.arrow.Arrow.EVENT_POTION_PUFF
+
+group int entity_status
+ @scope class net.minecraft.world.level.BaseSpawner
+ net.minecraft.world.level.BaseSpawner.EVENT_SPAWN
+
+group int entity_status
+ @scope class net.minecraft.world.entity.vehicle.minecart.MinecartTNT
+ net.minecraft.world.entity.vehicle.minecart.MinecartTNT.EVENT_PRIME
+
+target_method net.minecraft.world.entity.Entity handleEntityEvent (B)V # todo doesn't always work for some reason (LivingEntity/Entity)
param 0 entity_status
+target_method net.minecraft.world.entity.LivingEntity entityEventForEquipmentBreak (Lnet/minecraft/world/entity/EquipmentSlot;)B
+ return entity_status
target_method net.minecraft.world.level.Level broadcastEntityEvent (Lnet/minecraft/world/entity/Entity;B)V
param 1 entity_status
@@ -383,6 +_,12 @@
target_method net.minecraft.network.protocol.game.ClientboundEntityEventPacket getEventId ()B
return entity_status
+# technically both a block/entity event
+target_method net.minecraft.world.level.BaseSpawner broadcastEvent (Lnet/minecraft/world/level/Level;Lnet/minecraft/core/BlockPos;I)V
+ param 2 entity_status
+target_method net.minecraft.world.level.BaseSpawner onEventTriggered (Lnet/minecraft/world/level/Level;I)Z
+ param 1 entity_status
+
group int error_code
org.lwjgl.glfw.GLFW.GLFW_NO_ERROR
org.lwjgl.glfw.GLFW.GLFW_NOT_INITIALIZED
@@ -1543,6 +_,12 @@
target_method net.minecraft.nbt.TagTypes getType (I)Lnet/minecraft/nbt/TagType;
param 0 nbt_type_id
+target_method net.minecraft.nbt.ListTag wrapIfNeeded (BLnet/minecraft/nbt/Tag;)Lnet/minecraft/nbt/Tag;
+ param 0 nbt_type_id
+
+target_method net.minecraft.nbt.ListTag identifyRawElementType ()B
+ return nbt_type_id
+
group int max_string_length
net.minecraft.network.FriendlyByteBuf.MAX_STRING_LENGTH
net.minecraft.network.FriendlyByteBuf.MAX_COMPONENT_STRING_LENGTH
@@ -1559,6 +_,19 @@
target_method net.minecraft.network.FriendlyByteBuf writeUtf (Ljava/lang/String;I)Lnet/minecraft/network/FriendlyByteBuf;
param 1 max_string_length
+group long max_nbt_size
+ net.minecraft.nbt.NbtAccounter.DEFAULT_NBT_QUOTA
+ net.minecraft.nbt.NbtAccounter.UNCOMPRESSED_NBT_QUOTA
+
+group int max_stack_depth
+ net.minecraft.nbt.NbtAccounter.MAX_STACK_DEPTH
+
+target_method net.minecraft.nbt.NbtAccounter <init> (JI)V
+ param 0 max_nbt_size
+ param 1 max_stack_depth
+target_method net.minecraft.nbt.NbtAccounter create (J)Lnet/minecraft/nbt/NbtAccounter;
+ param 0 max_nbt_size
+
target_method net.minecraft.network.VarInt getByteSize (I)I
return max_var_int_length
@@ -1692,18 +_,9 @@
target_annotation net.minecraft.world.level.block.Block$UpdateFlags set_block_state_flags
-target_method net.minecraft.world.level.Level sendBlockUpdated (Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/block/state/BlockState;I)V
+target_method net.minecraft.server.level.ServerLevel sendBlockUpdated (Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/block/state/BlockState;I)V
param 3 set_block_state_flags
-target_method net.minecraft.world.level.redstone.NeighborUpdater shapeUpdate (Lnet/minecraft/core/Direction;Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/core/BlockPos;Lnet/minecraft/core/BlockPos;II)V
- param 4 set_block_state_flags
-
-target_method net.minecraft.server.level.WorldGenRegion setBlockState (Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;II)Z
- param 2 set_block_state_flags
-
-target_method net.minecraft.world.level.chunk.ChunkAccess setBlockState (Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;I)Lnet/minecraft/world/level/block/state/BlockState;
- param 2 set_block_state_flags
-
group int trial_spawner_luminance
net.minecraft.world.level.block.entity.trialspawner.TrialSpawnerState$LightLevel.UNLIT
net.minecraft.world.level.block.entity.trialspawner.TrialSpawnerState$LightLevel.HALF_LIT
@@ -1728,7 +_,7 @@
return trial_spawner_display_rotation_speed
target_method net.minecraft.world.level.block.entity.trialspawner.TrialSpawnerStateData isReadyToOpenShutter (Lnet/minecraft/server/level/ServerLevel;FI)Z
- param 2 trial_spawner_cooldown
+ param 1 trial_spawner_cooldown
group int glfw_window_hint
org.lwjgl.glfw.GLFW.GLFW_CLIENT_API
@@ -1802,3 +_,13 @@
target_method net.minecraft.network.protocol.game.ClientboundLevelEventPacket getType ()I
return world_event
+
+target_method net.minecraft.world.item.AxeItem spawnSoundAndParticle (Lnet/minecraft/world/level/Level;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/entity/player/Player;Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/sounds/SoundEvent;I)V
+ param 5 world_event
+
+target_method net.minecraft.world.item.ProjectileItem$DispenseConfig$Builder overrideDispenseEvent (I)Lnet/minecraft/world/item/ProjectileItem$DispenseConfig$Builder;
+ param 0 world_event
+
+group int
+ @scope class net.minecraft.util.StringDecomposer
+ net.minecraft.util.StringDecomposer.REPLACEMENT_CHAR