Skip to content
LeviMC
English
AutoLightDark
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&, ::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 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
56 MCNAPI TurtleEggBlock(::std::string const& nameId, int id);
57
58 MCNAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
59
60 MCNAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
61
62 MCNAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
63 // NOLINTEND
64
65public:
66 // static functions
67 // NOLINTBEGIN
68 MCNAPI static ::Block const&
69 _decreaseEggs(::BlockSource& region, ::BlockPos const& pos, uint count, bool brokenWithSilkTouch);
70
71 MCNAPI static void
72 _destroyEgg(::BlockSource& region, ::BlockPos const& pos, ::Actor& actor, int randomness, bool brokenWithSilkTouch);
73 // NOLINTEND
74
75public:
76 // constructor thunks
77 // NOLINTBEGIN
78 MCNAPI void* $ctor(::std::string const& nameId, int id);
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCNAPI void $entityInside(::BlockSource&, ::BlockPos const& pos, ::Actor& entity) const;
85
86 MCNAPI void
87 $transformOnFall(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, float fallDistance) const;
88
89 MCNAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
90
91 MCNAPI ::std::string $buildDescriptionId(::Block const&) const;
92
93 MCNAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
94
95 MCNAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const;
96
97 MCNAPI bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const;
98
99
100 // NOLINTEND
101
102public:
103 // vftables
104 // NOLINTBEGIN
105 MCNAPI static void** $vftable();
106 // NOLINTEND
107};
Definition Actor.h:116
Definition BlockPlaceEvent.h:16
Definition BlockPlayerInteractEvent.h:18
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition Player.h:131
MCAPI void $entityInside(::BlockSource &, ::BlockPos const &pos, ::Actor &entity) const
MCAPI bool $mayPlace(::BlockSource &region, ::BlockPos const &pos, uchar face) const
MCAPI void * $ctor(::std::string const &nameId, int id)
MCAPI void use(::BlockEvents::BlockPlayerInteractEvent &eventData) const
MCAPI void $transformOnFall(::BlockSource &region, ::BlockPos const &pos, ::Actor *actor, float fallDistance) const
MCAPI void tick(::BlockEvents::BlockQueuedTickEvent &eventData) const
static MCAPI void ** $vftable()
static MCAPI ::Block const & _decreaseEggs(::BlockSource &region, ::BlockPos const &pos, uint count, bool brokenWithSilkTouch)
MCAPI void onPlace(::BlockEvents::BlockPlaceEvent &eventData) const
MCAPI bool $canProvideSupport(::Block const &, uchar face, ::BlockSupportType type) const
MCAPI bool $checkIsPathable(::Actor &entity, ::BlockPos const &lastPathPos, ::BlockPos const &pathPos) const
MCAPI TurtleEggBlock(::std::string const &nameId, int id)
static MCAPI void _destroyEgg(::BlockSource &region, ::BlockPos const &pos, ::Actor &actor, int randomness, bool brokenWithSilkTouch)
MCAPI::std::string $buildDescriptionId(::Block const &) const
MCAPI::Block const * $playerWillDestroy(::Player &player, ::BlockPos const &pos, ::Block const &block) const