Interface Message
public interface Message
A parsed message.
- Since:
- 1.5.0
-
Method Summary
Modifier and TypeMethodDescription@NonNull net.minecraft.network.chat.Component
contents()
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
- Since:
- 1.5.0
-
contents
@NonNull net.minecraft.network.chat.Component contents()Get the parsed text contents of this message.- Returns:
- the parsed text
- Since:
- 1.5.0
-