TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ AnyExtraJumpUsable()

bool Terraria.Player.AnyExtraJumpUsable ( )
inline

Returns true if any extra jump is P:Terraria.DataStructures.ExtraJumpState.Available and M:Terraria.ModLoader.ExtraJump.CanStart(Terraria.Player).
Setting F:Terraria.Player.blockExtraJumps will cause this method to return false instead.

Definition at line 58714 of file Player.cs.

58715 {
58716 if (blockExtraJumps)
58717 {
58718 return false;
58719 }
58721 {
58722 if (GetJumpState(jump).Available && jump.CanStart(this) && PlayerLoader.CanStartExtraJump(jump, this))
58723 {
58724 return true;
58725 }
58726 }
58727 return false;
58728 }
static IReadOnlyList< ExtraJump > OrderedJumps
T:Terraria.ModLoader.ExtraJump is a singleton, defining the properties and behaviour of midair extra ...
Definition ExtraJump.cs:10
static bool CanStartExtraJump(ExtraJump jump, Player player)
This is where all ModPlayer hooks are gathered and called.
bool blockExtraJumps
When true, all extra jumps will be blocked, including Flipper usage. Setting this field to true will...
Definition Player.cs:3362

References Terraria.Player.blockExtraJumps, Terraria.ModLoader.PlayerLoader.CanStartExtraJump(), Terraria.Player.jump, and Terraria.ModLoader.ExtraJumpLoader.OrderedJumps.

Referenced by Terraria.Player.CarpetMovement(), Terraria.Player.JumpMovement(), and Terraria.Player.Update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: