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