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 Randomize;
20namespace BlockEvents { class BlockPlaceEvent; }
21namespace BlockEvents { class BlockPlayerInteractEvent; }
22namespace BlockEvents { class BlockQueuedTickEvent; }
23// clang-format on
24
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<4, 4, float> mShapeOffset;
30 // NOLINTEND
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 146
36 virtual void entityInside(::BlockSource&, ::BlockPos const& pos, ::Actor& entity) const /*override*/;
37
38 // vIndex: 59
39 virtual void
40 transformOnFall(::BlockSource& region, ::BlockPos const& pos, ::Actor* entity, float fallDistance) const
41 /*override*/;
42
43 // vIndex: 56
44 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
45 /*override*/;
46
47 // vIndex: 111
48 virtual ::std::string buildDescriptionId(::Block const&) const /*override*/;
49
50 // vIndex: 88
51 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
52 /*override*/;
53
54 // vIndex: 79
55 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const /*override*/;
56
57 // vIndex: 22
58 virtual bool canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const /*override*/;
59
60 // vIndex: 130
61 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
62
63 // vIndex: 0
64 virtual ~TurtleEggBlock() /*override*/ = default;
65 // NOLINTEND
66
67public:
68 // member functions
69 // NOLINTBEGIN
70 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
71
72 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
73
74 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& 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 // virtual function thunks
92 // NOLINTBEGIN
93 MCAPI void $entityInside(::BlockSource&, ::BlockPos const& pos, ::Actor& entity) const;
94
95 MCAPI void
96 $transformOnFall(::BlockSource& region, ::BlockPos const& pos, ::Actor* entity, float fallDistance) const;
97
98 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
99
100 MCFOLD ::std::string $buildDescriptionId(::Block const&) const;
101
102 MCAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
103
104 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const;
105
106 MCFOLD bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const;
107
108 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
109 // NOLINTEND
110
111public:
112 // vftables
113 // NOLINTBEGIN
114 MCNAPI static void** $vftable();
115 // NOLINTEND
116};
Definition Actor.h:103
Definition BlockPlaceEvent.h:16
Definition BlockPlayerInteractEvent.h:17
Definition BlockQueuedTickEvent.h:16
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition Dimension.h:83
Definition Experiments.h:14
Definition Level.h:238
Definition Player.h:119
Definition Randomize.h:13
Definition TurtleEggBlock.h:25
static MCAPI void ** $vftable()