LeviLamina
Loading...
Searching...
No Matches
FrogSpawnBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/optional_ref.h"
7#include "mc/world/level/block/BlockSupportType.h"
8#include "mc/world/level/block/BlockType.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Actor;
14class Block;
15class BlockPos;
16class BlockSource;
19class Player;
20namespace BlockEvents { class BlockPlaceEvent; }
21namespace BlockEvents { class BlockQueuedTickEvent; }
22// clang-format on
23
24class FrogSpawnBlock : public ::BlockType {
25public:
26 // prevent constructor by default
27 FrogSpawnBlock();
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual ::AABB getCollisionShape(
33 ::Block const&,
35 ::BlockPos const&,
37 ) const /*override*/;
38
39 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
40
41 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
42
43 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
44 /*override*/;
45
46 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
47 /*override*/;
48
49 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
50 /*override*/;
51
52 virtual ::std::string buildDescriptionId(::Block const&) const /*override*/;
53
54 virtual bool canProvideSupport(::Block const&, uchar, ::BlockSupportType) const /*override*/;
55
56 virtual void entityInside(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity) const /*override*/;
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
62 MCAPI FrogSpawnBlock(::std::string const& nameId, int id);
63
64 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
65
66 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCAPI void* $ctor(::std::string const& nameId, int id);
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78 MCFOLD ::AABB $getCollisionShape(
79 ::Block const&,
81 ::BlockPos const&,
83 ) const;
84
85 MCFOLD bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
86
87 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
88
89 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
90
91 MCAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
92
93 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
94
95 MCFOLD ::std::string $buildDescriptionId(::Block const&) const;
96
97 MCFOLD bool $canProvideSupport(::Block const&, uchar, ::BlockSupportType) const;
98
99 MCAPI void $entityInside(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity) const;
100
101
102 // NOLINTEND
103
104public:
105 // vftables
106 // NOLINTBEGIN
107 MCAPI static void** $vftable();
108 // NOLINTEND
109};
Definition AABB.h:18
Definition Actor.h:113
Definition BlockPlaceEvent.h:16
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition Player.h:129
Definition optional_ref.h:10