Class EntityAction<Action>

Type Parameters

Hierarchy

Constructors

  • Used to do something related to an entity or multiple entities.

    Type Parameters

    • Action extends "SetVelocity" | "Damage" | "SendAnimation" | "Heal" | "LaunchUp" | "SetMaxHealth" | "ClearPotions" | "ProjColl" | "SetInvulTicks" | "SetAbsorption" | "SetFireTicks" | "SetFreezeTicks" | "SetGliding" | "SetRotation" | "RideEntity" | "SetHandItem" | "Teleport" | "LaunchToward" | "SetArmor" | "SetVisualFire" | "LaunchProj" | "NoProjColl" | "GivePotion" | "SetHealth" | "MobDisguise" | "BlockDisguise" | "SetCollidable" | "LaunchFwd" | "SetFallDistance" | "SetEquipment" | "AttackAnimation" | "RemovePotion" | "PlayerDisguise" | "Undisguise" | "SetNameColor" | "Jump" | "DispRotationEuler" | "SetParrotColor" | "DispTranslation" | "Remove" | "TDispBackground" | "DisplayCullingSize" | "SetGlowSquidDark" | "HideName" | "SetFrogType" | "DispRotAxisAngle" | "SetSheepSheared" | "SetMobSitting" | "SetAxolotlColor" | "DisableGlowing" | "SetWardenAnger" | "SetHorsePattern" | "SetAI" | "SetRiptiding" | "SetProjSource" | "SetFoxLeaping" | "SetItemOwner" | "SetPandaGene" | "SetDyeColor" | "SetAge" | "SetFishingTime" | "EndCrystalBeam" | "FrogEat" | "DisplayBrightness" | "SetProfession" | "NoGravity" | "SetArmsRaised" | "ArmorStandParts" | "SetInvulnerable" | "ArmorStandTags" | "SetPickupDelay" | "SetTarget" | "DropItems" | "TDisplayShadow" | "SetCreeperPower" | "SetMarker" | "RemoveCustomTag" | "SetNameVisible" | "SetPose" | "SetRearing" | "CreeperCharged" | "SetCloudRadius" | "SetGravity" | "SetName" | "SetWitherInvul" | "BDisplayBlock" | "Silence" | "TDisplaySeeThru" | "DisplayShadow" | "InteractResponse" | "UseItem" | "SetFishPattern" | "DisplayMatrix" | "NoDrops" | "DispInterpolation" | "EnableGlowing" | "SetEndermanBlock" | "DisplayGlowColor" | "SetAge/Size" | "GetCustomTag" | "InteractionSize" | "LSetArmor" | "SetCatType" | "SetSaddle" | "SetBulletTarget" | "DisplayScale" | "TDisplayLineWidth" | "TDisplayAlign" | "SetDragonPhase" | "SetLlamaColor" | "SetVillagerBiome" | "SetCreeperFuse" | "EnableAI" | "SetBaby" | "MooshroomType" | "SetInvisible" | "DisplayBillboard" | "SheepEat" | "SetCatResting" | "SetGoatHorns" | "Tame" | "SetGlowing" | "SetGoatScreaming" | "IDisplayModelType" | "SetMinecartBlock" | "FoxSleeping" | "ArmorStandPose" | "MoveToLoc" | "TDisplayOpacity" | "IDisplayItem" | "SetSilenced" | "SetBeeNectar" | "AttachLead" | "SnowmanPumpkin" | "SetCustomTag" | "Gravity" | "ShearSheep" | "ArmorStandSlots" | "SetAllayDancing" | "SetRabbitType" | "DisplayViewRange" | "SetSize" | "NoAI" | "ShowName" | "SetAngry" | "SetItem" | "Explode" | "SetDigging" | "MoveTo" | "SetDeathDrops" | "SetPersistent" | "SetVillagerExp" | "IgniteCreeper" | "SetCelebrating" | "ProjectileItem" | "TDisplayText" | "SetHorseJump" | "Unsilence" | "SetCarryingChest" | "Ram" | "SetFoxType"

    Parameters

    • action: Action

      Action to perform.

    • Optional target: DFTarget
    • Rest ...args: DFValueType[]

      Arguments to pass.

    Returns EntityAction<Action>

Properties

_componentName: string = "serializable"

The component's name

action: Action

The action to perform.

args: DFValueType[]

Arguments to pass.

