Class PermissionGatherEvent.Handler
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.server.permission.events.PermissionGatherEvent
net.neoforged.neoforge.server.permission.events.PermissionGatherEvent.Handler
- Enclosing class:
PermissionGatherEvent
Used to register a new PermissionHandler, a server config value exists to choose which one to use.
Note: Create a new instance when registering a PermissionHandler. If you cache it, make sure that your PermissionHandler is actually used after this event.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.server.permission.events.PermissionGatherEvent
PermissionGatherEvent.Handler, PermissionGatherEvent.Nodes
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPermissionHandler
(ResourceLocation identifier, IPermissionHandlerFactory handlerFactory)
-
Field Details
-
availableHandlers
-
-
Constructor Details
-
Handler
public Handler()
-
-
Method Details
-
getAvailablePermissionHandlerFactories
-
addPermissionHandler
public void addPermissionHandler(ResourceLocation identifier, IPermissionHandlerFactory handlerFactory)
-