primaryShape
Returns the value of the
primaryShape record component.- Returns:
- the value of the
primaryShaperecord component
parts - A List of all parts. Used mainly for serialization, use the other fields for gameplay.primaryShape - The PrimarySpellShape of the shape group.primaryModifiers - A List of SpellModifiers for the PrimarySpellShape.secondaryShape - The SecondarySpellShape of the shape group.secondaryModifiers - A List of SpellModifiers for the SecondarySpellShape.Spell.MAX_SHAPE_GROUPS different shape groups. All fields are immutable by contract.static final com.mojang.serialization.Codec<SpellShapeGroup> static final SpellShapeGroupstatic final intstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, SpellShapeGroup> SpellShapeGroup(List<SpellPart> parts,
@Nullable PrimarySpellShape primaryShape,
List<SpellModifier> primaryModifiers,
@Nullable SecondarySpellShape secondaryShape,
List<SpellModifier> secondaryModifiers) booleandoublegetManaCost(net.minecraft.core.RegistryAccess registryAccess) inthashCode()booleanbooleanisEmpty()static SpellShapeGroupparts()parts record component.primaryModifiers record component.@Nullable PrimarySpellShapeprimaryShape record component.secondaryModifiers record component.@Nullable SecondarySpellShapesecondaryShape record component.final StringtoString()SpellShapeGroup record class.parts - the value for the parts record componentprimaryShape - the value for the primaryShape record componentprimaryModifiers - the value for the primaryModifiers record componentsecondaryShape - the value for the secondaryShape record componentsecondaryModifiers - the value for the secondaryModifiers record componentparts - The List of SpellParts.SpellShapeGroup, or EMPTY if validation failed.Objects::equals(Object,Object).registryAccess - The RegistryAccess to use.primaryShape record component.primaryShape record componentprimaryModifiers record component.primaryModifiers record componentsecondaryShape record component.secondaryShape record componentsecondaryModifiers record component.secondaryModifiers record component