Class ArcaneLockSpell
java.lang.Object
com.binaris.wizardry.api.content.spell.Spell
com.binaris.wizardry.content.spell.abstr.RaySpell
com.binaris.wizardry.content.spell.sorcery.ArcaneLockSpell
-
Field Summary
Fields inherited from class com.binaris.wizardry.content.spell.abstr.RaySpell
aimAssist, hitLiquids, ignoreLivingEntities, ignoreUncollidables, particleJitter, particleSpacing, particleVelocity, Y_OFFSETFields inherited from class com.binaris.wizardry.api.content.spell.Spell
pitch, pitchVariation, volume -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanonBlockHit(CastContext ctx, net.minecraft.world.phys.BlockHitResult blockHit, net.minecraft.world.phys.Vec3 origin) protected booleanonEntityHit(CastContext ctx, net.minecraft.world.phys.EntityHitResult entityHit, net.minecraft.world.phys.Vec3 origin) protected booleanonMiss(CastContext ctx, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.phys.Vec3 direction) static voidChecks if a player is allowed to break a block with arcane lock.static voidChecks if a player is allowed to use a block with arcane lock.protected @NotNull SpellPropertiesMethods inherited from class com.binaris.wizardry.content.spell.abstr.RaySpell
aimAssist, canCastByEntity, canCastByLocation, cast, cast, cast, hitLiquids, ignoreLivingEntities, ignoreUncollidables, particleJitter, particleSpacing, particleVelocity, shootSpell, spawnParticle, spawnParticleRayMethods inherited from class com.binaris.wizardry.api.content.spell.Spell
assignProperties, endCast, getAction, getCharge, getCooldown, getCost, getDesc, getDescriptionFormatted, getDescriptionId, getElement, getIcon, getLocation, getLoopSounds, getOrCreateDescriptionId, getOrCreateLocation, getPitch, getPitchVariation, getProperties, getTier, getType, getVolume, hasEnded, is, is, is, isEmpty, isEnabled, isInstantCast, onCharge, playSound, playSound, playSound, playSoundLoop, playSoundLoop, property, requiresPacket, setProperties, soundValues, toString
-
Constructor Details
-
ArcaneLockSpell
public ArcaneLockSpell()
-
-
Method Details
-
onPlayerUseBlock
Checks if a player is allowed to use a block with arcane lock. Called from the block use event listener.- Parameters:
event- The player use block event
-
onPlayerBreakBlock
Checks if a player is allowed to break a block with arcane lock. Called from the block break event listener.- Parameters:
event- The player break block event
-
onBlockHit
protected boolean onBlockHit(CastContext ctx, net.minecraft.world.phys.BlockHitResult blockHit, net.minecraft.world.phys.Vec3 origin) - Specified by:
onBlockHitin classRaySpell
-
onMiss
protected boolean onMiss(CastContext ctx, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.phys.Vec3 direction) -
onEntityHit
protected boolean onEntityHit(CastContext ctx, net.minecraft.world.phys.EntityHitResult entityHit, net.minecraft.world.phys.Vec3 origin) - Specified by:
onEntityHitin classRaySpell
-
properties
- Specified by:
propertiesin classSpell
-