Adds missing @NotNull annotations
All checks were successful
EpicKnarvik97/KnarLib/pipeline/head This commit looks good
All checks were successful
EpicKnarvik97/KnarLib/pipeline/head This commit looks good
This commit is contained in:
@ -70,8 +70,9 @@ public final class ParticleConfig {
|
||||
* @param offsetZ <p>The z-offset/spread of the spawned particles</p>
|
||||
* @param extra <p>Extra data for the particle. Usage depends on the particle type.</p>
|
||||
*/
|
||||
public ParticleConfig(ParticleMode particleMode, Particle particleType, int particleAmount, double particleDensity,
|
||||
double heightOffset, double offsetX, double offsetY, double offsetZ, double extra) {
|
||||
public ParticleConfig(@NotNull ParticleMode particleMode, @NotNull Particle particleType, int particleAmount,
|
||||
double particleDensity, double heightOffset, double offsetX, double offsetY, double offsetZ,
|
||||
double extra) {
|
||||
this.particleMode = particleMode;
|
||||
this.particleType = particleType;
|
||||
this.particleAmount = particleAmount;
|
||||
@ -88,7 +89,7 @@ public final class ParticleConfig {
|
||||
*
|
||||
* @return <p>The particle mode</p>
|
||||
*/
|
||||
public ParticleMode getParticleMode() {
|
||||
public @NotNull ParticleMode getParticleMode() {
|
||||
return particleMode;
|
||||
}
|
||||
|
||||
@ -97,7 +98,7 @@ public final class ParticleConfig {
|
||||
*
|
||||
* @return <p>The particle type</p>
|
||||
*/
|
||||
public Particle getParticleType() {
|
||||
public @NotNull Particle getParticleType() {
|
||||
return particleType;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user