mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-07-04 04:51:26 +00:00
Add ParticleStyleRegistrationEvent, deprecate registration API methods
This commit is contained in:
parent
f2a3263b41
commit
60a171e540
5 changed files with 184 additions and 53 deletions
|
@ -1,6 +1,7 @@
|
|||
package dev.esophose.playerparticles.api;
|
||||
|
||||
import dev.esophose.playerparticles.PlayerParticles;
|
||||
import dev.esophose.playerparticles.event.ParticleStyleRegistrationEvent;
|
||||
import dev.esophose.playerparticles.manager.DataManager;
|
||||
import dev.esophose.playerparticles.manager.GuiManager;
|
||||
import dev.esophose.playerparticles.manager.ParticleManager;
|
||||
|
@ -1039,7 +1040,9 @@ public final class PlayerParticlesAPI {
|
|||
* Registers a particle style with the plugin
|
||||
*
|
||||
* @param particleStyle The particle style to register
|
||||
* @deprecated Use {@link ParticleStyleRegistrationEvent} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public void registerParticleStyle(@NotNull ParticleStyle particleStyle) {
|
||||
Objects.requireNonNull(particleStyle);
|
||||
|
||||
|
@ -1050,7 +1053,9 @@ public final class PlayerParticlesAPI {
|
|||
* Registers an event-based particle style with the plugin
|
||||
*
|
||||
* @param particleStyle The particle style to register
|
||||
* @deprecated Use {@link ParticleStyleRegistrationEvent} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public void registerEventParticleStyle(@NotNull ParticleStyle particleStyle) {
|
||||
Objects.requireNonNull(particleStyle);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue