Interface Listening

All Superinterfaces:
Auricular
All Known Implementing Classes:
MicrophoneBlock, MicrophoneBlockEntity, TransceiverItem, WalkieTalkieItem

public interface Listening extends Auricular
  • Method Details

    • startListening

      default Listener startListening(net.minecraft.world.entity.Entity owner, @Nullable @Nullable UUID id)
      Start listening in the world.
      Parameters:
      owner - the Entity that will listen
      id - the UUID of the listener
      Returns:
      The listener created.
    • startListening

      default Listener startListening(WorldlyPosition location, @Nullable @Nullable UUID id)
      Start listening in the world.
      Parameters:
      location - the location to listen to
      id - the UUID of the listener
      Returns:
      The listener created.
    • setupListener

      default Listener setupListener(Listener listener)
    • stopListening

      default void stopListening(UUID reference, boolean isClient)
      Stop listening in the world. This will remove the listener from both global and specific router maps.
      Parameters:
      reference - the UUID of the router that will stop speaking