Skip to content

Class "EntityKnife"⚓︎

Class Diagram⚓︎

    classDiagram
    class Entity:::diagramCurrentPage
    class EntityBomb
    class EntityEffect
    class EntityFamiliar
    class EntityKnife
    class EntityLaser
    class EntityNPC
    class EntityPickup
    class EntityPlayer
    class EntityProjectile
    class EntitySlot
    class EntityTear
    Entity <|-- EntityBomb
    Entity <|-- EntityEffect
    Entity <|-- EntityFamiliar
    Entity <|-- EntityKnife
    Entity <|-- EntityLaser
    Entity <|-- EntityNPC
    Entity <|-- EntityPickup
    Entity <|-- EntityPlayer
    Entity <|-- EntityProjectile
    Entity <|-- EntitySlot
    Entity <|-- EntityTear
    link Entity "https://wofsauge.github.io/IsaacDocs/rep/Entity.html" "Go to page for 'Entity' class"
    link EntityBomb "https://wofsauge.github.io/IsaacDocs/rep/EntityBomb.html" "Go to page for 'EntityBomb' class"
    link EntityEffect "https://wofsauge.github.io/IsaacDocs/rep/EntityEffect.html" "Go to page for 'EntityEffect' class"
    link EntityFamiliar "https://wofsauge.github.io/IsaacDocs/rep/EntityFamiliar.html" "Go to page for 'EntityFamiliar' class"
    link EntityKnife "https://wofsauge.github.io/IsaacDocs/rep/EntityKnife.html" "Go to page for 'EntityKnife' class"
    link EntityLaser "EntityLaser.html" "Go to page for 'EntityLaser' class"
    link EntityNPC "EntityNPC.html" "Go to page for 'EntityNPC' class"
    link EntityPickup "EntityPickup.html" "Go to page for 'EntityPickup' class"
    link EntityPlayer "EntityPlayer.html" "Go to page for 'EntityPlayer' class"
    link EntityProjectile "https://wofsauge.github.io/IsaacDocs/rep/EntityProjectile.html" "Go to page for 'EntityProjectile' class"
    link EntitySlot "EntitySlot.html" "Go to page for 'EntitySlot' class"
    link EntityTear "https://wofsauge.github.io/IsaacDocs/rep/EntityTear.html" "Go to page for 'EntityTear' class"

Functions⚓︎

FireSplitTear ()⚓︎

EntityTear FireSplitTear ( Vector Position, Vector Velocity, float DamageMultiplier = 0.5, float SizeMultiplier = 0.6, int Variant = 0, SplitTearType splitType = SplitTearType.SPLIT_GENERIC )⚓︎

Fire a new tear that inherits many attributes from this knife (flags, damage, size, color, etc).

This will also trigger the MC_POST_FIRE_SPLIT_TEAR callback. For custom effects, a string may be passed in place of the SplitTearType.


GetHitboxParentKnife ()⚓︎

EntityKnife GetHitboxParentKnife ( )⚓︎

For a "hitbox" EntityKnife (KnifeSubType.CLUB_HITBOX) created by melee weapon "swings" (Bone Club, Spirit Sword, etc) this function returns the "main" EntityKnife of that melee weapon. Returns nil otherwise, and will return nil for hitbox entities spawned via other means.


GetHitList ()⚓︎

int[] GetHitList ( )⚓︎

Returns an array of hit entities using their Index field.


GetIsSpinAttack ()⚓︎

boolean GetIsSpinAttack ( )⚓︎


GetIsSwinging ()⚓︎

boolean GetIsSwinging ( )⚓︎


IsMultidimensionalTouched ()⚓︎

boolean IsMultidimensionalTouched ( )⚓︎

Returns if the knife was created through the Multi Dimensional Baby effect.


IsPrismTouched ()⚓︎

boolean IsPrismTouched ( )⚓︎

Returns if the knife was created through the Angelic Prism effect.


SetHitboxParentKnife ()⚓︎

void SetHitboxParentKnife ( EntityKnife Knife )⚓︎

Allows setting a custom value for GetHitboxParentKnife, which is intended to only be used for a "hitbox" EntityKnife (KnifeSubType.CLUB_HITBOX) to refer to the "main" EntityKnife of a melee weapon (Bone Club, Spirit Sword, etc).

Note that setting this has no influence on any vanilla logic - this reference is only for the convenience of modders. Please use appropriately.


SetIsSpinAttack ()⚓︎

void SetIsSpinAttack ( boolean isSpinAttack )⚓︎


SetIsSwinging ()⚓︎

void SetIsSwinging ( boolean isSwinging )⚓︎


SetMultidimensionalTouched ()⚓︎

void SetMultidimensionalTouched ( boolean IsTouched )⚓︎

Sets if the knife was created through the Angelic Prism effect.


SetPrismTouched ()⚓︎

void SetPrismTouched ( boolean IsTouched )⚓︎

Sets if the knife was created through the Angelic Prism effect.