Class Context
java.lang.Object
net.minecraftforge.server.permission.context.Context
- All Implemented Interfaces:
IContext
- Direct Known Subclasses:
PlayerContext
,WorldContext
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
covers
(ContextKey<?> key) <T> T
get
(ContextKey<T> key) getWorld()
World from where permission is requested.boolean
has
(ContextKey<?> key) <T> Context
set
(ContextKey<T> key, T obj) Sets Context object
-
Field Details
-
map
-
-
Constructor Details
-
Context
public Context()
-
-
Method Details
-
getWorld
Description copied from interface:IContext
World from where permission is requested. Can be null -
getPlayer
-
get
-
has
-
set
Sets Context object- Parameters:
key
- Context keyobj
- Context object. Can be null- Returns:
- itself, for easy context chaining
-
covers
-