Add GUI permission, API methods for custom styles, update some locales

This commit is contained in:
Esophose 2020-01-07 21:32:35 -07:00
parent f997676ee7
commit 2c172f6ff7
15 changed files with 88 additions and 69 deletions

View file

@ -3,6 +3,7 @@ package dev.esophose.playerparticles.api;
import dev.esophose.playerparticles.PlayerParticles;
import dev.esophose.playerparticles.manager.DataManager;
import dev.esophose.playerparticles.manager.GuiManager;
import dev.esophose.playerparticles.manager.ParticleStyleManager;
import dev.esophose.playerparticles.particles.PPlayer;
import dev.esophose.playerparticles.particles.ParticleEffect;
import dev.esophose.playerparticles.particles.ParticleEffect.NoteColor;
@ -292,9 +293,17 @@ public final class PlayerParticlesAPI {
//endregion
//region Registering Custom Styles
// TODO: Register custom styles
// TODO: Register custom handled styles
// TODO Note: This is currently accessible through ParticleStyleManager
public void registerParticleStyle(@NotNull ParticleStyle particleStyle) {
Objects.requireNonNull(particleStyle);
this.playerParticles.getManager(ParticleStyleManager.class).registerStyle(particleStyle);
}
public void registerEventParticleStyle(@NotNull ParticleStyle particleStyle) {
Objects.requireNonNull(particleStyle);
this.playerParticles.getManager(ParticleStyleManager.class).registerEventStyle(particleStyle);
}
//endregion
}