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

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<WindParticleOptions>
     
    static final net.minecraft.core.particles.ParticleOptions.Deserializer<WindParticleOptions>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    WindParticleOptions(int lifespan, double xVel, double yVel, double zVel)
     
    WindParticleOptions(int lifespan, net.minecraft.world.phys.Vec3 velocity)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    @NotNull net.minecraft.core.particles.ParticleType<?>
     
    net.minecraft.world.phys.Vec3
     
    static @NotNull net.minecraft.world.phys.Vec3
    readVec3(@NotNull com.mojang.brigadier.StringReader reader)
     
    void
    writeToNetwork(net.minecraft.network.FriendlyByteBuf buffer)
     
    @NotNull String
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<WindParticleOptions> 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:
      writeToNetwork in interface net.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:
      getType in interface net.minecraft.core.particles.ParticleOptions
    • writeToString

      @NotNull public @NotNull String writeToString()
      Specified by:
      writeToString in interface net.minecraft.core.particles.ParticleOptions
    • getLifespan

      public int getLifespan()
    • getVelocity

      public net.minecraft.world.phys.Vec3 getVelocity()