LeviLamina
Loading...
Searching...
No Matches
EntityPlacerItemComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/pub_sub/Subscription.h"
7#include "mc/world/actor/ActorDefinitionIdentifier.h"
8#include "mc/world/item/components/NetworkedItemComponent.h"
9#include "mc/world/level/storage/AllExperiments.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
14class BlockDescriptor;
15class BlockPos;
16class BlockSource;
17class BlockType;
18class ComponentItem;
19class Container;
20class HashedString;
21class ItemStack;
22class SemVersion;
23class Vec3;
25namespace Bedrock::PubSub { class Subscription; }
26namespace SharedTypes::v1_20_50 { struct EntityPlacerItemComponent; }
27namespace cereal { struct ReflectionCtx; }
28// clang-format on
29
30class EntityPlacerItemComponent : public ::NetworkedItemComponent<::EntityPlacerItemComponent> {
31public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<8, 176, ::ActorDefinitionIdentifier> mIdentifier;
35 ::ll::TypedStorage<8, 24, ::std::vector<::BlockDescriptor>> mAllowedUseBlocks;
36 ::ll::TypedStorage<8, 24, ::std::vector<::BlockDescriptor>> mAllowedDispenseBlocks;
37 ::ll::TypedStorage<1, 1, bool> mCanUseOnMonsterSpawners;
38 ::ll::TypedStorage<1, 1, bool> mShouldContentErrorWithoutLiquidClipped;
39 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnUseOnSubscription;
40 // NOLINTEND
41
42public:
43 // prevent constructor by default
45
46public:
47 // virtual functions
48 // NOLINTBEGIN
49 // vIndex: 6
50 virtual void handleVersionBasedInitialization(::SemVersion const& originalJsonVersion) /*override*/;
51
52 // vIndex: 7
53 virtual void _initializeComponent(::ComponentItem& owner) /*override*/;
54
55 // vIndex: 0
56 virtual ~EntityPlacerItemComponent() /*override*/;
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
63
64 MCAPI void _positionAndRotateActor(
65 ::Actor& actor,
66 ::Vec3 position,
67 uchar face,
68 ::Vec3 const& playerFeetPos,
69 ::BlockType const* blockType
70 ) const;
71
72 MCAPI void _setActorCustomName(::Actor& actor, ::ItemStack const& item) const;
73
74 MCAPI void _useOn(
75 bool& result,
76 ::ItemStack const& initialItemStack,
77 ::ItemStack& currentItemStack,
78 ::Actor& usingActor,
79 ::BlockPos const& pos,
80 uchar face,
81 ::Vec3 const& clickPos
82 );
83
84 MCAPI bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
85 // NOLINTEND
86
87public:
88 // static functions
89 // NOLINTBEGIN
90 MCAPI static void bindType(
92 ::std::vector<::AllExperiments> const& requiredToggles,
93 ::std::optional<::SemVersion> releasedMinFormatVersion
94 );
95
96 MCAPI static ::HashedString const& getIdentifier();
97 // NOLINTEND
98
99public:
100 // constructor thunks
101 // NOLINTBEGIN
102 MCAPI void* $ctor(::SharedTypes::v1_20_50::EntityPlacerItemComponent component);
103 // NOLINTEND
104
105public:
106 // destructor thunk
107 // NOLINTBEGIN
108 MCAPI void $dtor();
109 // NOLINTEND
110
111public:
112 // virtual function thunks
113 // NOLINTBEGIN
114 MCAPI void $handleVersionBasedInitialization(::SemVersion const& originalJsonVersion);
115
116 MCAPI void $_initializeComponent(::ComponentItem& owner);
117 // NOLINTEND
118
119public:
120 // vftables
121 // NOLINTBEGIN
122 MCNAPI static void** $vftable();
123 // NOLINTEND
124};
Definition Actor.h:102
Definition BlockDescriptor.h:20
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition BlockType.h:84
Definition ComponentItem.h:53
Definition Container.h:31
Definition EntityPlacerItemComponent.h:30
static MCAPI void ** $vftable()
Definition HashedString.h:5
Definition ItemStack.h:23
Definition NetworkedItemComponent.h:7
Definition SemVersion.h:16
Definition Vec3.h:10
Definition ActorDefinitionIdentifier.h:15
Definition EntityPlacerItemComponent.h:12
Definition ReflectionCtx.h:11
Definition ctx.h:5