isInverted: boolean = false

If the codeblock is inverted (mostly for conditional blocks).

tags: BLTagArray<"entity_action", Action> = ...

The tags of the action on this action block.

Remark

Will be an empty array if the action has no tags.

target: DFTarget = ...

The target for the action.

type: "entity_action"

Type of the codeblock.

Methods

  • Serialize the object into a readable DiamondFire format.

    Returns

    DiamondFire codeblock object.

    Returns RawDFActionBlock<"entity_action", "SetVelocity" | "Damage" | "SendAnimation" | "Heal" | "LaunchUp" | "SetMaxHealth" | "ClearPotions" | "ProjColl" | "SetInvulTicks" | "SetAbsorption" | "SetFireTicks" | "SetFreezeTicks" | "SetGliding" | "SetRotation" | "RideEntity" | "SetHandItem" | "Teleport" | "LaunchToward" | "SetArmor" | "SetVisualFire" | "LaunchProj" | "NoProjColl" | "GivePotion" | "SetHealth" | "MobDisguise" | "BlockDisguise" | "SetCollidable" | "LaunchFwd" | "SetFallDistance" | "SetEquipment" | "AttackAnimation" | "RemovePotion" | "PlayerDisguise" | "Undisguise" | "SetNameColor" | "Jump" | "DispRotationEuler" | "SetParrotColor" | "DispTranslation" | "Remove" | "TDispBackground" | "DisplayCullingSize" | "SetGlowSquidDark" | "HideName" | "SetFrogType" | "DispRotAxisAngle" | "SetSheepSheared" | "SetMobSitting" | "SetAxolotlColor" | "DisableGlowing" | "SetWardenAnger" | "SetHorsePattern" | "SetAI" | "SetRiptiding" | "SetProjSource" | "SetFoxLeaping" | "SetItemOwner" | "SetPandaGene" | "SetDyeColor" | "SetAge" | "SetFishingTime" | "EndCrystalBeam" | "FrogEat" | "DisplayBrightness" | "SetProfession" | "NoGravity" | "SetArmsRaised" | "ArmorStandParts" | "SetInvulnerable" | "ArmorStandTags" | "SetPickupDelay" | "SetTarget" | "DropItems" | "TDisplayShadow" | "SetCreeperPower" | "SetMarker" | "RemoveCustomTag" | "SetNameVisible" | "SetPose" | "SetRearing" | "CreeperCharged" | "SetCloudRadius" | "SetGravity" | "SetName" | "SetWitherInvul" | "BDisplayBlock" | "Silence" | "TDisplaySeeThru" | "DisplayShadow" | "InteractResponse" | "UseItem" | "SetFishPattern" | "DisplayMatrix" | "NoDrops" | "DispInterpolation" | "EnableGlowing" | "SetEndermanBlock" | "DisplayGlowColor" | "SetAge/Size" | "GetCustomTag" | "InteractionSize" | "LSetArmor" | "SetCatType" | "SetSaddle" | "SetBulletTarget" | "DisplayScale" | "TDisplayLineWidth" | "TDisplayAlign" | "SetDragonPhase" | "SetLlamaColor" | "SetVillagerBiome" | "SetCreeperFuse" | "EnableAI" | "SetBaby" | "MooshroomType" | "SetInvisible" | "DisplayBillboard" | "SheepEat" | "SetCatResting" | "SetGoatHorns" | "Tame" | "SetGlowing" | "SetGoatScreaming" | "IDisplayModelType" | "SetMinecartBlock" | "FoxSleeping" | "ArmorStandPose" | "MoveToLoc" | "TDisplayOpacity" | "IDisplayItem" | "SetSilenced" | "SetBeeNectar" | "AttachLead" | "SnowmanPumpkin" | "SetCustomTag" | "Gravity" | "ShearSheep" | "ArmorStandSlots" | "SetAllayDancing" | "SetRabbitType" | "DisplayViewRange" | "SetSize" | "NoAI" | "ShowName" | "SetAngry" | "SetItem" | "Explode" | "SetDigging" | "MoveTo" | "SetDeathDrops" | "SetPersistent" | "SetVillagerExp" | "IgniteCreeper" | "SetCelebrating" | "ProjectileItem" | "TDisplayText" | "SetHorseJump" | "Unsilence" | "SetCarryingChest" | "Ram" | "SetFoxType">

Generated using TypeDoc