Interface Message
public interface Message
A parsed message.
-
Method Summary
Modifier and TypeMethodDescription@NonNull net.minecraft.network.chat.Componentcontents()Get the parsed text contents of this message.@NonNull Collection<net.minecraft.world.entity.Entity> Get the collection of entities mentioned in this message.
-
Method Details
-
mentionedEntities
@NonNull Collection<net.minecraft.world.entity.Entity> mentionedEntities()Get the collection of entities mentioned in this message.- Returns:
- the mentioned entities
-
contents
@NonNull net.minecraft.network.chat.Component contents()Get the parsed text contents of this message.- Returns:
- the parsed text
-