Class SmokeGrenadeParticleOptions
java.lang.Object
tech.anonymoushacker1279.immersiveweapons.client.particle.smoke_grenade.SmokeGrenadeParticleOptions
- All Implemented Interfaces:
net.minecraft.core.particles.ParticleOptions
public class SmokeGrenadeParticleOptions
extends Object
implements net.minecraft.core.particles.ParticleOptions
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector3fgetColor()static SmokeGrenadeParticleOptionsgetParticleByColor(int colorID) Utility for getting particle colors from resources spawning smoke grenade particles.net.minecraft.core.particles.ParticleType<SmokeGrenadeParticleOptions> getType()
-
Field Details
-
color
protected final org.joml.Vector3f color -
scale
protected final float scale
-
-
Constructor Details
-
SmokeGrenadeParticleOptions
public SmokeGrenadeParticleOptions(org.joml.Vector3f vector3f, float vibrancy)
-
-
Method Details
-
getColor
public org.joml.Vector3f getColor() -
getType
- Specified by:
getTypein interfacenet.minecraft.core.particles.ParticleOptions
-
getParticleByColor
Utility for getting particle colors from resources spawning smoke grenade particles.- Parameters:
colorID- the ID representing the color to be selected.
0 -> Gray
1 -> Red
2 -> Green
3 -> Blue
4 -> Purple
5 -> Yellow- Returns:
- SmokeGrenadeParticleOptions
-