Class GEMINO
java.lang.Object
net.pottercraft.ollivanders2.spell.O2Spell
net.pottercraft.ollivanders2.spell.ItemEnchant
net.pottercraft.ollivanders2.spell.GEMINO
GEMINO duplication spell implementation.
GEMINO is a dark arts spell that enchants an item with the Doubling Curse. When a player picks up a GEMINO-enchanted item, it duplicates exponentially (2^magnitude copies), potentially filling containers and overwhelming the player with copies.
Spell mechanics:
- Strength: 0.25x modifier multiplier
- Max magnitude: 10 (produces 2^10 = 1024 copies at maximum)
- Classification: Dark Arts
- See Also:
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.spell.ItemEnchant
enchantmentType, itemTypeAllowlist, o2ItemTypeAllowListFields inherited from class net.pottercraft.ollivanders2.spell.O2Spell
branch, cooldownMessage, defaultRadius, flavorText, isAllowedFailureMessage, location, maxProjectileDistance, maxSpellLifetime, noProjectile, player, rightWand, spellMasteryLevel, spellType, text, usesModifier, vector -
Constructor Summary
ConstructorsConstructorDescriptionGEMINO(@NotNull Ollivanders2 plugin, @NotNull org.bukkit.entity.Player player, @NotNull Double rightWand) Constructor for casting the GEMINO duplication spell.GEMINO(Ollivanders2 plugin) Constructor for generating spell information (spell name, text, lore). -
Method Summary
Methods inherited from class net.pottercraft.ollivanders2.spell.ItemEnchant
alterItem, alterItem, canBeEnchanted, canBeEnchanted, checkEffect, doCheckEffect, enchantHeldItem, initEnchantmentArgsMethods inherited from class net.pottercraft.ollivanders2.spell.O2Spell
getCloseEntities, getCoolDown, getFailureMessage, getFlavorText, getLevel, getLifeTicks, getMagicBranch, getName, getNearbyDamageableEntities, getNearbyItems, getNearbyLivingEntities, getNearbyPlayers, getSuccessMessage, getTargetBlock, getText, getWorldGuardFlags, hasHitTarget, isAtMaxDistance, isKilled, isSpellAllowed, kill, move, revert, sendFailureMessage, sendSuccessMessage, setUsesModifier
-
Constructor Details
-
GEMINO
Constructor for generating spell information (spell name, text, lore).This constructor initializes the spell with flavor text and description but does not perform any actual spell casting. Use the full constructor with player and wand parameters to cast the spell.
- Parameters:
plugin- the Ollivanders2 plugin instance
-
GEMINO
public GEMINO(@NotNull @NotNull Ollivanders2 plugin, @NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull Double rightWand) Constructor for casting the GEMINO duplication spell.Initializes the spell with the player and wand information needed to cast and track the spell. Spell magnitude is calculated based on player skill modifiers and wand strength.
- Parameters:
plugin- the Ollivanders2 plugin instanceplayer- the player casting this spellrightWand- the wand strength/power modifier (1.0 = normal, higher = more powerful)
-