MCPcopy Create free account
hub / github.com/cuberite/cuberite / StartBurning

Method StartBurning

src/Entities/Entity.cpp:1044–1055  ·  view source on GitHub ↗

Puts the entity on fire for the specified amount of ticks

Source from the content-addressed store, hash-verified

1042
1043/// Puts the entity on fire for the specified amount of ticks
1044void cEntity::StartBurning(int a_TicksLeftBurning)
1045{
1046 if (m_TicksLeftBurning > 0)
1047 {
1048 // Already burning, top up the ticks left burning and bail out:
1049 m_TicksLeftBurning = std::max(m_TicksLeftBurning, a_TicksLeftBurning);
1050 return;
1051 }
1052
1053 m_TicksLeftBurning = a_TicksLeftBurning;
1054 OnStartedBurning();
1055}
1056
1057
1058

Callers 2

OnNextBlockMethod · 0.80
OnHitEntityMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected