LeviLamina
Loading...
Searching...
No Matches
TurtleEggBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/BlockLegacy.h"
7#include "mc/world/level/block/BlockSupportType.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockPos;
14class BlockSource;
15class Dimension;
16class Experiments;
17class Level;
18class Player;
19class Random;
20class Randomize;
21namespace BlockEvents { class BlockPlaceEvent; }
22// clang-format on
23
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<4, 4, float> mShapeOffset;
29 // NOLINTEND
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 149
35 virtual void entityInside(::BlockSource&, ::BlockPos const& pos, ::Actor& entity) const /*override*/;
36
37 // vIndex: 60
38 virtual void transformOnFall(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, float fallDistance) const
39 /*override*/;
40
41 // vIndex: 139
42 virtual bool use(::Player& player, ::BlockPos const& pos, uchar) const /*override*/;
43
44 // vIndex: 57
45 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
46 /*override*/;
47
48 // vIndex: 112
49 virtual ::std::string buildDescriptionId(::Block const&) const /*override*/;
50
51 // vIndex: 136
52 virtual void tick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const /*override*/;
53
54 // vIndex: 89
55 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
56 /*override*/;
57
58 // vIndex: 80
59 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const /*override*/;
60
61 // vIndex: 23
62 virtual bool canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const /*override*/;
63
64 // vIndex: 131
65 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
66
67 // vIndex: 0
68 virtual ~TurtleEggBlock() /*override*/ = default;
69 // NOLINTEND
70
71public:
72 // member functions
73 // NOLINTBEGIN
74 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
75 // NOLINTEND
76
77public:
78 // static functions
79 // NOLINTBEGIN
80 MCAPI static ::Block const&
81 _decreaseEggs(::BlockSource& region, ::BlockPos const& pos, uint count, bool brokenWithSilkTouch);
82
83 MCAPI static void
84 _destroyEgg(::BlockSource& region, ::BlockPos const& pos, ::Actor& actor, int randomness, bool brokenWithSilkTouch);
85
86 MCAPI static bool
87 shouldUpdateHatchLevel(::Level const& level, ::Dimension const& dimension, ::Randomize const& randomize);
88 // NOLINTEND
89
90public:
91 // destructor thunk
92 // NOLINTBEGIN
93
94 // NOLINTEND
95
96public:
97 // virtual function thunks
98 // NOLINTBEGIN
99 MCAPI void $entityInside(::BlockSource&, ::BlockPos const& pos, ::Actor& entity) const;
100
101 MCAPI void $transformOnFall(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, float fallDistance) const;
102
103 MCAPI bool $use(::Player& player, ::BlockPos const& pos, uchar) const;
104
105 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
106
107 MCFOLD ::std::string $buildDescriptionId(::Block const&) const;
108
109 MCAPI void $tick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
110
111 MCAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
112
113 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const;
114
115 MCFOLD bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const;
116
117 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
118 // NOLINTEND
119
120public:
121 // vftables
122 // NOLINTBEGIN
123 MCAPI static void** $vftable();
124 // NOLINTEND
125};
Definition Actor.h:104
Definition BlockPlaceEvent.h:15
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition Dimension.h:83
Definition Experiments.h:14
Definition Level.h:234
Definition Player.h:119
Definition Random.h:16
Definition Randomize.h:13
Definition TurtleEggBlock.h:24