Class ModCommandSource
java.lang.Object
org.geysermc.geyser.platform.mod.command.ModCommandSource
- All Implemented Interfaces:
org.geysermc.geyser.api.command.CommandSource, org.geysermc.geyser.command.GeyserCommandSource
public class ModCommandSource
extends Object
implements org.geysermc.geyser.command.GeyserCommandSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandle()booleanhasPermission(String permission) booleanname()@Nullable UUIDvoidsendMessage(@NonNull String message) voidsendMessage(net.kyori.adventure.text.Component message) Methods inherited from class 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
connection, locale, sendLocaleString, sendLocaleString
-
Constructor Details
-
ModCommandSource
public ModCommandSource(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
-
playerUuid
- Specified by:
playerUuidin interfaceorg.geysermc.geyser.api.command.CommandSource
-
hasPermission
- Specified by:
hasPermissionin interfaceorg.geysermc.geyser.api.command.CommandSource
-
handle
- Specified by:
handlein interfaceorg.geysermc.geyser.command.GeyserCommandSource
-