LeviLamina
Loading...
Searching...
No Matches
BlockComponentDirectData.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/Brightness.h"
7#include "mc/deps/core/container/DenseEnumMap.h"
8#include "mc/deps/shared_types/legacy/Facing.h"
9#include "mc/deps/voxel_shapes/RegistryHandle.h"
10#include "mc/world/level/block/BurnOdds.h"
11#include "mc/world/level/block/DetectionRule.h"
12#include "mc/world/level/block/FlameOdds.h"
13#include "mc/world/level/block/LavaFlammable.h"
14
15// auto generated forward declare list
16// clang-format off
17class Block;
24// clang-format on
25
27public:
28 // BlockComponentDirectData inner types define
29 enum class LayerBitMask : int {
30 None = 0,
31 Init = 1,
32 Rendering = 2,
33 };
34
36
37public:
38 // member variables
39 // NOLINTBEGIN
40 ::ll::TypedStorage<8, 8, ::BlockTransformationComponent const*> mBlockTransformationComponent;
41 ::ll::TypedStorage<8, 8, ::BlockCollisionBoxComponent const*> mBlockCollisionBoxComponent;
42 ::ll::TypedStorage<8, 8, ::BlockSelectionBoxComponent const*> mBlockSelectionBoxComponent;
43 ::ll::TypedStorage<8, 8, ::BlockRedstoneComponent const*> mBlockRedstoneComponent;
44 ::ll::TypedStorage<8, 8, ::BlockGeometryComponent const*> mBlockGeometryComponent;
45 ::ll::TypedStorage<1, 1, bool> mIsFullBlock;
46 ::ll::TypedStorage<1, 1, bool> mUseNewTessellation;
47 ::ll::TypedStorage<1, 1, bool> mNeedsLegacyTopRotation;
48 ::ll::TypedStorage<1, 1, bool> mIsOpaqueFullBlock;
49 ::ll::TypedStorage<1, 1, ::Brightness> mLightEmission;
50 ::ll::TypedStorage<1, 1, ::Brightness> mLight;
51 ::ll::TypedStorage<1, 1, ::LavaFlammable> mLavaFlammable;
52 ::ll::TypedStorage<2, 2, ::FlameOdds> mFlameOdds;
53 ::ll::TypedStorage<2, 2, ::BurnOdds> mBurnOdds;
54 ::ll::TypedStorage<4, 4, float> mExplosionResistance;
55 ::ll::TypedStorage<4, 4, float> mFriction;
56 ::ll::TypedStorage<4, 4, float> mDestroySpeed;
57 ::ll::TypedStorage<1, 4, ::DetectionRule> mWaterDetectionRule;
58 ::ll::TypedStorage<2, 2, ::VoxelShapes::RegistryHandle> mOcclusionShapeHandle;
59 ::ll::TypedStorage<2, 12, ::Bedrock::DenseEnumMap<::SharedTypes::Facing, ::VoxelShapes::RegistryHandle, 6>>
60 mOcclusionShapeHandlesByFace;
61 ::ll::TypedStorage<4, 4, ::BlockComponentDirectData::LayerBitMask> mFinalized;
62 ::ll::TypedStorage<8, 8, ::BlockDestructibleByMiningComponent const*> mDestructibleByMiningComponent;
63 // NOLINTEND
64
65public:
66 // member functions
67 // NOLINTBEGIN
68 MCAPI void _finalizeInit(::Block const& block);
69 // NOLINTEND
70};
Definition DenseEnumMap.h:8
Definition BlockTransformationComponent.h:9
Definition Block.h:43
Definition BlockCollisionBoxComponent.h:8
Definition BlockComponentDirectData.h:26
Definition BlockDestructibleByMiningComponent.h:10
Definition BlockGeometryComponent.h:16
Definition BlockRedstoneComponent.h:5
Definition BlockSelectionBoxComponent.h:8