Object MessageBroadcaster

  • All Implemented Interfaces:

    
    public class MessageBroadcaster
    
                        

    Utility for broadcasting messages about ItemStacks.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit broadcastItem(String format, Player player, ItemStack itemStack, BukkitAudiences bukkitAudiences, AbstractMessageBroadcaster.BroadcastTarget target) Broadcasts a message about the player and item using the given format.
      final Boolean isSupportedBukkitVersion() Returns true if the version of bukkit
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • broadcastItem

         final Unit broadcastItem(String format, Player player, ItemStack itemStack, BukkitAudiences bukkitAudiences, AbstractMessageBroadcaster.BroadcastTarget target)

        Broadcasts a message about the player and item using the given format. Replaces "%player%" with the player's display name and replaces "%item%" with the item tooltip for the given item.

        Parameters:
        format - Format of message
        player - Player to reference
        itemStack - ItemStack to reference
        bukkitAudiences - Adventure context to use
        target - Who should see the broadcast