Class PermissionGatherEvent.Handler
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.server.permission.events.PermissionGatherEvent
net.minecraftforge.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.minecraftforge.server.permission.events.PermissionGatherEvent
PermissionGatherEvent.Handler, PermissionGatherEvent.Nodes
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPermissionHandler
(ResourceLocation identifier, IPermissionHandlerFactory handlerFactory) Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
availableHandlers
-
-
Constructor Details
-
Handler
public Handler()
-
-
Method Details
-
getAvailablePermissionHandlerFactories
-
addPermissionHandler
public void addPermissionHandler(ResourceLocation identifier, IPermissionHandlerFactory handlerFactory)
-