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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
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 Detail
-
isVisible
boolean isVisible(MessageType type)
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
-
-