LeviLamina
Loading...
Searching...
No Matches
DropperBlockActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/actor/DispenserBlockActor.h"
7
8// auto generated forward declare list
9// clang-format off
11class BlockPos;
12class BlockSource;
13class CompoundTag;
14class Container;
15class ItemStack;
16class Vec3;
17// clang-format on
18
19class DropperBlockActor : public ::DispenserBlockActor {
20public:
21 // prevent constructor by default
22 DropperBlockActor();
23
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual ::std::string getName() const /*override*/;
28
29 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource&) /*override*/;
30
31 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource&) /*override*/;
32 // NOLINTEND
33
34public:
35 // member functions
36 // NOLINTBEGIN
37 MCAPI explicit DropperBlockActor(::BlockPos pos);
38
39 MCAPI bool _tryPushToComposter(::BlockSource& region, int facingDirection);
40
41 MCAPI ::Container* getAttachedContainer(::BlockSource& region);
42
43 MCAPI bool pushOutItems(::BlockSource& region);
44 // NOLINTEND
45
46public:
47 // static functions
48 // NOLINTBEGIN
49 MCAPI static bool
50 _tryMoveInItemsAndDepleteStack(::Container& container, ::ItemStack& item, int stackSizeLimit, int slot, int face);
51
52 MCAPI static bool
53 addItemsToContainerAndDepleteStack(::Container& container, ::ItemStack& item, int stackSizeLimit, int face);
54
55 MCAPI static ::Container* getContainerAt(::BlockSource& region, ::Vec3 const& pos);
56 // NOLINTEND
57
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCAPI void* $ctor(::BlockPos pos);
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67 MCAPI ::std::string $getName() const;
68
69 MCAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource&);
70
71 MCFOLD void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource&);
72
73
74 // NOLINTEND
75
76public:
77 // vftables
78 // NOLINTBEGIN
80
81 MCNAPI static void** $vftableForContainer();
82 // NOLINTEND
83};
Definition BlockActorDataPacket.h:19
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition CompoundTag.h:23
Definition Container.h:34
static MCAPI void ** $vftableForRandomizableBlockActorContainerBase()
static MCAPI void ** $vftableForContainer()
Definition ItemStack.h:35
Definition Vec3.h:10