Class SummonZombie
java.lang.Object
com.binaris.wizardry.api.content.spell.Spell
com.binaris.wizardry.content.spell.abstr.MinionSpell<net.minecraft.world.entity.monster.Zombie>
com.binaris.wizardry.content.spell.necromancy.SummonZombie
-
Field Summary
Fields inherited from class com.binaris.wizardry.content.spell.abstr.MinionSpell
flying, HEALTH_MODIFIER, minionFactory, POTENCY_ATTRIBUTE_MODIFIER, shouldDeleteBaseGoals, shouldFollowOwnerFields inherited from class com.binaris.wizardry.api.content.spell.Spell
pitch, pitchVariation, volume -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.world.entity.monster.ZombiecreateMinion(net.minecraft.world.level.Level world, @Nullable net.minecraft.world.entity.LivingEntity caster, SpellModifiers modifiers) Creates the minion entity.protected @NotNull SpellPropertiesThis method is where you should set the default properties for your spell when creating a new spell class.Methods inherited from class com.binaris.wizardry.content.spell.abstr.MinionSpell
addMinionExtras, canCastByEntity, canCastByLocation, cast, cast, cast, extraConditions, flying, requiresPacket, setLifetime, setSearchNearbyTargets, setShouldDeleteGoals, setShouldFollowOwner, spawnMinionsMethods inherited from class com.binaris.wizardry.api.content.spell.Spell
assignProperties, endCast, equals, getAction, getChargeUp, getCooldown, getCost, getDesc, getDescriptionFormatted, getDescriptionId, getElement, getIcon, getLocation, getLoopSounds, getOrCreateDescriptionId, getOrCreateLocation, getPitch, getPitchVariation, getProperties, getTier, getType, getVolume, isEnabled, isInstantCast, onCharge, playSound, playSound, playSound, playSoundLoop, playSoundLoop, property, soundValues, toString
-
Constructor Details
-
SummonZombie
public SummonZombie()
-
-
Method Details
-
createMinion
protected net.minecraft.world.entity.monster.Zombie createMinion(net.minecraft.world.level.Level world, @Nullable @Nullable net.minecraft.world.entity.LivingEntity caster, SpellModifiers modifiers) Description copied from class:MinionSpellCreates the minion entity. This is called during the casting process, and allows you to modify the minion before it is added to the world by applying modifiers or passing the caster as an argument. By default, this just calls the minion factory, but it can be overridden to provide more complex behavior.- Overrides:
createMinionin classMinionSpell<net.minecraft.world.entity.monster.Zombie>- Parameters:
world- The world the minion is being created in.caster- The caster of the spell, if available. This may be null if the spell is being cast by a non-entity or if the caster is not available for some reason.modifiers- The spell modifiers that may affect the minion's attributes or behavior.- Returns:
- The created minion entity.
-
properties
Description copied from class:SpellThis method is where you should set the default properties for your spell when creating a new spell class. This method is called in the constructor of the Spell class, and the properties returned by this method are assigned to the spell's properties field.- Overrides:
propertiesin classMinionSpell<net.minecraft.world.entity.monster.Zombie>- Returns:
- A SpellProperties object with the default properties for your spell.
-