Interface EntitySoundInteractionTranslator

All Superinterfaces:
SoundInteractionTranslator<Entity>
All Known Implementing Classes:
FeedBabySoundInteractionTranslator, MilkEntitySoundInteractionTranslator

public interface EntitySoundInteractionTranslator extends SoundInteractionTranslator<Entity>
Sound interaction handler for when an entity is right-clicked.
  • Method Details

    • handleEntityInteraction

      static void handleEntityInteraction(GeyserSession session, com.nukkitx.math.vector.Vector3f position, Entity entity)
      Handles the block interaction when a player right-clicks an entity.
      Parameters:
      session - the session interacting with the block
      position - the position of the block
      entity - the entity interacted with