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
33 attemptSpreadVeins(::IBlockWorldGenAPI& target, ::BlockPos const& pos, ::Block const& block, int, ::SculkSpreader&)
34 const /*override*/;
35
36 // vIndex: 4
37 virtual int attemptUseCharge(
38 ::IBlockWorldGenAPI& target,
39 ::BlockSource* region,
40 ::BlockPos const&,
41 ::BlockPos const& pos,
42 int charge,
43 int,
44 ::Random& random,
45 ::SculkSpreader& spreader,
46 bool const spreadVeins
47 ) const /*override*/;
48
49 // vIndex: 5
50 virtual void onDischarged(::IBlockWorldGenAPI& target, ::BlockSource* region, ::BlockPos const& pos) const
51 /*override*/;
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCAPI static bool _attemptPlaceSculk(
58 ::IBlockWorldGenAPI& target,
59 ::BlockSource* region,
60 ::BlockPos const& pos,
61 ::SculkSpreader& spreader,
62 ::Random& random
63 );
64
65 MCAPI static void
66 _cleanUpVeinsWithSculkSubstrate(::IBlockWorldGenAPI& target, ::BlockSource* region, ::BlockPos const& pos);
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCFOLD int $updateDecayDelay(int const) const;
73
74 MCAPI int $updateFacingData(int const, ::Block const& block) const;
75
76 MCFOLD bool $canChangeBlockOnSpread() const;
77
78 MCFOLD bool
79 $attemptSpreadVeins(::IBlockWorldGenAPI& target, ::BlockPos const& pos, ::Block const& block, int, ::SculkSpreader&)
80 const;
81
82 MCAPI int $attemptUseCharge(
83 ::IBlockWorldGenAPI& target,
84 ::BlockSource* region,
85 ::BlockPos const&,
86 ::BlockPos const& pos,
87 int charge,
88 int,
89 ::Random& random,
90 ::SculkSpreader& spreader,
91 bool const spreadVeins
92 ) const;
93
94 MCAPI void $onDischarged(::IBlockWorldGenAPI& target, ::BlockSource* region, ::BlockPos const& pos) const;
95 // NOLINTEND
96
97public:
98 // vftables
99 // NOLINTBEGIN
100 MCAPI static void** $vftable();
101 // NOLINTEND
102};
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition IBlockWorldGenAPI.h:25
Definition Random.h:16
Definition SculkBehavior.h:15
Definition SculkSpreader.h:14
Definition SculkVeinBlockBehavior.h:18