LeviLamina
Loading...
Searching...
No Matches
BedBlockActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/ActorUniqueID.h"
7#include "mc/world/level/block/actor/VanillaBlockActor.h"
8
9// auto generated forward declare list
10// clang-format off
11class Block;
13class BlockPos;
14class BlockSource;
15class CompoundTag;
16class DataLoadHelper;
17class ILevel;
19class SaveContext;
20// clang-format on
21
22class BedBlockActor : public ::VanillaBlockActor {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<4, 4, int> mDyeColor;
27 ::ll::TypedStorage<1, 1, bool> mDirty;
28 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPetSleepingOnBed;
29 ::ll::TypedStorage<8, 8, ::Block const&> mBedBlock;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 BedBlockActor& operator=(BedBlockActor const&);
35 BedBlockActor(BedBlockActor const&);
36 BedBlockActor();
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 virtual void tick(::BlockSource& region) /*override*/;
42
43 virtual void onPlace(::BlockSource&) /*override*/;
44
45 virtual void onChanged(::BlockSource&) /*override*/;
46
47 virtual void load(::ILevel& level, ::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper) /*override*/;
48
49 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
50
51 virtual bool saveItemInstanceData(::CompoundTag& tag) const /*override*/;
52
53 virtual ::IVanillaRenderBlockActorComponent*
54 getCrackEntity(::BlockSource& region, ::BlockPos const& pos) /*override*/;
55
56 virtual ::std::string getName() const /*override*/;
57
58 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource&) /*override*/;
59
60 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource& region) /*override*/;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
66 MCAPI void stopSleepingOn(::BlockSource& region, bool forcefulAwake);
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCAPI void $tick(::BlockSource& region);
73
74 MCAPI void $onPlace(::BlockSource&);
75
76 MCAPI void $onChanged(::BlockSource&);
77
78 MCAPI void $load(::ILevel& level, ::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper);
79
80 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
81
82 MCAPI bool $saveItemInstanceData(::CompoundTag& tag) const;
83
84 MCAPI ::IVanillaRenderBlockActorComponent* $getCrackEntity(::BlockSource& region, ::BlockPos const& pos);
85
86 MCAPI ::std::string $getName() const;
87
88 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource&);
89
90 MCFOLD void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
91
92
93 // NOLINTEND
94
95public:
96 // vftables
97 // NOLINTBEGIN
99
101
102 MCNAPI static void** $vftableForBlockActor();
103
105 // NOLINTEND
106};
static MCAPI void ** $vftableForBlockActor()
static MCAPI void ** $vftableForIVanillaMainBlockActorComponent()
static MCAPI void ** $vftableForIVanillaTickBlockActorComponent()
static MCAPI void ** $vftableForIVanillaRenderBlockActorComponent()
Definition BlockActorDataPacket.h:19
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41
Definition CompoundTag.h:18
Definition DataLoadHelper.h:20
Definition ILevel.h:221
Definition IVanillaRenderBlockActorComponent.h:19
Definition SaveContext.h:5