Class EntityTrackingSoundInstance

All Implemented Interfaces:
SoundInstance, TickableSoundInstance

@Environment(CLIENT)
public class EntityTrackingSoundInstance
extends MovingSoundInstance
  • Field Details

    • entity

      private final Entity entity
  • Constructor Details

    • EntityTrackingSoundInstance

      public EntityTrackingSoundInstance​(SoundEvent sound, SoundCategory soundCategory, Entity entity)
    • EntityTrackingSoundInstance

      public EntityTrackingSoundInstance​(SoundEvent sound, SoundCategory soundCategory, float volume, float pitch, Entity entity)
  • Method Details

    • canPlay

      public boolean canPlay()
    • tick

      public void tick()