Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI DragonEggBlock(::std::string const& nameId, int id);
41
42 MCNAPI 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 MCNAPI void* $ctor(::std::string const& nameId, int id);
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCNAPI ::mce::Color $getDustColor(::Block const&) const;
61
62 MCNAPI ::std::string $getDustParticleName(::Block const&) const;
63
64 MCNAPI bool $attack(::Player* player, ::BlockPos const& pos) const;
65
66 MCNAPI bool $breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const;
67
68
69 // NOLINTEND
70
71public:
72 // vftables
73 // NOLINTBEGIN
74 MCNAPI static void** $vftable();
75 // NOLINTEND
76};
Definition BaseGameVersion.h:8
Definition BlockPlayerInteractEvent.h:18
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
MCAPI void use(::BlockEvents::BlockPlayerInteractEvent &eventData) const
MCAPI void * $ctor(::std::string const &nameId, int id)
MCAPI::mce::Color $getDustColor(::Block const &) const
MCAPI DragonEggBlock(::std::string const &nameId, int id)
MCAPI::std::string $getDustParticleName(::Block const &) const
MCAPI bool $breaksFallingBlocks(::Block const &block, ::BaseGameVersion const version) const
static MCAPI void ** $vftable()
MCAPI bool $attack(::Player *player, ::BlockPos const &pos) const
Definition FallingBlock.h:19
Definition Player.h:131
Definition Random.h:10
Definition Color.h:13