LeviLamina
Loading...
Searching...
No Matches
SculkVeinBlockBehavior.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/SculkBehavior.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11class BlockPos;
12class BlockSource;
14class Random;
15class SculkSpreader;
16// clang-format on
17
19public:
20 // virtual functions
21 // NOLINTBEGIN
22 // vIndex: 0
23 virtual int updateDecayDelay(int const) const /*override*/;
24
25 // vIndex: 1
26 virtual int updateFacingData(int const, ::Block const& block) const /*override*/;
27
28 // vIndex: 2
29 virtual bool canChangeBlockOnSpread() const /*override*/;
30
31 // vIndex: 3
32 virtual bool attemptSpreadVeins(
33 ::IBlockWorldGenAPI& target,
34 ::BlockPos const& pos,
35 ::Block const& block,
36 int,
38 ) const /*override*/;
39
40 // vIndex: 4
41 virtual int attemptUseCharge(
42 ::IBlockWorldGenAPI& target,
43 ::BlockSource* region,
44 ::BlockPos const&,
45 ::BlockPos const& pos,
46 int charge,
47 int,
48 ::Random& random,
49 ::SculkSpreader& spreader,
50 bool const spreadVeins
51 ) const /*override*/;
52
53 // vIndex: 5
54 virtual void onDischarged(::IBlockWorldGenAPI& target, ::BlockSource* region, ::BlockPos const& pos) const
55 /*override*/;
56 // NOLINTEND
57
58public:
59 // static functions
60 // NOLINTBEGIN
61 MCAPI static bool _attemptPlaceSculk(
62 ::IBlockWorldGenAPI& target,
63 ::BlockSource* region,
64 ::BlockPos const& pos,
65 ::SculkSpreader& spreader,
66 ::Random& random
67 );
68
69 MCAPI static void
70 _cleanUpVeinsWithSculkSubstrate(::IBlockWorldGenAPI& target, ::BlockSource* region, ::BlockPos const& pos);
71 // NOLINTEND
72
73public:
74 // virtual function thunks
75 // NOLINTBEGIN
76 MCFOLD int $updateDecayDelay(int const) const;
77
78 MCAPI int $updateFacingData(int const, ::Block const& block) const;
79
80 MCFOLD bool $canChangeBlockOnSpread() const;
81
82 MCFOLD bool $attemptSpreadVeins(
83 ::IBlockWorldGenAPI& target,
84 ::BlockPos const& pos,
85 ::Block const& block,
86 int,
88 ) const;
89
90 MCAPI int $attemptUseCharge(
91 ::IBlockWorldGenAPI& target,
92 ::BlockSource* region,
93 ::BlockPos const&,
94 ::BlockPos const& pos,
95 int charge,
96 int,
97 ::Random& random,
98 ::SculkSpreader& spreader,
99 bool const spreadVeins
100 ) const;
101
102 MCAPI void $onDischarged(::IBlockWorldGenAPI& target, ::BlockSource* region, ::BlockPos const& pos) const;
103 // NOLINTEND
104
105public:
106 // vftables
107 // NOLINTBEGIN
108 MCNAPI static void** $vftable();
109 // NOLINTEND
110};
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition IBlockWorldGenAPI.h:25
Definition Random.h:11
Definition SculkBehavior.h:15
Definition SculkSpreader.h:14
Definition SculkVeinBlockBehavior.h:18
static MCAPI void ** $vftable()