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/BlockSupportType.h"
7#include "mc/world/level/block/BlockType.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
25class TurtleEggBlock : public ::BlockType {
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<4, 4, float> mShapeOffset;
30 // NOLINTEND
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual void entityInside(::BlockSource&, ::BlockPos const& pos, ::Actor& entity) const /*override*/;
36
37 virtual void transformOnFall(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, float fallDistance) const
38 /*override*/;
39
40 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
41 /*override*/;
42
43 virtual ::std::string buildDescriptionId(::Block const&) const /*override*/;
44
45 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
46 /*override*/;
47
48 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const /*override*/;
49
50 virtual bool canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const /*override*/;
51
52 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
53
54 virtual ~TurtleEggBlock() /*override*/ = default;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
61
62 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
63
64 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
65 // NOLINTEND
66
67public:
68 // static functions
69 // NOLINTBEGIN
70 MCAPI static ::Block const&
71 _decreaseEggs(::BlockSource& region, ::BlockPos const& pos, uint count, bool brokenWithSilkTouch);
72
73 MCAPI static void
74 _destroyEgg(::BlockSource& region, ::BlockPos const& pos, ::Actor& actor, int randomness, bool brokenWithSilkTouch);
75
76 MCAPI static bool
77 shouldUpdateHatchLevel(::Level const& level, ::Dimension const& dimension, ::Randomize const& randomize);
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCAPI void $entityInside(::BlockSource&, ::BlockPos const& pos, ::Actor& entity) const;
84
85 MCAPI void $transformOnFall(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, float fallDistance) const;
86
87 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
88
89 MCFOLD ::std::string $buildDescriptionId(::Block const&) const;
90
91 MCAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
92
93 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const;
94
95 MCFOLD bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const;
96
97 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
98
99
100 // NOLINTEND
101
102public:
103 // vftables
104 // NOLINTBEGIN
105 MCNAPI static void** $vftable();
106 // NOLINTEND
107};
Definition Actor.h:105
Definition BlockPlaceEvent.h:16
Definition BlockPlayerInteractEvent.h:17
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition Block.h:43
Definition Dimension.h:85
Definition Experiments.h:14
Definition Level.h:249
Definition Player.h:125
Definition Randomize.h:13
Definition TurtleEggBlock.h:25
static MCAPI void ** $vftable()