Class LeafParticleOptions

java.lang.Object
net.frozenblock.wilderwild.particle.options.LeafParticleOptions
All Implemented Interfaces:
net.minecraft.core.particles.ParticleOptions

public class LeafParticleOptions extends Object implements net.minecraft.core.particles.ParticleOptions
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<LeafParticleOptions> CODEC
    • DESERIALIZER

      public static final net.minecraft.core.particles.ParticleOptions.Deserializer<LeafParticleOptions> DESERIALIZER
  • Method Details

    • create

      @NotNull public static @NotNull LeafParticleOptions create(net.minecraft.core.particles.ParticleType<LeafParticleOptions> type, float quadSize, float gravityScale)
    • createFastFalling

      @NotNull public static @NotNull LeafParticleOptions createFastFalling(net.minecraft.core.particles.ParticleType<LeafParticleOptions> type, float quadSize)
    • getType

      @NotNull public @NotNull net.minecraft.core.particles.ParticleType<?> getType()
      Specified by:
      getType in interface net.minecraft.core.particles.ParticleOptions
    • writeToNetwork

      public void writeToNetwork(net.minecraft.network.FriendlyByteBuf buf)
      Specified by:
      writeToNetwork in interface net.minecraft.core.particles.ParticleOptions
    • writeToString

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

      public net.minecraft.resources.ResourceLocation getParticleId()
    • getVelocity

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

      public float getQuadSize()
    • getGravityScale

      public float getGravityScale()
    • isFastFalling

      public boolean isFastFalling()
    • shouldControlVelUponSpawn

      public boolean shouldControlVelUponSpawn()