Class ElectricChainParticleOption
java.lang.Object
nokunami.floral_warfare.client.particles.ElectricChainParticleOption
- All Implemented Interfaces:
net.minecraft.core.particles.ParticleOptions
public class ElectricChainParticleOption
extends Object
implements net.minecraft.core.particles.ParticleOptions
-
Nested Class Summary
Nested 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<ElectricChainParticleOption>static final net.minecraft.core.particles.ParticleOptions.Deserializer<ElectricChainParticleOption> -
Constructor Summary
ConstructorsConstructorDescriptionElectricChainParticleOption(double redC, double blueC, double greenC, double endX, double endY, double endZ, float startingWidth, float endingWidth, int offset, int particleSpeed, int lifetime, double timeTofade) ElectricChainParticleOption(net.minecraft.world.phys.Vec3 endPos) ElectricChainParticleOption(net.minecraft.world.phys.Vec3 endPos, int offset, int speed, int lifeTime) ElectricChainParticleOption(net.minecraft.world.phys.Vec3 color, net.minecraft.world.phys.Vec3 endPos, int offset, int speed, int lifeTime) -
Method Summary
Modifier and TypeMethodDescriptionfloatgetBlue()net.minecraft.world.phys.Vec3floatgetFade()floatgetGreen()floatintgetLife()intfloatgetRed()intgetSpeed()@NotNull net.minecraft.core.particles.ParticleType<?>getType()floatgetWidth()voidwriteToNetwork(@NotNull net.minecraft.network.FriendlyByteBuf buf) @NotNull String
-
Field Details
-
CODEC
-
DESERIALIZER
public static final net.minecraft.core.particles.ParticleOptions.Deserializer<ElectricChainParticleOption> DESERIALIZER
-
-
Constructor Details
-
ElectricChainParticleOption
public ElectricChainParticleOption(net.minecraft.world.phys.Vec3 endPos) -
ElectricChainParticleOption
public ElectricChainParticleOption(net.minecraft.world.phys.Vec3 color, net.minecraft.world.phys.Vec3 endPos, int offset, int speed, int lifeTime) -
ElectricChainParticleOption
public ElectricChainParticleOption(net.minecraft.world.phys.Vec3 endPos, int offset, int speed, int lifeTime) -
ElectricChainParticleOption
public ElectricChainParticleOption(double redC, double blueC, double greenC, double endX, double endY, double endZ, float startingWidth, float endingWidth, int offset, int particleSpeed, int lifetime, double timeTofade)
-
-
Method Details
-
getType
@NotNull public @NotNull net.minecraft.core.particles.ParticleType<?> getType()- Specified by:
getTypein interfacenet.minecraft.core.particles.ParticleOptions
-
writeToNetwork
public void writeToNetwork(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf) - Specified by:
writeToNetworkin interfacenet.minecraft.core.particles.ParticleOptions
-
writeToString
- Specified by:
writeToStringin interfacenet.minecraft.core.particles.ParticleOptions
-
getRed
public float getRed() -
getGreen
public float getGreen() -
getBlue
public float getBlue() -
getEndPos
public net.minecraft.world.phys.Vec3 getEndPos() -
getInitialWidth
public float getInitialWidth() -
getWidth
public float getWidth() -
getRandomOffset
public int getRandomOffset() -
getSpeed
public int getSpeed() -
getLife
public int getLife() -
getFade
public float getFade()
-