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 ClassesNested classes/interfaces inherited from interface net.minecraft.core.particles.ParticleOptions
net.minecraft.core.particles.ParticleOptions.Deserializer<T extends net.minecraft.core.particles.ParticleOptions> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SmokeGrenadeParticleOptions>protected final org.joml.Vector3fstatic final net.minecraft.core.particles.ParticleOptions.Deserializer<SmokeGrenadeParticleOptions>protected final float -
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()static org.joml.Vector3freadVector3f(com.mojang.brigadier.StringReader reader) static org.joml.Vector3freadVector3f(net.minecraft.network.FriendlyByteBuf byteBuf) voidwriteToNetwork(net.minecraft.network.FriendlyByteBuf byteBuf)
-
Field Details
-
CODEC
-
color
protected final org.joml.Vector3f color -
scale
protected final float scale -
DESERIALIZER
public static final net.minecraft.core.particles.ParticleOptions.Deserializer<SmokeGrenadeParticleOptions> DESERIALIZER
-
-
Constructor Details
-
SmokeGrenadeParticleOptions
public SmokeGrenadeParticleOptions(org.joml.Vector3f vector3f, float vibrancy)
-
-
Method Details
-
readVector3f
public static org.joml.Vector3f readVector3f(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readVector3f
public static org.joml.Vector3f readVector3f(net.minecraft.network.FriendlyByteBuf byteBuf) -
writeToNetwork
public void writeToNetwork(net.minecraft.network.FriendlyByteBuf byteBuf) - Specified by:
writeToNetworkin interfacenet.minecraft.core.particles.ParticleOptions
-
writeToString
- Specified by:
writeToStringin interfacenet.minecraft.core.particles.ParticleOptions
-
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
-