public class EntityFunctions
extends java.lang.Object
Constructor and Description |
---|
EntityFunctions() |
Modifier and Type | Method and Description |
---|---|
static |
applications(ManagementContext mgmt) |
static <T> |
attribute(AttributeSensor<T> attribute) |
static <T> |
attribute(Entity entity,
AttributeSensor<T> attribute) |
static <T> |
config(ConfigKey<T> key) |
static |
displayName() |
static |
id() |
static |
locationMatching( |
static java.lang.Runnable |
settingSensorsConstant(Entity entity,
java.util.Map<AttributeSensor<?>,java.lang.Object> values)
as
settingSensorsConstant(Map) but as a Runnable |
static |
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> |
updatingSensorMapEntry(AttributeSensor<java.util.Map<K,V>> mapSensor,
K key,
|
static <K,V> java.lang.Runnable |
updatingSensorMapEntry(Entity entity,
AttributeSensor<java.util.Map<K,V>> mapSensor,
K key,
|
public static <T>attribute(AttributeSensor<T> attribute)
public static <T>attribute(Entity entity, AttributeSensor<T> attribute)
public static <T>config(ConfigKey<T> key)
public staticdisplayName()
public staticid()
public staticsettingSensorsConstant(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>updatingSensorMapEntry(AttributeSensor<java.util.Map<K,V>> mapSensor, K key, valueSupplier)
public static <K,V> java.lang.Runnable updatingSensorMapEntry(Entity entity, AttributeSensor<java.util.Map<K,V>> mapSensor, K key,valueSupplier)
public staticapplications(ManagementContext mgmt)
public staticlocationMatching( filter)