Class GameCondition<Condition>

Type Parameters

Hierarchy

Constructors

  • Type Parameters

    • Condition extends "HasRoomForItem" | "BlockEquals" | "CmdArgEquals" | "SignHasTxt" | "EventBlockEquals" | "CommandEquals" | "EventItemEquals" | "AttackIsCrit" | "ContainerHas" | "BlockPowered" | "HasPlayer" | "ContainerHasAll" | "EventCancelled"

    Parameters

    Returns GameCondition<Condition>

Properties

_componentName: string = "serializable"

The component's name

action: Condition

The action to check for.

args: DFValueType[]

Arguments to pass.

closingBracket: default<"norm", "close"> = ...

Reference property to the closing bracket of this conditional block.

isInverted: boolean = false

If the condition is inverted.

openingBracket: default<"norm", "open"> = ...

Reference property to the opening bracket of this conditional block.

tags: BLTagArray<"if_game", Condition> = ...

The tags of the action on this conditional block.

Remark

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

target: DFTarget = ...

Target of the action.

type: "if_game"

Type of the codeblock.

Methods

  • Parameters

    • raw: RawDFConditionalBlock<"repeat" | "call_func" | "func" | "start_process" | "process" | "player_action" | "if_player" | "control" | "set_var" | "entity_event" | "event" | "if_entity" | "entity_action" | "if_var" | "select_obj" | "game_action" | "else" | "if_game">

    Returns readonly [RawDFConditionalBlock<"repeat" | "call_func" | "func" | "start_process" | "process" | "player_action" | "if_player" | "control" | "set_var" | "entity_event" | "event" | "if_entity" | "entity_action" | "if_var" | "select_obj" | "game_action" | "else" | "if_game">, RawDFBracketBlock<DFBracketBlockType, "open">, DFAnySerializedBlock, RawDFBracketBlock<DFBracketBlockType, "close">]

Generated using TypeDoc