LeviLamina
Loading...
Searching...
No Matches
IceBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/BlockType.h"
7
8// auto generated forward declare list
9// clang-format off
10class BaseGameVersion;
11class Block;
12class BlockPos;
13class BlockSource;
14class Experiments;
15class Player;
16namespace BlockEvents { class BlockRandomTickEvent; }
17// clang-format on
18
19class IceBlock : public ::BlockType {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<1, 1, bool> mPacked;
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 IceBlock();
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
34 /*override*/;
35
36 virtual bool breaksFallingBlocks(::Block const& version, ::BaseGameVersion const) const /*override*/;
37
38 virtual void _addHardCodedBlockComponents(::Experiments const& experiments) /*override*/;
39
40 virtual bool canBeOriginalSurface(bool aboveSeaLevel) const /*override*/;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI IceBlock(::std::string const& nameId, int id, bool packed);
47
48 MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
54 MCAPI static ::Block const& _getMeltedBlockAndSendEvents(::BlockSource& region, ::BlockPos const& pos);
55
56 MCAPI static void melt(::BlockSource& region, ::BlockPos const& pos);
57 // NOLINTEND
58
59public:
60 // constructor thunks
61 // NOLINTBEGIN
62 MCAPI void* $ctor(::std::string const& nameId, int id, bool packed);
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68 MCAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
69
70 MCFOLD bool $breaksFallingBlocks(::Block const& version, ::BaseGameVersion const) const;
71
72 MCAPI void $_addHardCodedBlockComponents(::Experiments const& experiments);
73
74 MCAPI bool $canBeOriginalSurface(bool aboveSeaLevel) const;
75
76
77 // NOLINTEND
78
79public:
80 // vftables
81 // NOLINTBEGIN
82 MCAPI static void** $vftable();
83 // NOLINTEND
84};
Definition BaseGameVersion.h:13
Definition BlockRandomTickEvent.h:17
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition Experiments.h:14
Definition Player.h:137