[Feature] Accesor to generate colorable particles
This commit is contained in:
parent
00ef6fcfa1
commit
1c61c0e3cc
5 changed files with 126 additions and 7 deletions
|
@ -0,0 +1,21 @@
|
|||
package org.betterx.bclib.interfaces;
|
||||
|
||||
import net.minecraft.client.particle.Particle;
|
||||
import net.minecraft.core.particles.ParticleOptions;
|
||||
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@Environment(EnvType.CLIENT)
|
||||
public interface ClientLevelAccess {
|
||||
@Nullable
|
||||
LevelRendererAccess bcl_getLevelRenderer();
|
||||
@Nullable
|
||||
Particle bcl_addParticle(
|
||||
ParticleOptions particleOptions,
|
||||
double x, double y, double z,
|
||||
double vx, double vy, double vz
|
||||
);
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.betterx.bclib.interfaces;
|
||||
|
||||
|
||||
import net.minecraft.client.particle.Particle;
|
||||
import net.minecraft.core.particles.ParticleOptions;
|
||||
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@Environment(EnvType.CLIENT)
|
||||
public interface LevelRendererAccess {
|
||||
@Nullable Particle bcl_addParticle(
|
||||
ParticleOptions particleOptions,
|
||||
double x, double y, double z,
|
||||
double vx, double vy, double vz
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue