public static final class Model.Spell.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Model.Spell,Model.Spell.Builder> implements Model.SpellOrBuilder
ca.isupeene.charactersheet.cdk.Spell| Modifier and Type | Method and Description |
|---|---|
Model.Spell.Builder |
addAllMaterialComponent(java.lang.Iterable<? extends Model.MaterialComponent> values)
The material components involved in casting the spell.
|
Model.Spell.Builder |
addAllMaterialComponent(Model.MaterialComponentOrBuilder... values)
The material components involved in casting the spell.
|
Model.Spell.Builder |
addMaterialComponent(int index,
Model.MaterialComponent.Builder builderForValue)
The material components involved in casting the spell.
|
Model.Spell.Builder |
addMaterialComponent(int index,
Model.MaterialComponent value)
The material components involved in casting the spell.
|
Model.Spell.Builder |
addMaterialComponent(Model.MaterialComponent.Builder builderForValue)
The material components involved in casting the spell.
|
Model.Spell.Builder |
addMaterialComponent(Model.MaterialComponent value)
The material components involved in casting the spell.
|
Model.Spell.Builder |
addMaterialComponent(Model.MaterialComponentOrBuilder value)
The material components involved in casting the spell.
|
Model.Spell.Builder |
clearAttackRoll()
Whether the spell involves making a spell attack.
|
Model.Spell.Builder |
clearCastingTime()
How long the spell takes to cast.
|
Model.Spell.Builder |
clearDuration()
How long the spell lasts for.
|
Model.Spell.Builder |
clearFullDescription()
This is a submessage indicating where the markdown file for this spell is located.
|
Model.Spell.Builder |
clearHasSomaticComponent()
Indicated by an 'S' in the Player's Handbook.
|
Model.Spell.Builder |
clearHasVerbalComponent()
Indicated by a 'V' in the Player's Handbook.
|
Model.Spell.Builder |
clearLevel()
The level of the spell.
|
Model.Spell.Builder |
clearMaterialComponent()
The material components involved in casting the spell.
|
Model.Spell.Builder |
clearMaterialComponentText()
This is used rarely - only if the material component text in the book can't be neatly
decomposed into a comma-separated list of components.
|
Model.Spell.Builder |
clearName()
The name of the spell.
|
Model.Spell.Builder |
clearRange()
The range of the spell.
|
Model.Spell.Builder |
clearRitual()
Whether the spell can be cast as a ritual.
|
Model.Spell.Builder |
clearSchool()
The school of magic the spell belongs to.
|
Model.Spell.Builder |
clearShortDescription()
This is where you get to be creative! Write a description that summarizes the effects of the spell.
|
boolean |
getAttackRoll()
Whether the spell involves making a spell attack.
|
Model.CastingTime |
getCastingTime()
How long the spell takes to cast.
|
Model.Duration |
getDuration()
How long the spell lasts for.
|
Model.InfoSource |
getFullDescription()
This is a submessage indicating where the markdown file for this spell is located.
|
boolean |
getHasSomaticComponent()
Indicated by an 'S' in the Player's Handbook.
|
boolean |
getHasVerbalComponent()
Indicated by a 'V' in the Player's Handbook.
|
int |
getLevel()
The level of the spell.
|
Model.MaterialComponent |
getMaterialComponent(int index)
The material components involved in casting the spell.
|
int |
getMaterialComponentCount()
The material components involved in casting the spell.
|
java.util.List<Model.MaterialComponent> |
getMaterialComponentList()
The material components involved in casting the spell.
|
java.lang.String |
getMaterialComponentText()
This is used rarely - only if the material component text in the book can't be neatly
decomposed into a comma-separated list of components.
|
com.google.protobuf.ByteString |
getMaterialComponentTextBytes()
This is used rarely - only if the material component text in the book can't be neatly
decomposed into a comma-separated list of components.
|
java.lang.String |
getName()
The name of the spell.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the spell.
|
Model.Range |
getRange()
The range of the spell.
|
boolean |
getRitual()
Whether the spell can be cast as a ritual.
|
Model.School |
getSchool()
The school of magic the spell belongs to.
|
int |
getSchoolValue()
The school of magic the spell belongs to.
|
java.lang.String |
getShortDescription()
This is where you get to be creative! Write a description that summarizes the effects of the spell.
|
com.google.protobuf.ByteString |
getShortDescriptionBytes()
This is where you get to be creative! Write a description that summarizes the effects of the spell.
|
boolean |
hasCastingTime()
How long the spell takes to cast.
|
boolean |
hasDuration()
How long the spell lasts for.
|
boolean |
hasFullDescription()
This is a submessage indicating where the markdown file for this spell is located.
|
boolean |
hasRange()
The range of the spell.
|
Model.Spell.Builder |
mergeCastingTime(Model.CastingTime value)
How long the spell takes to cast.
|
Model.Spell.Builder |
mergeDuration(Model.Duration value)
How long the spell lasts for.
|
Model.Spell.Builder |
mergeFullDescription(Model.InfoSource value)
This is a submessage indicating where the markdown file for this spell is located.
|
Model.Spell.Builder |
mergeRange(Model.Range value)
The range of the spell.
|
Model.CastingTime.Builder |
mutableCastingTime()
How long the spell takes to cast.
|
Model.Duration.Builder |
mutableDuration()
How long the spell lasts for.
|
Model.InfoSource.Builder |
mutableFullDescription()
This is a submessage indicating where the markdown file for this spell is located.
|
java.util.stream.Stream<Model.MaterialComponent.Builder> |
mutableMaterialComponent()
The material components involved in casting the spell.
|
Model.MaterialComponent.Builder |
mutableMaterialComponent(int i)
The material components involved in casting the spell.
|
Model.Range.Builder |
mutableRange()
The range of the spell.
|
Model.Spell.Builder |
removeMaterialComponent(int index)
The material components involved in casting the spell.
|
Model.Spell.Builder |
setAttackRoll(boolean value)
Whether the spell involves making a spell attack.
|
Model.Spell.Builder |
setCastingTime(Model.CastingTime.Builder builderForValue)
How long the spell takes to cast.
|
Model.Spell.Builder |
setCastingTime(Model.CastingTime value)
How long the spell takes to cast.
|
Model.Spell.Builder |
setDuration(Model.Duration.Builder builderForValue)
How long the spell lasts for.
|
Model.Spell.Builder |
setDuration(Model.Duration value)
How long the spell lasts for.
|
Model.Spell.Builder |
setFullDescription(Model.InfoSource.Builder builderForValue)
This is a submessage indicating where the markdown file for this spell is located.
|
Model.Spell.Builder |
setFullDescription(Model.InfoSource value)
This is a submessage indicating where the markdown file for this spell is located.
|
Model.Spell.Builder |
setHasSomaticComponent(boolean value)
Indicated by an 'S' in the Player's Handbook.
|
Model.Spell.Builder |
setHasVerbalComponent(boolean value)
Indicated by a 'V' in the Player's Handbook.
|
Model.Spell.Builder |
setLevel(int value)
The level of the spell.
|
Model.Spell.Builder |
setMaterialComponent(int index,
Model.MaterialComponent.Builder builderForValue)
The material components involved in casting the spell.
|
Model.Spell.Builder |
setMaterialComponent(int index,
Model.MaterialComponent value)
The material components involved in casting the spell.
|
Model.Spell.Builder |
setMaterialComponentText(java.lang.String value)
This is used rarely - only if the material component text in the book can't be neatly
decomposed into a comma-separated list of components.
|
Model.Spell.Builder |
setMaterialComponentTextBytes(com.google.protobuf.ByteString value)
This is used rarely - only if the material component text in the book can't be neatly
decomposed into a comma-separated list of components.
|
Model.Spell.Builder |
setName(java.lang.String value)
The name of the spell.
|
Model.Spell.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of the spell.
|
Model.Spell.Builder |
setRange(Model.Range.Builder builderForValue)
The range of the spell.
|
Model.Spell.Builder |
setRange(Model.Range value)
The range of the spell.
|
Model.Spell.Builder |
setRitual(boolean value)
Whether the spell can be cast as a ritual.
|
Model.Spell.Builder |
setSchool(Model.School value)
The school of magic the spell belongs to.
|
Model.Spell.Builder |
setSchoolValue(int value)
The school of magic the spell belongs to.
|
Model.Spell.Builder |
setShortDescription(java.lang.String value)
This is where you get to be creative! Write a description that summarizes the effects of the spell.
|
Model.Spell.Builder |
setShortDescriptionBytes(com.google.protobuf.ByteString value)
This is where you get to be creative! Write a description that summarizes the effects of the spell.
|
build, buildPartial, clear, clone, copyOnWrite, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFromaddAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionpublic java.lang.String getName()
The name of the spell. Don't wear it out!
optional string name = 1;getName in interface Model.SpellOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the spell. Don't wear it out!
optional string name = 1;getNameBytes in interface Model.SpellOrBuilderpublic Model.Spell.Builder setName(java.lang.String value)
The name of the spell. Don't wear it out!
optional string name = 1;public Model.Spell.Builder clearName()
The name of the spell. Don't wear it out!
optional string name = 1;public Model.Spell.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the spell. Don't wear it out!
optional string name = 1;public java.lang.String getShortDescription()
This is where you get to be creative! Write a description that summarizes the effects of the spell. Take a look at a few of the descriptions I wrote to get a sense of what I think is important. In particular, make sure to note the amount of damage a spell does, for damage spells. (I also like to explicitly use the word 'attack' when it's an actual spell attack, rather than a saving throw).
optional string short_description = 2;getShortDescription in interface Model.SpellOrBuilderpublic com.google.protobuf.ByteString getShortDescriptionBytes()
This is where you get to be creative! Write a description that summarizes the effects of the spell. Take a look at a few of the descriptions I wrote to get a sense of what I think is important. In particular, make sure to note the amount of damage a spell does, for damage spells. (I also like to explicitly use the word 'attack' when it's an actual spell attack, rather than a saving throw).
optional string short_description = 2;getShortDescriptionBytes in interface Model.SpellOrBuilderpublic Model.Spell.Builder setShortDescription(java.lang.String value)
This is where you get to be creative! Write a description that summarizes the effects of the spell. Take a look at a few of the descriptions I wrote to get a sense of what I think is important. In particular, make sure to note the amount of damage a spell does, for damage spells. (I also like to explicitly use the word 'attack' when it's an actual spell attack, rather than a saving throw).
optional string short_description = 2;public Model.Spell.Builder clearShortDescription()
This is where you get to be creative! Write a description that summarizes the effects of the spell. Take a look at a few of the descriptions I wrote to get a sense of what I think is important. In particular, make sure to note the amount of damage a spell does, for damage spells. (I also like to explicitly use the word 'attack' when it's an actual spell attack, rather than a saving throw).
optional string short_description = 2;public Model.Spell.Builder setShortDescriptionBytes(com.google.protobuf.ByteString value)
This is where you get to be creative! Write a description that summarizes the effects of the spell. Take a look at a few of the descriptions I wrote to get a sense of what I think is important. In particular, make sure to note the amount of damage a spell does, for damage spells. (I also like to explicitly use the word 'attack' when it's an actual spell attack, rather than a saving throw).
optional string short_description = 2;public boolean hasFullDescription()
This is a submessage indicating where the markdown file for this spell is located. 'type' will always be ASSET for built-in content, and 'asset_path' needs to be set. 'storage_path' should remain unset for built-in content.
optional .ca.isupeene.charactersheet.cdk.InfoSource full_description = 3;hasFullDescription in interface Model.SpellOrBuilderpublic Model.InfoSource getFullDescription()
This is a submessage indicating where the markdown file for this spell is located. 'type' will always be ASSET for built-in content, and 'asset_path' needs to be set. 'storage_path' should remain unset for built-in content.
optional .ca.isupeene.charactersheet.cdk.InfoSource full_description = 3;getFullDescription in interface Model.SpellOrBuilderpublic Model.Spell.Builder setFullDescription(Model.InfoSource value)
This is a submessage indicating where the markdown file for this spell is located. 'type' will always be ASSET for built-in content, and 'asset_path' needs to be set. 'storage_path' should remain unset for built-in content.
optional .ca.isupeene.charactersheet.cdk.InfoSource full_description = 3;public Model.Spell.Builder setFullDescription(Model.InfoSource.Builder builderForValue)
This is a submessage indicating where the markdown file for this spell is located. 'type' will always be ASSET for built-in content, and 'asset_path' needs to be set. 'storage_path' should remain unset for built-in content.
optional .ca.isupeene.charactersheet.cdk.InfoSource full_description = 3;public Model.Spell.Builder mergeFullDescription(Model.InfoSource value)
This is a submessage indicating where the markdown file for this spell is located. 'type' will always be ASSET for built-in content, and 'asset_path' needs to be set. 'storage_path' should remain unset for built-in content.
optional .ca.isupeene.charactersheet.cdk.InfoSource full_description = 3;public Model.Spell.Builder clearFullDescription()
This is a submessage indicating where the markdown file for this spell is located. 'type' will always be ASSET for built-in content, and 'asset_path' needs to be set. 'storage_path' should remain unset for built-in content.
optional .ca.isupeene.charactersheet.cdk.InfoSource full_description = 3;public int getLevel()
The level of the spell. 0 for cantrips.
optional int32 level = 4;getLevel in interface Model.SpellOrBuilderpublic Model.Spell.Builder setLevel(int value)
The level of the spell. 0 for cantrips.
optional int32 level = 4;public Model.Spell.Builder clearLevel()
The level of the spell. 0 for cantrips.
optional int32 level = 4;public int getSchoolValue()
The school of magic the spell belongs to. ABJURATION, EVOCATION, etc.
optional .ca.isupeene.charactersheet.cdk.School school = 5;getSchoolValue in interface Model.SpellOrBuilderpublic Model.Spell.Builder setSchoolValue(int value)
The school of magic the spell belongs to. ABJURATION, EVOCATION, etc.
optional .ca.isupeene.charactersheet.cdk.School school = 5;public Model.School getSchool()
The school of magic the spell belongs to. ABJURATION, EVOCATION, etc.
optional .ca.isupeene.charactersheet.cdk.School school = 5;getSchool in interface Model.SpellOrBuilderpublic Model.Spell.Builder setSchool(Model.School value)
The school of magic the spell belongs to. ABJURATION, EVOCATION, etc.
optional .ca.isupeene.charactersheet.cdk.School school = 5;public Model.Spell.Builder clearSchool()
The school of magic the spell belongs to. ABJURATION, EVOCATION, etc.
optional .ca.isupeene.charactersheet.cdk.School school = 5;public boolean getRitual()
Whether the spell can be cast as a ritual. This is indicated in the players handbook by a parenthetical '(ritual)' after the level and school. You may leave this out if a spell cannot be cast as a ritual.
optional bool ritual = 6;getRitual in interface Model.SpellOrBuilderpublic Model.Spell.Builder setRitual(boolean value)
Whether the spell can be cast as a ritual. This is indicated in the players handbook by a parenthetical '(ritual)' after the level and school. You may leave this out if a spell cannot be cast as a ritual.
optional bool ritual = 6;public Model.Spell.Builder clearRitual()
Whether the spell can be cast as a ritual. This is indicated in the players handbook by a parenthetical '(ritual)' after the level and school. You may leave this out if a spell cannot be cast as a ritual.
optional bool ritual = 6;public boolean hasCastingTime()
How long the spell takes to cast.
For reaction spells, the trigger should be included, and phrased as if to complete the
sentence: "You may cast this spell as a reaction {trigger}", and be copied from the
Player's Handbook.
For spells whose casting time is one action, you may omit the casting time.
optional .ca.isupeene.charactersheet.cdk.CastingTime casting_time = 7;hasCastingTime in interface Model.SpellOrBuilderpublic Model.CastingTime getCastingTime()
How long the spell takes to cast.
For reaction spells, the trigger should be included, and phrased as if to complete the
sentence: "You may cast this spell as a reaction {trigger}", and be copied from the
Player's Handbook.
For spells whose casting time is one action, you may omit the casting time.
optional .ca.isupeene.charactersheet.cdk.CastingTime casting_time = 7;getCastingTime in interface Model.SpellOrBuilderpublic Model.Spell.Builder setCastingTime(Model.CastingTime value)
How long the spell takes to cast.
For reaction spells, the trigger should be included, and phrased as if to complete the
sentence: "You may cast this spell as a reaction {trigger}", and be copied from the
Player's Handbook.
For spells whose casting time is one action, you may omit the casting time.
optional .ca.isupeene.charactersheet.cdk.CastingTime casting_time = 7;public Model.Spell.Builder setCastingTime(Model.CastingTime.Builder builderForValue)
How long the spell takes to cast.
For reaction spells, the trigger should be included, and phrased as if to complete the
sentence: "You may cast this spell as a reaction {trigger}", and be copied from the
Player's Handbook.
For spells whose casting time is one action, you may omit the casting time.
optional .ca.isupeene.charactersheet.cdk.CastingTime casting_time = 7;public Model.Spell.Builder mergeCastingTime(Model.CastingTime value)
How long the spell takes to cast.
For reaction spells, the trigger should be included, and phrased as if to complete the
sentence: "You may cast this spell as a reaction {trigger}", and be copied from the
Player's Handbook.
For spells whose casting time is one action, you may omit the casting time.
optional .ca.isupeene.charactersheet.cdk.CastingTime casting_time = 7;public Model.Spell.Builder clearCastingTime()
How long the spell takes to cast.
For reaction spells, the trigger should be included, and phrased as if to complete the
sentence: "You may cast this spell as a reaction {trigger}", and be copied from the
Player's Handbook.
For spells whose casting time is one action, you may omit the casting time.
optional .ca.isupeene.charactersheet.cdk.CastingTime casting_time = 7;public boolean hasRange()
The range of the spell. You may omit this field if the spell has a range of 'self'.
optional .ca.isupeene.charactersheet.cdk.Range range = 8;hasRange in interface Model.SpellOrBuilderpublic Model.Range getRange()
The range of the spell. You may omit this field if the spell has a range of 'self'.
optional .ca.isupeene.charactersheet.cdk.Range range = 8;getRange in interface Model.SpellOrBuilderpublic Model.Spell.Builder setRange(Model.Range value)
The range of the spell. You may omit this field if the spell has a range of 'self'.
optional .ca.isupeene.charactersheet.cdk.Range range = 8;public Model.Spell.Builder setRange(Model.Range.Builder builderForValue)
The range of the spell. You may omit this field if the spell has a range of 'self'.
optional .ca.isupeene.charactersheet.cdk.Range range = 8;public Model.Spell.Builder mergeRange(Model.Range value)
The range of the spell. You may omit this field if the spell has a range of 'self'.
optional .ca.isupeene.charactersheet.cdk.Range range = 8;public Model.Spell.Builder clearRange()
The range of the spell. You may omit this field if the spell has a range of 'self'.
optional .ca.isupeene.charactersheet.cdk.Range range = 8;public boolean getHasVerbalComponent()
Indicated by a 'V' in the Player's Handbook. You may omit this field if false.
optional bool has_verbal_component = 9;getHasVerbalComponent in interface Model.SpellOrBuilderpublic Model.Spell.Builder setHasVerbalComponent(boolean value)
Indicated by a 'V' in the Player's Handbook. You may omit this field if false.
optional bool has_verbal_component = 9;public Model.Spell.Builder clearHasVerbalComponent()
Indicated by a 'V' in the Player's Handbook. You may omit this field if false.
optional bool has_verbal_component = 9;public boolean getHasSomaticComponent()
Indicated by an 'S' in the Player's Handbook. You may omit this field if false.
optional bool has_somatic_component = 10;getHasSomaticComponent in interface Model.SpellOrBuilderpublic Model.Spell.Builder setHasSomaticComponent(boolean value)
Indicated by an 'S' in the Player's Handbook. You may omit this field if false.
optional bool has_somatic_component = 10;public Model.Spell.Builder clearHasSomaticComponent()
Indicated by an 'S' in the Player's Handbook. You may omit this field if false.
optional bool has_somatic_component = 10;public java.util.List<Model.MaterialComponent> getMaterialComponentList()
The material components involved in casting the spell. These are included in a parenthetical following the 'M' in the Player's Handbook. Include one entry per component, and include all the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the corpse's eyes, which must remain there for the duration". HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost from the description, and instead include it in the 'cost' field (in units of gp, as you would expect). Set the 'consumed' field only if the spell is consumed. The 'required' field is a little trickier. Set it only if the component is NOT consumed, but playes an essential physical role in the casting of the spell. Search for 'required' in spells.textpb to see existing examples of this.
repeated .ca.isupeene.charactersheet.cdk.MaterialComponent material_component = 11;getMaterialComponentList in interface Model.SpellOrBuilderpublic int getMaterialComponentCount()
The material components involved in casting the spell. These are included in a parenthetical following the 'M' in the Player's Handbook. Include one entry per component, and include all the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the corpse's eyes, which must remain there for the duration". HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost from the description, and instead include it in the 'cost' field (in units of gp, as you would expect). Set the 'consumed' field only if the spell is consumed. The 'required' field is a little trickier. Set it only if the component is NOT consumed, but playes an essential physical role in the casting of the spell. Search for 'required' in spells.textpb to see existing examples of this.
repeated .ca.isupeene.charactersheet.cdk.MaterialComponent material_component = 11;getMaterialComponentCount in interface Model.SpellOrBuilderpublic Model.MaterialComponent getMaterialComponent(int index)
The material components involved in casting the spell. These are included in a parenthetical following the 'M' in the Player's Handbook. Include one entry per component, and include all the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the corpse's eyes, which must remain there for the duration". HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost from the description, and instead include it in the 'cost' field (in units of gp, as you would expect). Set the 'consumed' field only if the spell is consumed. The 'required' field is a little trickier. Set it only if the component is NOT consumed, but playes an essential physical role in the casting of the spell. Search for 'required' in spells.textpb to see existing examples of this.
repeated .ca.isupeene.charactersheet.cdk.MaterialComponent material_component = 11;getMaterialComponent in interface Model.SpellOrBuilderpublic Model.Spell.Builder setMaterialComponent(int index, Model.MaterialComponent value)
The material components involved in casting the spell. These are included in a parenthetical following the 'M' in the Player's Handbook. Include one entry per component, and include all the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the corpse's eyes, which must remain there for the duration". HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost from the description, and instead include it in the 'cost' field (in units of gp, as you would expect). Set the 'consumed' field only if the spell is consumed. The 'required' field is a little trickier. Set it only if the component is NOT consumed, but playes an essential physical role in the casting of the spell. Search for 'required' in spells.textpb to see existing examples of this.
repeated .ca.isupeene.charactersheet.cdk.MaterialComponent material_component = 11;public Model.Spell.Builder setMaterialComponent(int index, Model.MaterialComponent.Builder builderForValue)
The material components involved in casting the spell. These are included in a parenthetical following the 'M' in the Player's Handbook. Include one entry per component, and include all the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the corpse's eyes, which must remain there for the duration". HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost from the description, and instead include it in the 'cost' field (in units of gp, as you would expect). Set the 'consumed' field only if the spell is consumed. The 'required' field is a little trickier. Set it only if the component is NOT consumed, but playes an essential physical role in the casting of the spell. Search for 'required' in spells.textpb to see existing examples of this.
repeated .ca.isupeene.charactersheet.cdk.MaterialComponent material_component = 11;public Model.Spell.Builder addMaterialComponent(Model.MaterialComponent value)
The material components involved in casting the spell. These are included in a parenthetical following the 'M' in the Player's Handbook. Include one entry per component, and include all the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the corpse's eyes, which must remain there for the duration". HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost from the description, and instead include it in the 'cost' field (in units of gp, as you would expect). Set the 'consumed' field only if the spell is consumed. The 'required' field is a little trickier. Set it only if the component is NOT consumed, but playes an essential physical role in the casting of the spell. Search for 'required' in spells.textpb to see existing examples of this.
repeated .ca.isupeene.charactersheet.cdk.MaterialComponent material_component = 11;public Model.Spell.Builder addMaterialComponent(int index, Model.MaterialComponent value)
The material components involved in casting the spell. These are included in a parenthetical following the 'M' in the Player's Handbook. Include one entry per component, and include all the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the corpse's eyes, which must remain there for the duration". HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost from the description, and instead include it in the 'cost' field (in units of gp, as you would expect). Set the 'consumed' field only if the spell is consumed. The 'required' field is a little trickier. Set it only if the component is NOT consumed, but playes an essential physical role in the casting of the spell. Search for 'required' in spells.textpb to see existing examples of this.
repeated .ca.isupeene.charactersheet.cdk.MaterialComponent material_component = 11;public Model.Spell.Builder addMaterialComponent(Model.MaterialComponent.Builder builderForValue)
The material components involved in casting the spell. These are included in a parenthetical following the 'M' in the Player's Handbook. Include one entry per component, and include all the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the corpse's eyes, which must remain there for the duration". HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost from the description, and instead include it in the 'cost' field (in units of gp, as you would expect). Set the 'consumed' field only if the spell is consumed. The 'required' field is a little trickier. Set it only if the component is NOT consumed, but playes an essential physical role in the casting of the spell. Search for 'required' in spells.textpb to see existing examples of this.
repeated .ca.isupeene.charactersheet.cdk.MaterialComponent material_component = 11;public Model.Spell.Builder addMaterialComponent(int index, Model.MaterialComponent.Builder builderForValue)
The material components involved in casting the spell. These are included in a parenthetical following the 'M' in the Player's Handbook. Include one entry per component, and include all the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the corpse's eyes, which must remain there for the duration". HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost from the description, and instead include it in the 'cost' field (in units of gp, as you would expect). Set the 'consumed' field only if the spell is consumed. The 'required' field is a little trickier. Set it only if the component is NOT consumed, but playes an essential physical role in the casting of the spell. Search for 'required' in spells.textpb to see existing examples of this.
repeated .ca.isupeene.charactersheet.cdk.MaterialComponent material_component = 11;public Model.Spell.Builder addAllMaterialComponent(java.lang.Iterable<? extends Model.MaterialComponent> values)
The material components involved in casting the spell. These are included in a parenthetical following the 'M' in the Player's Handbook. Include one entry per component, and include all the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the corpse's eyes, which must remain there for the duration". HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost from the description, and instead include it in the 'cost' field (in units of gp, as you would expect). Set the 'consumed' field only if the spell is consumed. The 'required' field is a little trickier. Set it only if the component is NOT consumed, but playes an essential physical role in the casting of the spell. Search for 'required' in spells.textpb to see existing examples of this.
repeated .ca.isupeene.charactersheet.cdk.MaterialComponent material_component = 11;public Model.Spell.Builder clearMaterialComponent()
The material components involved in casting the spell. These are included in a parenthetical following the 'M' in the Player's Handbook. Include one entry per component, and include all the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the corpse's eyes, which must remain there for the duration". HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost from the description, and instead include it in the 'cost' field (in units of gp, as you would expect). Set the 'consumed' field only if the spell is consumed. The 'required' field is a little trickier. Set it only if the component is NOT consumed, but playes an essential physical role in the casting of the spell. Search for 'required' in spells.textpb to see existing examples of this.
repeated .ca.isupeene.charactersheet.cdk.MaterialComponent material_component = 11;public Model.Spell.Builder removeMaterialComponent(int index)
The material components involved in casting the spell. These are included in a parenthetical following the 'M' in the Player's Handbook. Include one entry per component, and include all the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the corpse's eyes, which must remain there for the duration". HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost from the description, and instead include it in the 'cost' field (in units of gp, as you would expect). Set the 'consumed' field only if the spell is consumed. The 'required' field is a little trickier. Set it only if the component is NOT consumed, but playes an essential physical role in the casting of the spell. Search for 'required' in spells.textpb to see existing examples of this.
repeated .ca.isupeene.charactersheet.cdk.MaterialComponent material_component = 11;public java.lang.String getMaterialComponentText()
This is used rarely - only if the material component text in the book can't be neatly decomposed into a comma-separated list of components. Search for "material_component_text" in spells.textpb to see the existing examples.
optional string material_component_text = 12;getMaterialComponentText in interface Model.SpellOrBuilderpublic com.google.protobuf.ByteString getMaterialComponentTextBytes()
This is used rarely - only if the material component text in the book can't be neatly decomposed into a comma-separated list of components. Search for "material_component_text" in spells.textpb to see the existing examples.
optional string material_component_text = 12;getMaterialComponentTextBytes in interface Model.SpellOrBuilderpublic Model.Spell.Builder setMaterialComponentText(java.lang.String value)
This is used rarely - only if the material component text in the book can't be neatly decomposed into a comma-separated list of components. Search for "material_component_text" in spells.textpb to see the existing examples.
optional string material_component_text = 12;public Model.Spell.Builder clearMaterialComponentText()
This is used rarely - only if the material component text in the book can't be neatly decomposed into a comma-separated list of components. Search for "material_component_text" in spells.textpb to see the existing examples.
optional string material_component_text = 12;public Model.Spell.Builder setMaterialComponentTextBytes(com.google.protobuf.ByteString value)
This is used rarely - only if the material component text in the book can't be neatly decomposed into a comma-separated list of components. Search for "material_component_text" in spells.textpb to see the existing examples.
optional string material_component_text = 12;public boolean hasDuration()
How long the spell lasts for. You may omit this field if the spell has a duration of 'instantaneous'.
optional .ca.isupeene.charactersheet.cdk.Duration duration = 13;hasDuration in interface Model.SpellOrBuilderpublic Model.Duration getDuration()
How long the spell lasts for. You may omit this field if the spell has a duration of 'instantaneous'.
optional .ca.isupeene.charactersheet.cdk.Duration duration = 13;getDuration in interface Model.SpellOrBuilderpublic Model.Spell.Builder setDuration(Model.Duration value)
How long the spell lasts for. You may omit this field if the spell has a duration of 'instantaneous'.
optional .ca.isupeene.charactersheet.cdk.Duration duration = 13;public Model.Spell.Builder setDuration(Model.Duration.Builder builderForValue)
How long the spell lasts for. You may omit this field if the spell has a duration of 'instantaneous'.
optional .ca.isupeene.charactersheet.cdk.Duration duration = 13;public Model.Spell.Builder mergeDuration(Model.Duration value)
How long the spell lasts for. You may omit this field if the spell has a duration of 'instantaneous'.
optional .ca.isupeene.charactersheet.cdk.Duration duration = 13;public Model.Spell.Builder clearDuration()
How long the spell lasts for. You may omit this field if the spell has a duration of 'instantaneous'.
optional .ca.isupeene.charactersheet.cdk.Duration duration = 13;public boolean getAttackRoll()
Whether the spell involves making a spell attack. You may omit this field if false.
optional bool attack_roll = 14;getAttackRoll in interface Model.SpellOrBuilderpublic Model.Spell.Builder setAttackRoll(boolean value)
Whether the spell involves making a spell attack. You may omit this field if false.
optional bool attack_roll = 14;public Model.Spell.Builder clearAttackRoll()
Whether the spell involves making a spell attack. You may omit this field if false.
optional bool attack_roll = 14;public Model.InfoSource.Builder mutableFullDescription()
This is a submessage indicating where the markdown file for this spell is located.
'type' will always be ASSET for built-in content, and 'asset_path' needs to be set.
'storage_path' should remain unset for built-in content.
repeated InfoSource full_description = 3;public Model.CastingTime.Builder mutableCastingTime()
How long the spell takes to cast.
For reaction spells, the trigger should be included, and phrased as if to complete the
sentence: "You may cast this spell as a reaction {trigger}", and be copied from the
Player's Handbook.
For spells whose casting time is one action, you may omit the casting time.
repeated CastingTime casting_time = 7;public Model.Range.Builder mutableRange()
The range of the spell. You may omit this field if the spell has a range of 'self'.
repeated Range range = 8;public Model.MaterialComponent.Builder mutableMaterialComponent(int i)
The material components involved in casting the spell. These are included in a parenthetical
following the 'M' in the Player's Handbook. Include one entry per component, and include all
the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the
corpse's eyes, which must remain there for the duration".
HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost
from the description, and instead include it in the 'cost' field (in units of gp, as you
would expect).
Set the 'consumed' field only if the spell is consumed.
The 'required' field is a little trickier. Set it only if the component is NOT consumed,
but playes an essential physical role in the casting of the spell. Search for 'required'
in spells.textpb to see existing examples of this.
repeated MaterialComponent material_component = 11;public java.util.stream.Stream<Model.MaterialComponent.Builder> mutableMaterialComponent()
The material components involved in casting the spell. These are included in a parenthetical
following the 'M' in the Player's Handbook. Include one entry per component, and include all
the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the
corpse's eyes, which must remain there for the duration".
HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost
from the description, and instead include it in the 'cost' field (in units of gp, as you
would expect).
Set the 'consumed' field only if the spell is consumed.
The 'required' field is a little trickier. Set it only if the component is NOT consumed,
but playes an essential physical role in the casting of the spell. Search for 'required'
in spells.textpb to see existing examples of this.
repeated MaterialComponent material_component = 11;public Model.Duration.Builder mutableDuration()
How long the spell lasts for. You may omit this field if the spell has a duration of 'instantaneous'.
repeated Duration duration = 13;public Model.Spell.Builder addMaterialComponent(Model.MaterialComponentOrBuilder value)
The material components involved in casting the spell. These are included in a parenthetical
following the 'M' in the Player's Handbook. Include one entry per component, and include all
the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the
corpse's eyes, which must remain there for the duration".
HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost
from the description, and instead include it in the 'cost' field (in units of gp, as you
would expect).
Set the 'consumed' field only if the spell is consumed.
The 'required' field is a little trickier. Set it only if the component is NOT consumed,
but playes an essential physical role in the casting of the spell. Search for 'required'
in spells.textpb to see existing examples of this.
repeated MaterialComponent material_component = 11;public Model.Spell.Builder addAllMaterialComponent(Model.MaterialComponentOrBuilder... values)
The material components involved in casting the spell. These are included in a parenthetical
following the 'M' in the Player's Handbook. Include one entry per component, and include all
the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the
corpse's eyes, which must remain there for the duration".
HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost
from the description, and instead include it in the 'cost' field (in units of gp, as you
would expect).
Set the 'consumed' field only if the spell is consumed.
The 'required' field is a little trickier. Set it only if the component is NOT consumed,
but playes an essential physical role in the casting of the spell. Search for 'required'
in spells.textpb to see existing examples of this.
repeated MaterialComponent material_component = 11;