Class ModCommandSender
java.lang.Object
org.geysermc.geyser.platform.mod.command.ModCommandSender
- All Implemented Interfaces:
org.geysermc.geyser.api.command.CommandSource,org.geysermc.geyser.command.GeyserCommandSource
public class ModCommandSender
extends Object
implements org.geysermc.geyser.command.GeyserCommandSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasPermission(String permission) booleanname()voidsendMessage(@NonNull String message) voidsendMessage(net.kyori.adventure.text.Component message) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.geyser.api.command.CommandSource
sendMessageMethods inherited from interface org.geysermc.geyser.command.GeyserCommandSource
locale
-
Constructor Details
-
ModCommandSender
public ModCommandSender(net.minecraft.commands.CommandSourceStack source)
-
-
Method Details
-
name
- Specified by:
namein interfaceorg.geysermc.geyser.api.command.CommandSource
-
sendMessage
- Specified by:
sendMessagein interfaceorg.geysermc.geyser.api.command.CommandSource
-
sendMessage
public void sendMessage(net.kyori.adventure.text.Component message) - Specified by:
sendMessagein interfaceorg.geysermc.geyser.command.GeyserCommandSource
-
isConsole
public boolean isConsole()- Specified by:
isConsolein interfaceorg.geysermc.geyser.api.command.CommandSource
-
hasPermission
- Specified by:
hasPermissionin interfaceorg.geysermc.geyser.api.command.CommandSource
-