Interface ChatVisibility
- All Superinterfaces:
ComponentLike
,DefaultedRegistryValue
@CatalogedBy(ChatVisibilities.class)
public interface ChatVisibility
extends DefaultedRegistryValue, ComponentLike
Represents a visibility mode for a client's chat.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isVisible
(MessageType type) Tests whether the given chat type will be visible to a player's chat.Methods inherited from interface net.kyori.adventure.text.ComponentLike
asComponent
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
Method Details
-
isVisible
Tests whether the given chat type will be visible to a player's chat.- Parameters:
type
- TheMessageType
to test- Returns:
- Whether or not it's visible with this
ChatVisibility
-