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 TypeMethodDescriptionbooleanisVisible(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
asComponentMethods 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- TheMessageTypeto test- Returns:
- Whether or not it's visible with this
ChatVisibility
-