LeviLamina
Loading...
Searching...
No Matches
DragonEggBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/FallingBlock.h"
7
8// auto generated forward declare list
9// clang-format off
10class BaseGameVersion;
11class Block;
12class BlockPos;
13class BlockSource;
14class Player;
15class Random;
16namespace BlockEvents { class BlockPlayerInteractEvent; }
17namespace mce { class Color; }
18// clang-format on
19
20class DragonEggBlock : public ::FallingBlock {
21public:
22 // prevent constructor by default
23 DragonEggBlock();
24
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual ::mce::Color getDustColor(::Block const&) const /*override*/;
29
30 virtual ::std::string getDustParticleName(::Block const&) const /*override*/;
31
32 virtual bool attack(::Player* player, ::BlockPos const& pos) const /*override*/;
33
34 virtual bool breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const /*override*/;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI DragonEggBlock(::std::string const& nameId, int id);
41
42 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
43 // NOLINTEND
44
45public:
46 // static functions
47 // NOLINTBEGIN
48 MCAPI static void _attemptTeleport(::BlockSource& region, ::Random& random, ::BlockPos const& pos);
49 // NOLINTEND
50
51public:
52 // constructor thunks
53 // NOLINTBEGIN
54 MCAPI void* $ctor(::std::string const& nameId, int id);
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCFOLD ::mce::Color $getDustColor(::Block const&) const;
61
62 MCAPI ::std::string $getDustParticleName(::Block const&) const;
63
64 MCAPI bool $attack(::Player* player, ::BlockPos const& pos) const;
65
66 MCFOLD bool $breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const;
67
68
69 // NOLINTEND
70
71public:
72 // vftables
73 // NOLINTBEGIN
74 MCAPI static void** $vftable();
75 // NOLINTEND
76};
Definition BaseGameVersion.h:8
Definition BlockPlayerInteractEvent.h:18
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41
Definition FallingBlock.h:19
static MCAPI void ** $vftable()
Definition Player.h:129
Definition Random.h:10
Definition Color.h:13