LeviLamina
Loading...
Searching...
No Matches
ExpiringTick.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/Tick.h"
7
8class ExpiringTick {
9public:
10 // member variables
11 // NOLINTBEGIN
12 ::ll::TypedStorage<8, 8, ::Tick> mExpireAtTick;
13 ::ll::TypedStorage<2, 2, ushort> mTicksUntilExpire;
14 // NOLINTEND
15
16public:
17 // prevent constructor by default
18 ExpiringTick();
19
20public:
21 // member functions
22 // NOLINTBEGIN
23 MCAPI ExpiringTick(::Tick currentTick, ushort ticksUntilExpire);
24
25 MCFOLD ::Tick getExpireAtTick() const;
26
27 MCAPI float getNormalizedElapsedTime(::Tick const& currentTick) const;
28
29 MCAPI bool isActive(::Tick currentTick) const;
30
31 MCAPI bool isExpired(::Tick currentTick) const;
32 // NOLINTEND
33
34public:
35 // constructor thunks
36 // NOLINTBEGIN
37 MCAPI void* $ctor(::Tick currentTick, ushort ticksUntilExpire);
38 // NOLINTEND
39};
Definition Tick.h:5