public interface IContext
BlockPosContext
or PlayerContext
when possibleModifier and Type | Method and Description |
---|---|
<T> T |
get(ContextKey<T> key) |
EntityPlayer |
getPlayer() |
World |
getWorld()
World from where permission is requested.
|
boolean |
has(ContextKey<?> key) |
World getWorld()
EntityPlayer getPlayer()
<T> T get(ContextKey<T> key)
key
- Context keyboolean has(ContextKey<?> key)
key
- Context key