Class MindustrySenderMappers

java.lang.Object
com.xpdustry.distributor.api.command.cloud.MindustrySenderMappers

public final class MindustrySenderMappers extends Object
Utility class providing useful SenderMapper instances for Mindustry.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.incendo.cloud.SenderMapper<com.xpdustry.distributor.api.command.CommandSender,com.xpdustry.distributor.api.audience.Audience>
    Returns a SenderMapper that maps CommandSender instances to Audience instances.
    static org.incendo.cloud.SenderMapper<com.xpdustry.distributor.api.command.CommandSender,mindustry.gen.Player>
    Returns a SenderMapper that maps CommandSender instances to Player instances.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • player

      public static org.incendo.cloud.SenderMapper<com.xpdustry.distributor.api.command.CommandSender,mindustry.gen.Player> player()
      Returns a SenderMapper that maps CommandSender instances to Player instances. Ideal for client command managers.
    • audience

      public static org.incendo.cloud.SenderMapper<com.xpdustry.distributor.api.command.CommandSender,com.xpdustry.distributor.api.audience.Audience> audience()
      Returns a SenderMapper that maps CommandSender instances to Audience instances.