Class Context
java.lang.Object
net.minecraftforge.server.permission.context.Context
- All Implemented Interfaces:
IContext
- Direct Known Subclasses:
PlayerContext,WorldContext
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancovers(ContextKey<?> key)<T> Tget(ContextKey<T> key)getWorld()World from where permission is requested.booleanhas(ContextKey<?> key)<T> Contextset(ContextKey<T> key, T obj)Sets Context object
-
Field Details
-
map
-
-
Constructor Details
-
Context
public Context()
-
-
Method Details
-
getWorld
Description copied from interface:IContextWorld 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
-