KyoriPowered / adventure

A user-interface library, formerly known as text, for Minecraft: Java Edition
https://docs.advntr.dev/
MIT License
679 stars 104 forks source link

sendMessage bug #1019

Closed robalmeister closed 6 months ago

robalmeister commented 6 months ago

Hi `default void sendMessage(final @NotNull Component message, final ChatType.@NotNull Bound boundChatType) { this.sendMessage(message, MessageType.CHAT); }

@ForwardingAudienceOverrideNotRequired
default void sendMessage(final @NotNull ComponentLike message, final ChatType.@NotNull Bound boundChatType) {
    this.sendMessage(message.asComponent(), boundChatType);
}`

Parameter boundChatType isn't used

Machine-Maker commented 6 months ago

I believe this is intentional. That method is for being overridden by implementations of Audience and they do use the boundChatType