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.MapCodec<LeafParticleOptions> CODEC
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,LeafParticleOptions> STREAM_CODEC
  • 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
    • 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()