Interface PlayerAudioListener.Builder
- Enclosing interface:
PlayerAudioListener
public static interface PlayerAudioListener.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setPacketListener
(Consumer<SoundPacket> listener) Note: It is required to set a listenersetPlayer
(ServerPlayer player) Note: It is required to either set a player with this method or withsetPlayer(UUID)
Note: It is required to either set a player with this method or withsetPlayer(ServerPlayer)
-
Method Details
-
setPlayer
Note: It is required to either set a player with this method or withsetPlayer(UUID)
- Parameters:
player
- the player that should be listened to
-
setPlayer
Note: It is required to either set a player with this method or withsetPlayer(ServerPlayer)
- Parameters:
playerUuid
- the player UUID that should be listened to
-
setPacketListener
Note: It is required to set a listener- Parameters:
listener
- the listener
-
build
PlayerAudioListener build()- Returns:
- the built listener
- Throws:
IllegalStateException
- if the player or the listener is not set
-