Package de.z0rdak.yawp.api
Class MessageSender
java.lang.Object
de.z0rdak.yawp.api.MessageSender
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidmessage(net.minecraft.world.entity.player.Player player, net.minecraft.network.chat.MutableComponent msg) static voidoverLayMessage(net.minecraft.world.entity.player.Player player, String msg) static voidoverLayMessage(net.minecraft.world.entity.player.Player player, net.minecraft.network.chat.MutableComponent msg) static voidsendCmdFeedback(net.minecraft.commands.CommandSourceStack src, net.minecraft.network.chat.MutableComponent text) static voidsendError(net.minecraft.commands.CommandSourceStack src, net.minecraft.network.chat.MutableComponent text) static voidsendFlagMsg(FlagCheckResult result) Sends the flag message for the given flag check event.static voidsendNotification(net.minecraft.world.entity.player.Player player, net.minecraft.network.chat.MutableComponent msg)
-
Constructor Details
-
MessageSender
public MessageSender()
-
-
Method Details
-
sendCmdFeedback
public static void sendCmdFeedback(net.minecraft.commands.CommandSourceStack src, net.minecraft.network.chat.MutableComponent text) -
message
public static void message(net.minecraft.world.entity.player.Player player, net.minecraft.network.chat.MutableComponent msg) -
message
-
overLayMessage
-
overLayMessage
public static void overLayMessage(net.minecraft.world.entity.player.Player player, net.minecraft.network.chat.MutableComponent msg) -
sendError
public static void sendError(net.minecraft.commands.CommandSourceStack src, net.minecraft.network.chat.MutableComponent text) -
sendNotification
public static void sendNotification(net.minecraft.world.entity.player.Player player, net.minecraft.network.chat.MutableComponent msg) -
sendFlagMsg
Sends the flag message for the given flag check event.
*- Parameters:
result- the flag check event to send the message for
-