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