Class PortalSoundManager

java.lang.Object
tech.anonymoushacker1279.openportals.portal.config.PortalSoundManager

public class PortalSoundManager extends Object
Manages sound effects for portals. Handles travel sounds, trigger sounds, and ambient sounds with configurable volume and pitch.
  • Method Details

    • getTriggerSound

      public PortalSoundManager.SoundConfiguration<net.minecraft.world.entity.Entity> getTriggerSound()
    • getAmbientSound

      public PortalSoundManager.SoundConfiguration<net.minecraft.world.level.Level> getAmbientSound()
    • getTriggerSoundIdentifier

      @Nullable public @Nullable net.minecraft.resources.Identifier getTriggerSoundIdentifier()
    • getAmbientSoundIdentifier

      @Nullable public @Nullable net.minecraft.resources.Identifier getAmbientSoundIdentifier()
    • playTravelSound

      public void playTravelSound(net.minecraft.world.entity.Entity entity)
      Play the travel sound for the given entity.
      Parameters:
      entity - the entity to play the sound for