Package com.minecolonies.api.util
Class MessageUtils.MessageBuilderColonyPlayerSelector
java.lang.Object
com.minecolonies.api.util.MessageUtils.MessageBuilderColonyPlayerSelector
- Enclosing class:
- MessageUtils
-
Constructor Summary
ConstructorsConstructorDescriptionMessageBuilderColonyPlayerSelector(net.minecraft.network.chat.MutableComponent rootComponent, IColony colony, boolean alwaysShowColony) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidSends the message to all players inside the colony.voidSends the message to all colony manager.
-
Constructor Details
-
MessageBuilderColonyPlayerSelector
public MessageBuilderColonyPlayerSelector(net.minecraft.network.chat.MutableComponent rootComponent, IColony colony, boolean alwaysShowColony) Default constructor.- Parameters:
rootComponent- the completed component to send.colony- the reference to the colony.alwaysShowColony- whether we always want to include the colony name in front of the message.
-
-
Method Details
-
forAllPlayers
public void forAllPlayers()Sends the message to all players inside the colony. -
forManagers
public void forManagers()Sends the message to all colony manager.
-