LeviLamina
Loading...
Searching...
No Matches
ItemFrameBlockActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/ecs/WeakEntityRef.h"
7#include "mc/world/item/ClockSpriteCalculator.h"
8#include "mc/world/item/CompassSpriteCalculator.h"
9#include "mc/world/item/ItemInstance.h"
10#include "mc/world/level/block/actor/BlockActor.h"
11#include "mc/world/level/block/actor/BlockActorType.h"
12#include "mc/world/level/block/states/BlockStateVariant.h"
13
14// auto generated forward declare list
15// clang-format off
16class Actor;
17class BlockActorDataPacket;
18class BlockPos;
19class BlockSource;
20class CompoundTag;
21class DataLoadHelper;
22class HashedString;
23class ILevel;
24class SaveContext;
25// clang-format on
26
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<4, 12, ::ClockSpriteCalculator> mClockSpriteCalc;
32 ::ll::TypedStorage<8, 32, ::CompassSpriteCalculator> mCompassSpriteCalc;
33 ::ll::TypedStorage<8, 32, ::CompassSpriteCalculator> mRecoveryCompassSpriteCalc;
34 ::ll::TypedStorage<1, 1, bool> mInstantClockCalculatorUpdate;
35 ::ll::TypedStorage<8, 128, ::ItemInstance> mItem;
36 ::ll::TypedStorage<4, 4, float> mDropChance;
37 ::ll::TypedStorage<4, 4, float> mRotation;
38 ::ll::TypedStorage<1, 1, bool> mUpgradeMapBit;
39 ::ll::TypedStorage<1, 1, bool> mUpgradePhotoBit;
40 ::ll::TypedStorage<1, 1, bool> mRefreshMap;
41 ::ll::TypedStorage<8, 24, ::WeakEntityRef> mDisplayEntity;
42 ::ll::TypedStorage<1, 1, bool> mIgnoreLighting;
43 // NOLINTEND
44
45public:
46 // prevent constructor by default
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 // vIndex: 9
53 virtual void tick(::BlockSource& region) /*override*/;
54
55 // vIndex: 1
56 virtual void load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
57
58 // vIndex: 2
59 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
60
61 // vIndex: 19
62 virtual float getShadowRadius(::BlockSource&) const /*override*/;
63
64 // vIndex: 10
65 virtual void onChanged(::BlockSource& region) /*override*/;
66
67 // vIndex: 13
68 virtual void onRemoved(::BlockSource& region) /*override*/;
69
70 // vIndex: 41
71 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource&) /*override*/;
72
73 // vIndex: 42
74 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource& region) /*override*/;
75
76 // vIndex: 0
77 virtual ~ItemFrameBlockActor() /*override*/;
78 // NOLINTEND
79
80public:
81 // member functions
82 // NOLINTBEGIN
83 MCAPI ItemFrameBlockActor(::BlockPos const& pos, ::BlockActorType type);
84
85 MCAPI void _checkMapRemoval(::BlockSource& region, ::ItemInstance& item);
86
87 MCAPI void
88 _updateBit(::BlockSource& region, ::BlockStateVariant<bool> const& vanillaState, ::HashedString const& itemName);
89
90 MCAPI void actuallyDropItem(::BlockSource& region, bool dropItem, ::Actor* entitySource);
91
92 MCAPI void dropFramedItem(::BlockSource& region, bool dropItem, ::Actor* entitySource);
93
94 MCAPI void setItem(::BlockSource& region, ::ItemInstance const& item, ::Actor* entitySource);
95
96 MCAPI void updateNameTag();
97 // NOLINTEND
98
99public:
100 // static variables
101 // NOLINTBEGIN
102 MCAPI static float const& ROTATION_DEGREES();
103 // NOLINTEND
104
105public:
106 // constructor thunks
107 // NOLINTBEGIN
108 MCAPI void* $ctor(::BlockPos const& pos, ::BlockActorType type);
109 // NOLINTEND
110
111public:
112 // destructor thunk
113 // NOLINTBEGIN
114 MCAPI void $dtor();
115 // NOLINTEND
116
117public:
118 // virtual function thunks
119 // NOLINTBEGIN
120 MCAPI void $tick(::BlockSource& region);
121
122 MCAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
123
124 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
125
126 MCFOLD float $getShadowRadius(::BlockSource&) const;
127
128 MCFOLD void $onChanged(::BlockSource& region);
129
130 MCAPI void $onRemoved(::BlockSource& region);
131
132 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource&);
133
134 MCFOLD void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
135 // NOLINTEND
136
137public:
138 // vftables
139 // NOLINTBEGIN
140 MCNAPI static void** $vftable();
141 // NOLINTEND
142};
Definition Actor.h:102
Definition BlockActor.h:32
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition BlockStateVariant.h:7
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition HashedString.h:5
Definition ILevel.h:207
Definition ItemFrameBlockActor.h:27
static MCAPI void ** $vftable()
Definition ItemInstance.h:15
Definition SaveContext.h:5