Class MindustrySenderMappers
java.lang.Object
com.xpdustry.distributor.api.command.cloud.MindustrySenderMappers
Utility class providing useful
SenderMapper instances for Mindustry.-
Method Summary
Modifier and TypeMethodDescriptionstatic org.incendo.cloud.SenderMapper<com.xpdustry.distributor.api.command.CommandSender,com.xpdustry.distributor.api.audience.Audience> audience()Returns aSenderMapperthat mapsCommandSenderinstances toAudienceinstances.static org.incendo.cloud.SenderMapper<com.xpdustry.distributor.api.command.CommandSender,mindustry.gen.Player> player()Returns aSenderMapperthat mapsCommandSenderinstances toPlayerinstances.
-
Method Details
-
player
public static org.incendo.cloud.SenderMapper<com.xpdustry.distributor.api.command.CommandSender,mindustry.gen.Player> player()Returns aSenderMapperthat mapsCommandSenderinstances toPlayerinstances. 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 aSenderMapperthat mapsCommandSenderinstances toAudienceinstances.
-