Callbacks

PRE_ENTITY_JUMP

Called before an entity jumps

Return true to cancel the jump if it was not called with the force argument

The passed jump config can be directly modified unless it has the IGNORE_CONFIG_OVERRIDE flag

Callback
Arguments
Return Type

PRE_ENTITY_JUMP

Entity | EntityPlayer entity , PassedJumpConfig config

boolean

POST_ENTITY_JUMP

Called after an entity jumps

Callback
Arguments
Return Type

POST_ENTITY_JUMP

Entity | EntityPlayer entity, PassedJumpConfig config

void

ENTITY_LAND

Called after an entity lands

Not called by JumpLib.QuitJump

Callback
Arguments
Return Type

ENTITY_LAND

Entity | EntityPlayer entity, JumpData data

void

PRE_PITFALL

Called before a player falls into a pit

Return true to cancel

Return false to take no damage

Return an integer to override the damage taken

Callback
Arguments
Return Type

PRE_PITFALL

EntityPlayer player, JumpData data

boolean | int

PRE_PITFALL_HURT

Called before a player takes damage from a pitfall

Return true to take no damage

Return an integer to override the damage taken

Callback
Arguments
Return Type

PRE_PITFALL_HURT

EntityPlayer player, JumpData data, int damage

boolean | int

PITFALL_EXIT

Called after a player exits a pit after falling into it

Callback
Arguments
Return Type

PITFALL_EXIT

EntityPlayer player, JumpData data

void

PRE_ENTITY_SET_FALLSPEED

Called before the speed of an entity's jump is modified

Return true to prevent the speed from being modified

Return float to multiply the speed modifier

Callback
Arguments
Return Type

PRE_ENTITY_SET_FALLSPEED

Entity | EntityPlayer entity, float speed, JumpData data

boolean | float

POST_ENTITY_SET_FALLSPEED

Called after an entity's jump's fallspeed is modified

Callback
Arguments
Return Type

POST_ENTITY_SET_FALLSPEED

Entity | EntityPlayer entity, float speed, JumpData data

void

ENTITY_UPDATE_30

Called 30 times per second for each entity in the air

Callback
Arguments
Return Type

ENTITY_UPDATE_30

Entity | EntityPlayer entity, JumpData data

void

ENTITY_UPDATE_60

Called 60 times per second for each entity in the air

Callback
Arguments
Return Type

ENTITY_UPDATE_60

Entity | EntityPlayer entity, JumpData data

void

PRE_ENTITY_UPDATE

Called 60 times per second for each entity in the air, before ENTITY_UPDATE_60

Return true to cancel the update

Callback
Arguments
Return Type

PRE_ENTITY_UPDATE

Entity | EntityPlayer entity, JumpData data

boolean

Last updated