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&, ::BaseGameVersion const) 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
50 MCAPI static void _teleport(::BlockSource& region, ::BlockPos const& fromPos, ::BlockPos const& toPos);
51 // NOLINTEND
52
53public:
54 // constructor thunks
55 // NOLINTBEGIN
56 MCAPI void* $ctor(::std::string const& nameId, int id);
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
62 MCFOLD ::mce::Color $getDustColor(::Block const&) const;
63
64 MCAPI ::std::string $getDustParticleName(::Block const&) const;
65
66 MCAPI bool $attack(::Player* player, ::BlockPos const& pos) const;
67
68 MCFOLD bool $breaksFallingBlocks(::Block const&, ::BaseGameVersion const) const;
69
70
71 // NOLINTEND
72
73public:
74 // vftables
75 // NOLINTBEGIN
76 MCAPI static void** $vftable();
77 // NOLINTEND
78};
Definition BaseGameVersion.h:13
Definition BlockPlayerInteractEvent.h:20
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
static MCAPI void ** $vftable()
Definition Player.h:137
Definition Random.h:10
Definition Color.h:13