public static final class Model.Spell extends com.google.protobuf.GeneratedMessageLite<Model.Spell,Model.Spell.Builder> implements Model.SpellOrBuilder
ca.isupeene.charactersheet.cdk.Spell| Modifier and Type | Class and Description |
|---|---|
static class |
Model.Spell.Builder
Protobuf type
ca.isupeene.charactersheet.cdk.Spell |
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MergeFromVisitor, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm, com.google.protobuf.GeneratedMessageLite.Visitor| Modifier and Type | Field and Description |
|---|---|
static int |
ATTACK_ROLL_FIELD_NUMBER |
static int |
CASTING_TIME_FIELD_NUMBER |
static int |
DURATION_FIELD_NUMBER |
static int |
FULL_DESCRIPTION_FIELD_NUMBER |
static int |
HAS_SOMATIC_COMPONENT_FIELD_NUMBER |
static int |
HAS_VERBAL_COMPONENT_FIELD_NUMBER |
static int |
LEVEL_FIELD_NUMBER |
static int |
MATERIAL_COMPONENT_FIELD_NUMBER |
static int |
MATERIAL_COMPONENT_TEXT_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
RANGE_FIELD_NUMBER |
static int |
RITUAL_FIELD_NUMBER |
static int |
SCHOOL_FIELD_NUMBER |
static int |
SHORT_DESCRIPTION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0,
java.lang.Object arg1) |
boolean |
getAttackRoll()
Whether the spell involves making a spell attack.
|
Model.CastingTime |
getCastingTime()
How long the spell takes to cast.
|
static Model.Spell |
getDefaultInstance() |
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.
|
Model.MaterialComponentOrBuilder |
getMaterialComponentOrBuilder(int index)
The material components involved in casting the spell.
|
java.util.List<? extends Model.MaterialComponentOrBuilder> |
getMaterialComponentOrBuilderList()
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.
|
int |
getSerializedSize() |
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.
|
static Model.Spell.Builder |
newBuilder() |
static Model.Spell.Builder |
newBuilder(Model.Spell prototype) |
static Model.Spell |
parseDelimitedFrom(java.io.InputStream input) |
static Model.Spell |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Model.Spell |
parseFrom(byte[] data) |
static Model.Spell |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Model.Spell |
parseFrom(com.google.protobuf.ByteString data) |
static Model.Spell |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Model.Spell |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Model.Spell |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Model.Spell |
parseFrom(java.io.InputStream input) |
static Model.Spell |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Model.Spell> |
parser() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, hashCode, isInitialized, isInitialized, makeImmutable, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, toBuilder, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic static final int NAME_FIELD_NUMBER
public static final int SHORT_DESCRIPTION_FIELD_NUMBER
public static final int FULL_DESCRIPTION_FIELD_NUMBER
public static final int LEVEL_FIELD_NUMBER
public static final int SCHOOL_FIELD_NUMBER
public static final int RITUAL_FIELD_NUMBER
public static final int CASTING_TIME_FIELD_NUMBER
public static final int RANGE_FIELD_NUMBER
public static final int HAS_VERBAL_COMPONENT_FIELD_NUMBER
public static final int HAS_SOMATIC_COMPONENT_FIELD_NUMBER
public static final int MATERIAL_COMPONENT_FIELD_NUMBER
public static final int MATERIAL_COMPONENT_TEXT_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER
public static final int ATTACK_ROLL_FIELD_NUMBER
public 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 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 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 int getLevel()
The level of the spell. 0 for cantrips.
optional int32 level = 4;getLevel in interface Model.SpellOrBuilderpublic 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.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 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 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 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 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 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 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 java.util.List<? extends Model.MaterialComponentOrBuilder> getMaterialComponentOrBuilderList()
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 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.MaterialComponentOrBuilder getMaterialComponentOrBuilder(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 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 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 void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitejava.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitepublic static Model.Spell parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Model.Spell parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Model.Spell parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Model.Spell parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Model.Spell parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Model.Spell parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Model.Spell parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Model.Spell parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Model.Spell parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Model.Spell parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Model.Spell.Builder newBuilder()
public static Model.Spell.Builder newBuilder(Model.Spell prototype)
protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0,
java.lang.Object arg1)
dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Model.Spell,Model.Spell.Builder>public static Model.Spell getDefaultInstance()
public static com.google.protobuf.Parser<Model.Spell> parser()