Interface VoicechatApi

All Known Subinterfaces:
VoicechatClientApi, VoicechatServerApi

public interface VoicechatApi
  • Method Details

    • createEncoder

      OpusEncoder createEncoder()
      Creates a new opus encoder. Note that the encoder needs to be closed after you are finished using it.
    • createEncoder

      OpusEncoder createEncoder(OpusEncoderMode mode)
      Creates a new opus encoder. Note that the encoder needs to be closed after you are finished using it.
      Parameters:
      mode - the opus encoder mode
      Returns:
      the opus encoder
    • createDecoder

      OpusDecoder createDecoder()
      Creates a new opus decoder. Note that the decoder needs to be closed after you are finished using it.
      Returns:
      the opus decoder
    • getAudioConverter

      AudioConverter getAudioConverter()
      Returns:
      the audio converter
    • fromEntity

      Entity fromEntity(Object entity)
      Creates an entity object from an actual entity.
      Parameters:
      entity - the entity implementation of your mod/plugin loader
      Returns:
      the entity object
    • fromServerLevel

      ServerLevel fromServerLevel(Object serverLevel)
      Creates a level object from an actual level.
      Parameters:
      serverLevel - the level implementation of your mod/plugin loader
      Returns:
      the level
    • fromServerPlayer

      ServerPlayer fromServerPlayer(Object serverPlayer)
      Creates a player object from an actual player.
      Parameters:
      serverPlayer - the player implementation of your mod/plugin loader
      Returns:
      the player
    • createPosition

      Position createPosition(double x, double y, double z)
      Creates a new position object.
      Parameters:
      x - the X position
      y - the Y position
      z - the Z position
      Returns:
      the position with the provided coordinates