Class PortalSoundManager
java.lang.Object
tech.anonymoushacker1279.openportals.portal.config.PortalSoundManager
Manages sound effects for portals. Handles travel sounds, trigger sounds, and ambient sounds with configurable volume
and pitch.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creatingPortalSoundManagerinstances.static final recordImmutable sound configuration. -
Method Summary
Modifier and TypeMethodDescriptionPortalSoundManager.SoundConfiguration<net.minecraft.world.level.Level> @Nullable net.minecraft.resources.IdentifierPortalSoundManager.SoundConfiguration<net.minecraft.world.entity.Entity> @Nullable net.minecraft.resources.IdentifiervoidplayTravelSound(net.minecraft.world.entity.Entity entity) Play the travel sound for the given entity.
-
Method Details
-
getTriggerSound
-
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
-