Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
CrackingIceBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/BlockType.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class Block;
12class BlockPos;
13class BlockSource;
14class EntityContext;
15class HashedString;
16class Player;
17class Random;
18namespace BlockEvents { class BlockPlaceEvent; }
19namespace BlockEvents { class BlockQueuedTickEvent; }
20// clang-format on
21
22class CrackingIceBlock : public ::BlockType {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 8, ::HashedString const&> mOnDestroyBlock;
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 CrackingIceBlock& operator=(CrackingIceBlock const&);
32 CrackingIceBlock(CrackingIceBlock const&);
33 CrackingIceBlock();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
39 /*override*/;
40
41 virtual void onStandOn(::EntityContext& entity, ::BlockPos const& pos) const /*override*/;
42
43 virtual bool _shouldActorIncreaseCracking(::Actor const&, ::BlockPos const&) const;
44
45 virtual bool _shouldEnvironmentIncreaseCracking(
46 ::BlockSource& region,
47 ::BlockPos const& pos,
48 ::Block const& block,
49 ::Random& random
50 ) const;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
56 MCNAPI void _increaseCracking(::BlockSource& region, ::BlockPos const& pos, ::Random& random, bool propagate) const;
57
58 MCNAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
59
60 MCNAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCNAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
67
68 MCNAPI bool $_shouldActorIncreaseCracking(::Actor const&, ::BlockPos const&) const;
69
70
71 // NOLINTEND
72};
Definition Actor.h:116
Definition BlockPlaceEvent.h:16
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
MCAPI bool $_shouldActorIncreaseCracking(::Actor const &, ::BlockPos const &) const
MCAPI void onPlace(::BlockEvents::BlockPlaceEvent &eventData) const
MCAPI void tick(::BlockEvents::BlockQueuedTickEvent &eventData) const
MCAPI::Block const * $playerWillDestroy(::Player &player, ::BlockPos const &pos, ::Block const &block) const
MCAPI void _increaseCracking(::BlockSource &region, ::BlockPos const &pos, ::Random &random, bool propagate) const
Definition EntityContext.h:15
Definition HashedString.h:5
Definition Player.h:131
Definition Random.h:10