Interface IContext
- All Known Implementing Classes:
AreaContext
,BlockPosContext
,Context
,PlayerContext
,TargetContext
,WorldContext
public interface IContext
Use
BlockPosContext
or PlayerContext
when possible-
Method Summary
Modifier and TypeMethodDescription<T> T
get
(ContextKey<T> key) getWorld()
World from where permission is requested.boolean
has
(ContextKey<?> key)
-
Method Details
-
getWorld
World from where permission is requested. Can be null -
getPlayer
- Returns:
- Player requesting permission. Can be null
-
get
- Parameters:
key
- Context key- Returns:
- Context object
-
has
- Parameters:
key
- Context key- Returns:
- true if context contains this key
-