LeviLamina
Loading...
Searching...
No Matches
FrostedIceBlock.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 BlockActor;
13class BlockPos;
14class BlockSource;
15class ItemInstance;
16class Player;
17class Random;
18namespace BlockEvents { class BlockPlaceEvent; }
19namespace BlockEvents { class BlockQueuedTickEvent; }
20// clang-format on
21
22class FrostedIceBlock : public ::BlockType {
23public:
24 // prevent constructor by default
25 FrostedIceBlock();
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
31 /*override*/;
32
33 virtual bool breaksFallingBlocks(::Block const& version, ::BaseGameVersion const) const /*override*/;
34
35 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const*) const /*override*/;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI FrostedIceBlock(::std::string const& nameId, int id, bool packed);
42
43 MCAPI int _countNeighbors(::BlockSource& region, ::BlockPos const& pos) const;
44
45 MCAPI void _slightlyMelt(::BlockSource& region, ::BlockPos const& pos, ::Random& random, bool propagate) const;
46
47 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
48
49 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
50 // NOLINTEND
51
52public:
53 // constructor thunks
54 // NOLINTBEGIN
55 MCAPI void* $ctor(::std::string const& nameId, int id, bool packed);
56 // NOLINTEND
57
58public:
59 // virtual function thunks
60 // NOLINTBEGIN
61 MCAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
62
63 MCFOLD bool $breaksFallingBlocks(::Block const& version, ::BaseGameVersion const) const;
64
65 MCFOLD ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const*) const;
66
67
68 // NOLINTEND
69
70public:
71 // vftables
72 // NOLINTBEGIN
73 MCAPI static void** $vftable();
74 // NOLINTEND
75};
Definition BaseGameVersion.h:13
Definition BlockActor.h:30
Definition BlockPlaceEvent.h:18
Definition BlockQueuedTickEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition ItemInstance.h:15
Definition Player.h:137
Definition Random.h:10