DefaultAbilityComponent
public interface AbilityComponent extends CMCommon
Modifier and Type | Interface | Description |
---|---|---|
static class |
AbilityComponent.CompConnector |
Connector descriptors for connecting component descriptions together
|
static class |
AbilityComponent.CompLocation |
Where worn locations for determining where a component must be
|
static class |
AbilityComponent.CompType |
An component type item filter for determining
how to interpret the kind of item to compare
|
idConverter
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getAbilityID() |
Returns the ability ID that this component serves.
|
int |
getAmount() |
Returns the number of items matching this component which must be present.
|
MaskingLibrary.CompiledZMask |
getCompiledMask() |
Returns the compiled zapper mask to determine whether a given agent
qualifies this item as a component.
|
AbilityComponent.CompConnector |
getConnector() |
Returns an enum describing how this component "connects" with the
following component logically.
|
AbilityComponent.CompLocation |
getLocation() |
Returns an enum value describing where an item must be to
be considered a valid component.
|
long |
getLongType() |
For resource and material type item component filters, this will
return the type comparison object as a long value.
|
java.lang.String |
getMaskStr() |
Returns the raw zapper mask to determine whether a given agent
qualifies this item as a component.
|
java.lang.String |
getStringType() |
For resource and material type item component filters, this will
return the type comparison object as a String value.
|
java.lang.String |
getSubType() |
Returns the item filter type for determining whether an item is
a component.
|
java.lang.String |
getTriggererDef() |
Returns the raw triggering ritual definition string to execute
this ability for which this component exists.
|
AbilityComponent.CompType |
getType() |
Returns the item filter type for determining whether an item is
a component.
|
boolean |
isConsumed() |
Gets whether or not this component is consumed upon use
|
void |
setAbilityID(java.lang.String ID) |
Sets the ability ID that this component serves.
|
void |
setAmount(int amount) |
Sets the number of items matching this component which must be present.
|
void |
setConnector(AbilityComponent.CompConnector connector) |
Sets an enum describing how this component "connects" with the
following component logically.
|
void |
setConsumed(boolean isConsumed) |
Sets whether or not this component is consumed upon use
|
void |
setLocation(AbilityComponent.CompLocation location) |
Sets an enum value describing where an item must be to
be considered a valid component.
|
void |
setMask(java.lang.String maskStr) |
Sets the raw zapper mask to determine whether a given agent
qualifies this item as a component.
|
void |
setTriggererDef(java.lang.String def) |
Sets the raw triggering ritual definition string to execute
this ability for which this component exists.
|
void |
setType(AbilityComponent.CompType type,
java.lang.Object typeObj,
java.lang.String subType) |
Sets the item filter type for determining whether an item is
a component.
|
copyOf, ID, initializeClass, name, newInstance
AbilityComponent.CompConnector getConnector()
AbilityComponent.CompConnector
,
setConnector(CompConnector)
void setConnector(AbilityComponent.CompConnector connector)
connector
- a connector enumAbilityComponent.CompConnector
,
getConnector()
AbilityComponent.CompLocation getLocation()
AbilityComponent.CompLocation
,
setLocation(CompLocation)
void setLocation(AbilityComponent.CompLocation location)
location
- where an item must be to be a componentAbilityComponent.CompLocation
,
getLocation()
boolean isConsumed()
setConsumed(boolean)
void setConsumed(boolean isConsumed)
isConsumed
- true if consumed, false otherwiseisConsumed()
int getAmount()
setAmount(int)
void setAmount(int amount)
amount
- the number of items matching this component which must be presentgetAmount()
AbilityComponent.CompType getType()
AbilityComponent.CompType
,
setType(CompType, Object, String)
void setType(AbilityComponent.CompType type, java.lang.Object typeObj, java.lang.String subType)
type
- the CompType enumtypeObj
- either a Integer object or a StringsubType
- the typeObj subTypeAbilityComponent.CompType
,
getType()
,
getSubType()
,
getLongType()
,
getStringType()
java.lang.String getSubType()
AbilityComponent.CompType
,
setType(CompType, Object, String)
long getLongType()
setType(CompType, Object, String)
java.lang.String getStringType()
setType(CompType, Object, String)
MaskingLibrary.CompiledZMask getCompiledMask()
getMaskStr()
,
setMask(String)
,
MaskingLibrary
java.lang.String getMaskStr()
getCompiledMask()
,
setMask(String)
,
MaskingLibrary
void setMask(java.lang.String maskStr)
maskStr
- the raw zapper maskgetCompiledMask()
,
getMaskStr()
,
MaskingLibrary
java.lang.String getTriggererDef()
setTriggererDef(String)
void setTriggererDef(java.lang.String def)
def
- the triggering ritual encoding definition string for this componentgetTriggererDef()
java.lang.String getAbilityID()
setAbilityID(String)
void setAbilityID(java.lang.String ID)
ID
- the ability IDgetAbilityID()