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&, ::BlockPos const&, ::BlockPos const&) const /*override*/;
50
51 virtual ::std::string buildDescriptionId(::Block const&) const /*override*/;
52
53 virtual bool canProvideSupport(::Block const&, uchar, ::BlockSupportType) const /*override*/;
54
55 virtual void entityInside(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity) const /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI FrogSpawnBlock(::std::string const& nameId, int id);
62
63 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
64
65 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
66 // NOLINTEND
67
68public:
69 // static functions
70 // NOLINTBEGIN
71 MCAPI static void _sendDestroyEggEvents(::BlockSource& region, ::BlockPos const& pos, ::Actor& destroyer);
72
73 MCAPI static void _spawnTadpoles(::BlockSource& region, ::BlockPos const& pos);
74 // NOLINTEND
75
76public:
77 // constructor thunks
78 // NOLINTBEGIN
79 MCAPI void* $ctor(::std::string const& nameId, int id);
80 // NOLINTEND
81
82public:
83 // virtual function thunks
84 // NOLINTBEGIN
85 MCFOLD ::AABB $getCollisionShape(
86 ::Block const&,
88 ::BlockPos const&,
90 ) const;
91
92 MCFOLD bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
93
94 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
95
96 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
97
98 MCAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
99
100 MCFOLD bool $checkIsPathable(::Actor&, ::BlockPos const&, ::BlockPos const&) const;
101
102 MCFOLD ::std::string $buildDescriptionId(::Block const&) const;
103
104 MCFOLD bool $canProvideSupport(::Block const&, uchar, ::BlockSupportType) const;
105
106 MCAPI void $entityInside(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity) const;
107
108
109 // NOLINTEND
110
111public:
112 // vftables
113 // NOLINTBEGIN
114 MCAPI static void** $vftable();
115 // NOLINTEND
116};
Definition AABB.h:18
Definition Actor.h:125
Definition BlockPlaceEvent.h:18
Definition BlockQueuedTickEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition Player.h:137
Definition optional_ref.h:10