public class ElectPrimaryEffector extends java.lang.Object implements EntityInitializer, ElectPrimaryConfig
Modifier and Type | Class and Description |
---|---|
static class |
ElectPrimaryEffector.CheckPrimaries |
static class |
ElectPrimaryEffector.PrimaryTransition |
static class |
ElectPrimaryEffector.ResultCode |
ElectPrimaryConfig.PrimaryDefaultSensorsAndEffectors, ElectPrimaryConfig.SelectionMode, ElectPrimaryConfig.TargetMode
Modifier and Type | Field and Description |
---|---|
static Effector<java.lang.Object> |
EFFECTOR |
static AttributeSensor<ElectPrimaryEffector.PrimaryTransition> |
PRIMARY_TRANSITION |
BEST_STARTING_WAIT_TIMEOUT, BEST_WAIT_TIMEOUT, DEMOTE_EFFECTOR_NAME, PRIMARY_SENSOR_NAME, PRIMARY_WEIGHT_NAME, PROMOTE_EFFECTOR_NAME, SELECTION_MODE, TARGET_MODE
Constructor and Description |
---|
ElectPrimaryEffector(ConfigBag params) |
ElectPrimaryEffector(java.util.Map<java.lang.String,java.lang.String> params) |
Modifier and Type | Method and Description |
---|---|
void |
apply(EntityLocal entity)
Applies initialization logic to a just-built entity.
|
static Effector<java.lang.Object> |
makeEffector(ConfigBag params) |
public static final Effector<java.lang.Object> EFFECTOR
public static final AttributeSensor<ElectPrimaryEffector.PrimaryTransition> PRIMARY_TRANSITION
public ElectPrimaryEffector(ConfigBag params)
public ElectPrimaryEffector(java.util.Map<java.lang.String,java.lang.String> params)
public void apply(EntityLocal entity)
EntityInitializer
apply
in interface EntityInitializer
entity
- guaranteed to be the actual implementation instance,
thus guaranteed to be castable to EntityInternal which is often desired,
or to the type at hand (it is not even a proxy)