Interface MixinUser

All Known Implementing Classes:
ServerPlayerEntityMixin

public interface MixinUser
Mixin interface for ServerPlayerEntity implementing User related caches and functions.
  • Method Summary

    Modifier and Type
    Method
    Description
    me.lucko.luckperms.common.model.User
     
     
    getOption(String key, net.luckperms.api.query.QueryOptions queryOptions)
     
    me.lucko.luckperms.common.context.manager.QueryOptionsCache<net.minecraft.server.network.ServerPlayerEntity>
     
    me.lucko.luckperms.common.context.manager.QueryOptionsCache<net.minecraft.server.network.ServerPlayerEntity>
    Gets (or creates using the manager) the objects QueryOptionsCache.
    net.luckperms.api.util.Tristate
    hasPermission(String permission)
     
    net.luckperms.api.util.Tristate
    hasPermission(String permission, net.luckperms.api.query.QueryOptions queryOptions)
     
    void
    initializePermissions(me.lucko.luckperms.common.model.User user)
    Initialises permissions for this player using the given User.
  • Method Details

    • getLuckPermsUser

      me.lucko.luckperms.common.model.User getLuckPermsUser()
    • getQueryOptionsCache

      me.lucko.luckperms.common.context.manager.QueryOptionsCache<net.minecraft.server.network.ServerPlayerEntity> getQueryOptionsCache()
    • getQueryOptionsCache

      me.lucko.luckperms.common.context.manager.QueryOptionsCache<net.minecraft.server.network.ServerPlayerEntity> getQueryOptionsCache(FabricContextManager contextManager)
      Gets (or creates using the manager) the objects QueryOptionsCache.
      Parameters:
      contextManager - the contextManager
      Returns:
      the cache
    • initializePermissions

      void initializePermissions(me.lucko.luckperms.common.model.User user)
      Initialises permissions for this player using the given User.
      Parameters:
      user - the user
    • hasPermission

      net.luckperms.api.util.Tristate hasPermission(String permission)
    • hasPermission

      net.luckperms.api.util.Tristate hasPermission(String permission, net.luckperms.api.query.QueryOptions queryOptions)
    • getOption

      String getOption(String key)
    • getOption

      String getOption(String key, net.luckperms.api.query.QueryOptions queryOptions)