Class WindParticleOptions
java.lang.Object
net.frozenblock.wilderwild.particle.options.WindParticleOptions
- All Implemented Interfaces:
net.minecraft.core.particles.ParticleOptions
public class WindParticleOptions
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<WindParticleOptions> static final net.minecraft.core.particles.ParticleOptions.Deserializer<WindParticleOptions> -
Constructor Summary
ConstructorsConstructorDescriptionWindParticleOptions(int lifespan, double xVel, double yVel, double zVel) WindParticleOptions(int lifespan, net.minecraft.world.phys.Vec3 velocity) -
Method Summary
Modifier and TypeMethodDescriptionint@NotNull net.minecraft.core.particles.ParticleType<?> getType()net.minecraft.world.phys.Vec3static @NotNull net.minecraft.world.phys.Vec3readVec3(@NotNull com.mojang.brigadier.StringReader reader) voidwriteToNetwork(net.minecraft.network.FriendlyByteBuf buffer) @NotNull String
-
Field Details
-
CODEC
-
DESERIALIZER
public static final net.minecraft.core.particles.ParticleOptions.Deserializer<WindParticleOptions> DESERIALIZER
-
-
Constructor Details
-
WindParticleOptions
public WindParticleOptions(int lifespan, net.minecraft.world.phys.Vec3 velocity) -
WindParticleOptions
public WindParticleOptions(int lifespan, double xVel, double yVel, double zVel)
-
-
Method Details
-
writeToNetwork
public void writeToNetwork(net.minecraft.network.FriendlyByteBuf buffer) - Specified by:
writeToNetworkin interfacenet.minecraft.core.particles.ParticleOptions
-
readVec3
@NotNull @Contract("_ -> new") public static @NotNull net.minecraft.world.phys.Vec3 readVec3(@NotNull @NotNull com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getType
@NotNull public @NotNull net.minecraft.core.particles.ParticleType<?> getType()- Specified by:
getTypein interfacenet.minecraft.core.particles.ParticleOptions
-
writeToString
- Specified by:
writeToStringin interfacenet.minecraft.core.particles.ParticleOptions
-
getLifespan
public int getLifespan() -
getVelocity
public net.minecraft.world.phys.Vec3 getVelocity()
-