API reference / @jsprismarine/prismarine / entity/data/itemSteering / ItemSteering
Class: ItemSteering
Defined in: packages/prismarine/src/entity/data/itemSteering.ts:16
One mount's boost.
Constructors
Constructor
new ItemSteering():
ItemSteering
Returns
ItemSteering
Accessors
boosting
Get Signature
get boosting():
boolean
Defined in: packages/prismarine/src/entity/data/itemSteering.ts:22
Whether a boost is running.
Returns
boolean
boostTicks
Get Signature
get boostTicks():
number
Defined in: packages/prismarine/src/entity/data/itemSteering.ts:27
How long the running boost lasts in all, in ticks, or 0 when none runs.
Returns
number
Methods
boost()
boost(
nextInt):boolean
Defined in: packages/prismarine/src/entity/data/itemSteering.ts:37
Starts a boost unless one is running, ItemBasedSteering.boost.
Parameters
nextInt
(bound) => number
Draws a whole number in [0, bound).
Returns
boolean
Whether a boost started.
boostFactor()
boostFactor():
number
Defined in: packages/prismarine/src/entity/data/itemSteering.ts:53
The share of the ridden speed the boost gives now, ItemBasedSteering.boostFactor.
Returns
number
tick()
tick():
void
Defined in: packages/prismarine/src/entity/data/itemSteering.ts:46
Advances the running boost one tick, as ItemBasedSteering.tickBoost does.
Returns
void