Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
VaultBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/Flip.h"
7#include "mc/world/level/block/ActorBlockBase.h"
8#include "mc/world/level/block/BlockType.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class Block;
14class BlockPos;
15class Vec3;
16struct Brightness;
17namespace BlockEvents { class BlockPlayerInteractEvent; }
18// clang-format on
19
20class VaultBlock : public ::ActorBlock {
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 virtual ::Brightness getLightEmission(::Block const& block) const /*override*/;
25
26 virtual bool isInteractiveBlock() const /*override*/;
27
28 virtual ::Block const&
29 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
30 /*override*/;
31
32 virtual int getVariant(::Block const& block) const /*override*/;
33
34 virtual ::Block const& getRenderBlock() const /*override*/;
35
36 virtual uchar getMappedFace(uchar face, ::Block const& block) const /*override*/;
37
38 virtual ::Flip getFaceFlip(uchar face, ::Block const& block) const /*override*/;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCNAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
45 // NOLINTEND
46
47public:
48 // virtual function thunks
49 // NOLINTBEGIN
50 MCNAPI ::Brightness $getLightEmission(::Block const& block) const;
51
52 MCNAPI bool $isInteractiveBlock() const;
53
54 MCNAPI ::Block const& $getPlacementBlock(
55 ::Actor const& by,
56 ::BlockPos const& pos,
57 uchar face,
58 ::Vec3 const& clickPos,
59 int itemValue
60 ) const;
61
62 MCNAPI int $getVariant(::Block const& block) const;
63
64 MCNAPI ::Block const& $getRenderBlock() const;
65
66 MCNAPI uchar $getMappedFace(uchar face, ::Block const& block) const;
67
68 MCNAPI ::Flip $getFaceFlip(uchar face, ::Block const& block) const;
69
70
71 // NOLINTEND
72
73public:
74 // vftables
75 // NOLINTBEGIN
76 MCNAPI static void** $vftable();
77 // NOLINTEND
78};
Definition Actor.h:116
Definition BlockPlayerInteractEvent.h:18
Definition BlockPos.h:14
Definition Block.h:42
Definition VaultBlock.h:20
static MCAPI void ** $vftable()
MCAPI void use(::BlockEvents::BlockPlayerInteractEvent &eventData) const
MCAPI::Brightness $getLightEmission(::Block const &block) const
MCAPI int $getVariant(::Block const &block) const
MCAPI bool $isInteractiveBlock() const
MCAPI::Block const & $getPlacementBlock(::Actor const &by, ::BlockPos const &pos, uchar face, ::Vec3 const &clickPos, int itemValue) const
MCAPI::Flip $getFaceFlip(uchar face, ::Block const &block) const
MCAPI uchar $getMappedFace(uchar face, ::Block const &block) const
MCAPI::Block const & $getRenderBlock() const
Definition Vec3.h:10
Definition Brightness.h:8