public class TargetContext extends PlayerContext
Constructor and Description |
---|
TargetContext(PlayerEntity ep,
Entity entity) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
covers(ContextKey<?> key) |
<T> T |
get(ContextKey<T> key) |
getPlayer, getWorld
private final Entity target
public TargetContext(PlayerEntity ep, @Nullable Entity entity)
@Nullable public <T> T get(ContextKey<T> key)
protected boolean covers(ContextKey<?> key)