public class Context extends java.lang.Object implements IContext
| Constructor and Description |
|---|
Context() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
covers(ContextKey<?> key) |
<T> T |
get(ContextKey<T> key) |
EntityPlayer |
getPlayer() |
World |
getWorld()
World from where permission is requested.
|
boolean |
has(ContextKey<?> key) |
<T> Context |
set(ContextKey<T> key,
T obj)
Sets Context object
|
public World getWorld()
IContextpublic EntityPlayer getPlayer()
public <T> T get(ContextKey<T> key)
public boolean has(ContextKey<?> key)
public <T> Context set(ContextKey<T> key, T obj)
key - Context keyobj - Context object. Can be nullprotected boolean covers(ContextKey<?> key)