public class EntityFunctions
extends java.lang.Object
Constructor and Description |
---|
EntityFunctions() |
Modifier and Type | Method and Description |
---|---|
static <any> |
applications(ManagementContext mgmt) |
static <any> |
attribute(AttributeSensor<?> attribute,
java.lang.String format) |
static <T> <any> |
attribute(AttributeSensor<T> attribute) |
static <T> <any> |
attribute(Entity entity,
AttributeSensor<T> attribute) |
static <any> |
attribute(java.lang.String attributeName) |
static <any> |
attribute(java.lang.String attributeName,
java.lang.String format) |
static <any> |
config(ConfigKey<?> key,
java.lang.String format) |
static <T> <any> |
config(ConfigKey<T> key) |
static <any> |
config(java.lang.String keyName) |
static <any> |
config(java.lang.String keyName,
java.lang.String format) |
static <T> <any> |
configKeyFinder(ConfigKey<T> queryKey)
As
configKeyFinder(ConfigKey,ConfigKey) using the query key as the default value |
static <T> <any> |
configKeyFinder(ConfigKey<T> queryKey,
ConfigKey<T> defaultValue)
Returns a function that finds the best match for the given config key on an entity
|
static <any> |
displayName() |
static <any> |
id() |
static <any> |
locationMatching(<any> filter) |
static <any> |
parent() |
static java.lang.Runnable |
settingSensorsConstant(Entity entity,
java.util.Map<AttributeSensor<?>,java.lang.Object> values)
as
settingSensorsConstant(Map) but as a Runnable |
static <any> |
settingSensorsConstant(java.util.Map<AttributeSensor<?>,java.lang.Object> values)
returns a function which sets the given sensors on the entity passed in,
with
Entities.UNCHANGED and Entities.REMOVE doing those actions. |
static <K,V> <any> |
updatingSensorMapEntry(AttributeSensor<java.util.Map<K,V>> mapSensor,
K key,
<any> valueSupplier) |
static <K,V> java.lang.Runnable |
updatingSensorMapEntry(Entity entity,
AttributeSensor<java.util.Map<K,V>> mapSensor,
K key,
<any> valueSupplier) |
public static <any> attribute(java.lang.String attributeName)
public static <T> <any> attribute(AttributeSensor<T> attribute)
public static <any> attribute(java.lang.String attributeName, java.lang.String format)
public static <any> attribute(AttributeSensor<?> attribute, java.lang.String format)
public static <T> <any> attribute(Entity entity, AttributeSensor<T> attribute)
public static <any> config(java.lang.String keyName)
public static <T> <any> config(ConfigKey<T> key)
public static <any> config(java.lang.String keyName, java.lang.String format)
public static <any> config(ConfigKey<?> key, java.lang.String format)
public static <any> displayName()
public static <any> id()
public static <any> settingSensorsConstant(java.util.Map<AttributeSensor<?>,java.lang.Object> values)
Entities.UNCHANGED
and Entities.REMOVE
doing those actions.public static java.lang.Runnable settingSensorsConstant(Entity entity, java.util.Map<AttributeSensor<?>,java.lang.Object> values)
settingSensorsConstant(Map)
but as a Runnable
public static <K,V> <any> updatingSensorMapEntry(AttributeSensor<java.util.Map<K,V>> mapSensor, K key, <any> valueSupplier)
public static <K,V> java.lang.Runnable updatingSensorMapEntry(Entity entity, AttributeSensor<java.util.Map<K,V>> mapSensor, K key, <any> valueSupplier)
public static <any> applications(ManagementContext mgmt)
public static <any> locationMatching(<any> filter)
public static <any> parent()
public static <T> <any> configKeyFinder(ConfigKey<T> queryKey, @Nullable ConfigKey<T> defaultValue)
public static <T> <any> configKeyFinder(ConfigKey<T> queryKey)
configKeyFinder(ConfigKey,ConfigKey)
using the query key as the default value