Interface Listening

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

public interface Listening extends Auricular
  • Method Details

    • startListening

      default RadioListener 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 RadioListener 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 RadioListener setupListener(RadioListener listener)
    • stopListening

      default void stopListening(UUID owner, boolean isClient)
      Stop listening in the world.
      Parameters:
      owner - the Entity that will stop listening
      isClient - if to remove in client
    • stopListening

      default void stopListening(WorldlyPosition location)
      Stop listening in the world.
      Parameters:
      location - the location of the listener to remove
    • stopListening

      default void stopListening()
      Stop listening in the world. Infers information from itself. Only call this on the server.