public class Context extends java.lang.Object implements IContext
| コンストラクタと説明 |
|---|
Context() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected boolean |
covers(ContextKey<?> key) |
<T> T |
get(ContextKey<T> key) |
PlayerEntity |
getPlayer() |
World |
getWorld()
World from where permission is requested.
|
boolean |
has(ContextKey<?> key) |
<T> Context |
set(ContextKey<T> key,
T obj)
Sets Context object
|
@Nullable public World getWorld()
IContext@Nullable public PlayerEntity getPlayer()
@Nullable public <T> T get(ContextKey<T> key)
public boolean has(ContextKey<?> key)
public <T> Context set(ContextKey<T> key, @Nullable T obj)
key - Context keyobj - Context object. Can be nullprotected boolean covers(ContextKey<?> key)