Class ConstructSpell<T extends MagicConstructEntity>
java.lang.Object
com.binaris.wizardry.api.content.spell.Spell
com.binaris.wizardry.content.spell.abstr.ConstructSpell<T>
- Direct Known Subclasses:
ArrowRain,Boulder,ConstructRangedSpell,Hailstorm,Tornado,ZombieApocalypse
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final booleanprotected booleanFields inherited from class com.binaris.wizardry.api.content.spell.Spell
pitch, pitchVariation, volume -
Constructor Summary
ConstructorsConstructorDescriptionConstructSpell(Function<net.minecraft.world.level.Level, T> constructFactory, boolean permanent) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddConstructExtras(CastContext ctx, T construct, net.minecraft.core.Direction side) booleanbooleanbooleancast(EntityCastContext ctx) booleancast(LocationCastContext ctx) booleancast(PlayerCastContext ctx) floor(boolean requiresFloor) overlap(boolean allowOverlap) protected @NotNull SpellPropertiesbooleanprotected booleanspawnConstruct(CastContext ctx, net.minecraft.world.phys.Vec3 vec3, @Nullable net.minecraft.core.Direction side) 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
-
constructFactory
protected final Function<net.minecraft.world.level.Level,T extends MagicConstructEntity> constructFactory -
permanent
protected final boolean permanent -
requiresFloor
protected boolean requiresFloor -
allowOverlap
protected boolean allowOverlap
-
-
Constructor Details
-
ConstructSpell
-
-
Method Details
-
floor
-
overlap
-
canCastByEntity
public boolean canCastByEntity()- Overrides:
canCastByEntityin classSpell
-
canCastByLocation
public boolean canCastByLocation()- Overrides:
canCastByLocationin classSpell
-
cast
-
cast
-
cast
-
spawnConstruct
protected boolean spawnConstruct(CastContext ctx, net.minecraft.world.phys.Vec3 vec3, @Nullable @Nullable net.minecraft.core.Direction side) -
addConstructExtras
-
requiresPacket
public boolean requiresPacket()- Overrides:
requiresPacketin classSpell
-
properties
- Specified by:
propertiesin classSpell
-