public class CompositeEffector extends AddEffector
Modifier and Type | Field and Description |
---|---|
static ConfigKey<java.util.List<java.lang.String>> |
EFFECTORS |
static ConfigKey<java.lang.Boolean> |
OVERRIDE |
EFFECTOR_DESCRIPTION, EFFECTOR_NAME, EFFECTOR_PARAMETER_DEFS
Constructor and Description |
---|
CompositeEffector(ConfigBag params) |
CompositeEffector(java.util.Map<?,?> params) |
Modifier and Type | Method and Description |
---|---|
void |
apply(EntityLocal entity)
Applies initialization logic to a just-built entity.
|
static Effectors.EffectorBuilder<java.util.List> |
newEffectorBuilder(ConfigBag params) |
getMergedParams, newEffectorBuilder
public static final ConfigKey<java.util.List<java.lang.String>> EFFECTORS
public static final ConfigKey<java.lang.Boolean> OVERRIDE
public CompositeEffector(ConfigBag params)
public CompositeEffector(java.util.Map<?,?> params)
public static Effectors.EffectorBuilder<java.util.List> newEffectorBuilder(ConfigBag params)
public void apply(EntityLocal entity)
EntityInitializer
apply
in interface EntityInitializer
apply
in class AddEffector
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)