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 Player;
16namespace BlockEvents { class BlockPlaceEvent; }
17namespace BlockEvents { class BlockPlayerInteractEvent; }
18namespace BlockEvents { class BlockQueuedTickEvent; }
19// clang-format on
20
21class TurtleEggBlock : public ::BlockType {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<4, 4, float> mShapeOffset;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 TurtleEggBlock();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual void entityInside(::BlockSource& pos, ::BlockPos const& entity, ::Actor&) 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&, ::BlockPos const&, ::BlockPos const&) const /*override*/;
41
42 virtual ::std::string buildDescriptionId(::Block const&) const /*override*/;
43
44 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
45 /*override*/;
46
47 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const /*override*/;
48
49 virtual bool canProvideSupport(::Block const& face, uchar type, ::BlockSupportType) const /*override*/;
50 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCAPI TurtleEggBlock(::std::string const& nameId, int id);
56
57 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
58
59 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
60
61 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
62 // NOLINTEND
63
64public:
65 // static functions
66 // NOLINTBEGIN
67 MCAPI static ::Block const&
68 _decreaseEggs(::BlockSource& region, ::BlockPos const& pos, uint count, bool brokenWithSilkTouch);
69
70 MCAPI static void
71 _destroyEgg(::BlockSource& region, ::BlockPos const& pos, ::Actor& actor, int randomness, bool brokenWithSilkTouch);
72 // NOLINTEND
73
74public:
75 // constructor thunks
76 // NOLINTBEGIN
77 MCAPI void* $ctor(::std::string const& nameId, int id);
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCAPI void $entityInside(::BlockSource& pos, ::BlockPos const& entity, ::Actor&) const;
84
85 MCAPI void $transformOnFall(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, float fallDistance) const;
86
87 MCFOLD bool $checkIsPathable(::Actor&, ::BlockPos const&, ::BlockPos const&) 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& face, uchar type, ::BlockSupportType) const;
96
97
98 // NOLINTEND
99
100public:
101 // vftables
102 // NOLINTBEGIN
103 MCAPI static void** $vftable();
104 // NOLINTEND
105};
Definition Actor.h:125
Definition BlockPlaceEvent.h:18
Definition BlockPlayerInteractEvent.h:20
Definition BlockQueuedTickEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition Player.h:137