Class AstralSoundEvent

java.lang.Object
net.minecraft.sound.SoundEvent
dev.jaxydog.astral.content.sound.AstralSoundEvent
All Implemented Interfaces:
Registered, Registered.Common

public class AstralSoundEvent extends net.minecraft.sound.SoundEvent implements Registered.Common
An extension of a SoundEvent that provides commonly used functionality.

This type is automatically registered.

Since:
2.0.0
  • Constructor Details

    • AstralSoundEvent

      public AstralSoundEvent(String path, float distanceTraveled)
      Creates a new sound event.
      Parameters:
      path - The sound event's identifier path.
      distanceTraveled - The distance that the sound travels in blocks.
      Since:
      2.0.0
    • AstralSoundEvent

      public AstralSoundEvent(String path)
      Creates a new sound event.
      Parameters:
      path - The sound event's identifier path.
      Since:
      2.0.0
  • Method Details