public static final class Model.MagicItemResource.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Model.MagicItemResource,Model.MagicItemResource.Builder> implements Model.MagicItemResourceOrBuilder
ca.isupeene.charactersheet.cdk.MagicItemResource| Modifier and Type | Method and Description |
|---|---|
Model.MagicItemResource.Builder |
clearCharges()
optional int32 charges = 1; |
Model.MagicItemResource.Builder |
clearCorrelationKey()
If present, this key must correlate to an ItemEnchantment of type EFFECT
to indicate which effect is activated by a use of this resource.
|
Model.MagicItemResource.Builder |
clearRecoveryDie()
Used for DIE recovery type.
|
Model.MagicItemResource.Builder |
clearRecoveryType()
optional .ca.isupeene.charactersheet.cdk.MagicItemResource.RecoveryType recovery_type = 2; |
int |
getCharges()
optional int32 charges = 1; |
java.lang.String |
getCorrelationKey()
If present, this key must correlate to an ItemEnchantment of type EFFECT
to indicate which effect is activated by a use of this resource.
|
com.google.protobuf.ByteString |
getCorrelationKeyBytes()
If present, this key must correlate to an ItemEnchantment of type EFFECT
to indicate which effect is activated by a use of this resource.
|
int |
getRecoveryDie()
Used for DIE recovery type.
|
Model.MagicItemResource.RecoveryType |
getRecoveryType()
optional .ca.isupeene.charactersheet.cdk.MagicItemResource.RecoveryType recovery_type = 2; |
int |
getRecoveryTypeValue()
optional .ca.isupeene.charactersheet.cdk.MagicItemResource.RecoveryType recovery_type = 2; |
Model.MagicItemResource.Builder |
setCharges(int value)
optional int32 charges = 1; |
Model.MagicItemResource.Builder |
setCorrelationKey(java.lang.String value)
If present, this key must correlate to an ItemEnchantment of type EFFECT
to indicate which effect is activated by a use of this resource.
|
Model.MagicItemResource.Builder |
setCorrelationKeyBytes(com.google.protobuf.ByteString value)
If present, this key must correlate to an ItemEnchantment of type EFFECT
to indicate which effect is activated by a use of this resource.
|
Model.MagicItemResource.Builder |
setRecoveryDie(int value)
Used for DIE recovery type.
|
Model.MagicItemResource.Builder |
setRecoveryType(Model.MagicItemResource.RecoveryType value)
optional .ca.isupeene.charactersheet.cdk.MagicItemResource.RecoveryType recovery_type = 2; |
Model.MagicItemResource.Builder |
setRecoveryTypeValue(int value)
optional .ca.isupeene.charactersheet.cdk.MagicItemResource.RecoveryType recovery_type = 2; |
build, buildPartial, clear, clone, copyOnWrite, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFromaddAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionpublic int getCharges()
optional int32 charges = 1;getCharges in interface Model.MagicItemResourceOrBuilderpublic Model.MagicItemResource.Builder setCharges(int value)
optional int32 charges = 1;public Model.MagicItemResource.Builder clearCharges()
optional int32 charges = 1;public int getRecoveryTypeValue()
optional .ca.isupeene.charactersheet.cdk.MagicItemResource.RecoveryType recovery_type = 2;getRecoveryTypeValue in interface Model.MagicItemResourceOrBuilderpublic Model.MagicItemResource.Builder setRecoveryTypeValue(int value)
optional .ca.isupeene.charactersheet.cdk.MagicItemResource.RecoveryType recovery_type = 2;public Model.MagicItemResource.RecoveryType getRecoveryType()
optional .ca.isupeene.charactersheet.cdk.MagicItemResource.RecoveryType recovery_type = 2;getRecoveryType in interface Model.MagicItemResourceOrBuilderpublic Model.MagicItemResource.Builder setRecoveryType(Model.MagicItemResource.RecoveryType value)
optional .ca.isupeene.charactersheet.cdk.MagicItemResource.RecoveryType recovery_type = 2;public Model.MagicItemResource.Builder clearRecoveryType()
optional .ca.isupeene.charactersheet.cdk.MagicItemResource.RecoveryType recovery_type = 2;public int getRecoveryDie()
Used for DIE recovery type. This is allowed to be a number like d3 (1d6 / 2)
optional int32 recovery_die = 3;getRecoveryDie in interface Model.MagicItemResourceOrBuilderpublic Model.MagicItemResource.Builder setRecoveryDie(int value)
Used for DIE recovery type. This is allowed to be a number like d3 (1d6 / 2)
optional int32 recovery_die = 3;public Model.MagicItemResource.Builder clearRecoveryDie()
Used for DIE recovery type. This is allowed to be a number like d3 (1d6 / 2)
optional int32 recovery_die = 3;public java.lang.String getCorrelationKey()
If present, this key must correlate to an ItemEnchantment of type EFFECT to indicate which effect is activated by a use of this resource. If it's empty, it's presumed that the effect is of type "OTHER" TODO: Figure it if correlation to the OTHER effect is needed, and if so, how to implement
optional string correlation_key = 4;getCorrelationKey in interface Model.MagicItemResourceOrBuilderpublic com.google.protobuf.ByteString getCorrelationKeyBytes()
If present, this key must correlate to an ItemEnchantment of type EFFECT to indicate which effect is activated by a use of this resource. If it's empty, it's presumed that the effect is of type "OTHER" TODO: Figure it if correlation to the OTHER effect is needed, and if so, how to implement
optional string correlation_key = 4;getCorrelationKeyBytes in interface Model.MagicItemResourceOrBuilderpublic Model.MagicItemResource.Builder setCorrelationKey(java.lang.String value)
If present, this key must correlate to an ItemEnchantment of type EFFECT to indicate which effect is activated by a use of this resource. If it's empty, it's presumed that the effect is of type "OTHER" TODO: Figure it if correlation to the OTHER effect is needed, and if so, how to implement
optional string correlation_key = 4;public Model.MagicItemResource.Builder clearCorrelationKey()
If present, this key must correlate to an ItemEnchantment of type EFFECT to indicate which effect is activated by a use of this resource. If it's empty, it's presumed that the effect is of type "OTHER" TODO: Figure it if correlation to the OTHER effect is needed, and if so, how to implement
optional string correlation_key = 4;public Model.MagicItemResource.Builder setCorrelationKeyBytes(com.google.protobuf.ByteString value)
If present, this key must correlate to an ItemEnchantment of type EFFECT to indicate which effect is activated by a use of this resource. If it's empty, it's presumed that the effect is of type "OTHER" TODO: Figure it if correlation to the OTHER effect is needed, and if so, how to implement
optional string correlation_key = 4;