Package de.maxhenkel.voicechat.api
Interface VoicechatApi
- All Known Subinterfaces:
VoicechatServerApi
public interface VoicechatApi
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new opus decoder.Creates a new opus encoder.createPosition(double x, double y, double z)
Creates a new position object.fromEntity(Object entity)
Creates an entity object from an actual entity.fromServerLevel(Object serverLevel)
Creates a level object from an actual level.
-
Method Details
-
createEncoder
Creates a new opus encoder. Note that the encoder needs to be closed after you are finished using it.- Returns:
- the opus encoder or
null
if there are no natives for this platform.
-
createDecoder
Creates a new opus decoder. Note that the decoder needs to be closed after you are finished using it.- Returns:
- the opus decoder or
null
if there are no natives for this platform.
-
fromEntity
Creates an entity object from an actual entity.- Parameters:
entity
- the entity implementation of your mod/plugin loader- Returns:
- the entity object
-
fromServerLevel
Creates a level object from an actual level.- Parameters:
serverLevel
- the level implementation of your mod/plugin loader- Returns:
- the level
-
createPosition
Creates a new position object.- Parameters:
x
- the X positiony
- the Y positionz
- the Z position- Returns:
- the position with the provided coordinates
-