Class FabricSenderFactory

java.lang.Object
me.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
me.lucko.luckperms.fabric.FabricSenderFactory
All Implemented Interfaces:
AutoCloseable

public class FabricSenderFactory extends me.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    getName(net.minecraft.server.command.ServerCommandSource commandSource)
     
    protected net.luckperms.api.util.Tristate
    getPermissionValue(net.minecraft.server.command.ServerCommandSource commandSource, String node)
     
    protected LPFabricPlugin
     
    protected UUID
    getUniqueId(net.minecraft.server.command.ServerCommandSource commandSource)
     
    protected boolean
    hasPermission(net.minecraft.server.command.ServerCommandSource commandSource, String node)
     
    protected boolean
    isConsole(net.minecraft.server.command.ServerCommandSource sender)
     
    protected void
    performCommand(net.minecraft.server.command.ServerCommandSource sender, String command)
     
    protected void
    sendMessage(net.minecraft.server.command.ServerCommandSource sender, net.kyori.adventure.text.Component message)
     
    static net.minecraft.text.Text
    toNativeText(net.kyori.adventure.text.Component component)
     

    Methods inherited from class me.lucko.luckperms.common.sender.SenderFactory

    close, consoleHasAllPermissions, wrap

    Methods inherited from class java.lang.Object

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

    • FabricSenderFactory

      public FabricSenderFactory(LPFabricPlugin plugin)
  • Method Details

    • getPlugin

      protected LPFabricPlugin getPlugin()
      Overrides:
      getPlugin in class me.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
    • getUniqueId

      protected UUID getUniqueId(net.minecraft.server.command.ServerCommandSource commandSource)
      Specified by:
      getUniqueId in class me.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
    • getName

      protected String getName(net.minecraft.server.command.ServerCommandSource commandSource)
      Specified by:
      getName in class me.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
    • sendMessage

      protected void sendMessage(net.minecraft.server.command.ServerCommandSource sender, net.kyori.adventure.text.Component message)
      Specified by:
      sendMessage in class me.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
    • getPermissionValue

      protected net.luckperms.api.util.Tristate getPermissionValue(net.minecraft.server.command.ServerCommandSource commandSource, String node)
      Specified by:
      getPermissionValue in class me.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
    • hasPermission

      protected boolean hasPermission(net.minecraft.server.command.ServerCommandSource commandSource, String node)
      Specified by:
      hasPermission in class me.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
    • performCommand

      protected void performCommand(net.minecraft.server.command.ServerCommandSource sender, String command)
      Specified by:
      performCommand in class me.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
    • isConsole

      protected boolean isConsole(net.minecraft.server.command.ServerCommandSource sender)
      Specified by:
      isConsole in class me.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
    • toNativeText

      public static net.minecraft.text.Text toNativeText(net.kyori.adventure.text.Component component)