Class MinionSpell<T extends net.minecraft.world.entity.Mob>
java.lang.Object
com.binaris.wizardry.api.content.spell.Spell
com.binaris.wizardry.content.spell.abstr.MinionSpell<T>
- Direct Known Subclasses:
SummonIceGiant,SummonSkeleton,SummonSkeletonLegion,SummonWitherSkeleton,SummonZombie
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanFields inherited from class com.binaris.wizardry.api.content.spell.Spell
pitch, pitchVariation, volume -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddMinionExtras(T minion, CastContext ctx, int alreadySpawned) booleanbooleanbooleancast(EntityCastContext ctx) booleancast(LocationCastContext ctx) booleancast(PlayerCastContext ctx) protected TcreateMinion(net.minecraft.world.level.Level world, @Nullable net.minecraft.world.entity.LivingEntity caster, SpellModifiers modifiers) protected booleanextraConditions(CastContext ctx, net.minecraft.core.BlockPos containing) flying(boolean flying) protected @NotNull SpellPropertiesbooleanprotected voidsetLifetime(T minion, int lifetime) setSearchNearbyTargets(boolean searchNearbyTargets) setShouldDeleteGoals(boolean shouldDeleteGoals) setShouldFollowOwner(boolean shouldFollowOwner) protected booleanspawnMinions(CastContext ctx) Methods 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
-
Field Details
-
minionFactory
-
flying
protected boolean flying -
shouldFollowOwner
protected boolean shouldFollowOwner -
shouldDeleteBaseGoals
protected boolean shouldDeleteBaseGoals
-
-
Constructor Details
-
MinionSpell
-
-
Method Details
-
setShouldFollowOwner
-
setShouldDeleteGoals
-
setSearchNearbyTargets
-
flying
-
canCastByLocation
public boolean canCastByLocation()- Overrides:
canCastByLocationin classSpell
-
canCastByEntity
public boolean canCastByEntity()- Overrides:
canCastByEntityin classSpell
-
cast
-
cast
-
cast
-
spawnMinions
-
setLifetime
-
createMinion
protected T createMinion(net.minecraft.world.level.Level world, @Nullable @Nullable net.minecraft.world.entity.LivingEntity caster, SpellModifiers modifiers) -
addMinionExtras
-
extraConditions
-
requiresPacket
public boolean requiresPacket()- Overrides:
requiresPacketin classSpell
-
properties
- Specified by:
propertiesin classSpell
-