Skip to content

Commit f8278b9

Browse files
committed
feat: add particle pause/resume growth types and update MC 26.1 mappings
Add PAUSE_MOB_GROWTH and RESET_MOB_GROWTH particle effects for golden dandelion interactions. Update mappings to Minecraft 26.1 using newly non obfuscated Mojang names for classes, methods, and fields.
1 parent a806df2 commit f8278b9

2 files changed

Lines changed: 101 additions & 1 deletion

File tree

‎lib/src/main/java/com/georgev22/particle/ParticleEffect.java‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,27 @@ public enum ParticleEffect {
15391539
* <li>Speed value: Influences the velocity at which the particle flies off.</li>
15401540
* </ul>
15411541
*/
1542-
WHITE_SMOKE(version -> version.isBelow(1, 20, 3) ? "NONE" : "white_smoke", DIRECTIONAL),;
1542+
WHITE_SMOKE(version -> version.isBelow(1, 20, 3) ? "NONE" : "white_smoke", DIRECTIONAL),
1543+
/**
1544+
* Shown when a golden dandelion is used on a mob to stop its growth.
1545+
* <p>
1546+
* <b>Information</b>:
1547+
* <ul>
1548+
* <li>Effect: Pauses the growth of a mob.</li>
1549+
* <li>Trigger: Using a golden dandelion on a mob.</li>
1550+
* </ul>
1551+
*/
1552+
PAUSE_MOB_GROWTH(version -> version.isAtLeast(26, 1) ? "NONE" : "pause_mob_growth"),
1553+
/**
1554+
* Shown when a golden dandelion is used on a mob to resume its growth.
1555+
* <p>
1556+
* <b>Information</b>:
1557+
* <ul>
1558+
* <li>Effect: Resumes the growth of a previously paused mob.</li>
1559+
* <li>Trigger: Using a golden dandelion again on a mob.</li>
1560+
* </ul>
1561+
*/
1562+
RESET_MOB_GROWTH(version -> version.isAtLeast(26, 1) ? "NONE" : "reset_mob_growth");
15431563

15441564
/**
15451565
* An array with all {@link ParticleEffect ParticleEffects}.

‎lib/src/main/resources/mappings.json‎

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
{
4242
"from": 17,
4343
"value": "network.protocol.game.PacketPlayOutWorldParticles"
44+
},
45+
{
46+
"from": 26,
47+
"value": "network.protocol.game.ClientboundLevelParticlesPacket"
4448
}
4549
]
4650
},
@@ -67,6 +71,10 @@
6771
{
6872
"from": 17,
6973
"value": "core.particles.Particle"
74+
},
75+
{
76+
"from": 26,
77+
"value": "core.particles.ParticleType"
7078
}
7179
]
7280
},
@@ -82,6 +90,10 @@
8290
{
8391
"from": 17,
8492
"value": "resources.MinecraftKey"
93+
},
94+
{
95+
"from": 26,
96+
"value": "resources.Identifier"
8597
}
8698
]
8799
},
@@ -97,6 +109,10 @@
97109
{
98110
"from": 17,
99111
"value": "core.IRegistry"
112+
},
113+
{
114+
"from": 26,
115+
"value": "core.Registry"
100116
}
101117
]
102118
},
@@ -127,6 +143,10 @@
127143
{
128144
"from": 17,
129145
"value": "core.BlockPosition"
146+
},
147+
{
148+
"from": 26,
149+
"value": "core.BlockPos"
130150
}
131151
]
132152
},
@@ -142,6 +162,10 @@
142162
{
143163
"from": 17,
144164
"value": "world.level.block.state.IBlockData"
165+
},
166+
{
167+
"from": 26,
168+
"value": "world.level.block.state.BlockState"
145169
}
146170
]
147171
},
@@ -220,6 +244,10 @@
220244
{
221245
"from": 17,
222246
"value": "server.level.EntityPlayer"
247+
},
248+
{
249+
"from": 26,
250+
"value": "server.level.ServerPlayer"
223251
}
224252
]
225253
},
@@ -235,6 +263,10 @@
235263
{
236264
"from": 17,
237265
"value": "server.network.PlayerConnection"
266+
},
267+
{
268+
"from": 26,
269+
"value": "server.network.ServerGamePacketListenerImpl"
238270
}
239271
]
240272
},
@@ -250,6 +282,10 @@
250282
{
251283
"from": 17,
252284
"value": "core.particles.ParticleParam"
285+
},
286+
{
287+
"from": 26,
288+
"value": "core.particles.ParticleOptions"
253289
}
254290
]
255291
},
@@ -265,6 +301,10 @@
265301
{
266302
"from": 17,
267303
"value": "core.particles.ParticleParamRedstone"
304+
},
305+
{
306+
"from": 26,
307+
"value": "core.particles.DustParticleOptions"
268308
}
269309
]
270310
},
@@ -291,6 +331,10 @@
291331
{
292332
"from": 17,
293333
"value": "core.particles.ParticleParamBlock"
334+
},
335+
{
336+
"from": 26,
337+
"value": "core.particles.BlockParticleOption"
294338
}
295339
]
296340
},
@@ -306,6 +350,10 @@
306350
{
307351
"from": 17,
308352
"value": "core.particles.ParticleParamItem"
353+
},
354+
{
355+
"from": 26,
356+
"value": "core.particles.ItemParticleOption"
309357
}
310358
]
311359
},
@@ -369,6 +417,10 @@
369417
{
370418
"from": 18,
371419
"value": "a"
420+
},
421+
{
422+
"from": 26,
423+
"value": "getValue"
372424
}
373425
]
374426
},
@@ -388,6 +440,10 @@
388440
{
389441
"from": 20.2,
390442
"value": "b"
443+
},
444+
{
445+
"from": 26,
446+
"value": "send"
391447
}
392448
]
393449
},
@@ -427,6 +483,10 @@
427483
{
428484
"from": 21.3,
429485
"value": "m"
486+
},
487+
{
488+
"from": 26,
489+
"value": "defaultBlockState"
430490
}
431491
]
432492
},
@@ -454,6 +514,10 @@
454514
{
455515
"from": 21.6,
456516
"value": "g"
517+
},
518+
{
519+
"from": 26,
520+
"value": "connection"
457521
}
458522
]
459523
},
@@ -557,6 +621,10 @@
557621
{
558622
"from": 21.9,
559623
"value": "j"
624+
},
625+
{
626+
"from": 26,
627+
"value": "PARTICLE_TYPE"
560628
}
561629
]
562630
},
@@ -572,6 +640,10 @@
572640
{
573641
"from": 20.3,
574642
"value": "e"
643+
},
644+
{
645+
"from": 26,
646+
"value": "BLOCK"
575647
}
576648
]
577649
},
@@ -583,6 +655,10 @@
583655
{
584656
"from": 21,
585657
"value": "a"
658+
},
659+
{
660+
"from": 26,
661+
"value": "parse"
586662
}
587663
]
588664
},
@@ -605,6 +681,10 @@
605681
{
606682
"from": 20.5,
607683
"value": "a"
684+
},
685+
{
686+
"from": 26,
687+
"value": "create"
608688
}
609689
]
610690
}

0 commit comments

Comments
 (0)