11 enum class Settings :
int {
20 ::ll::TypedStorage<1, 1, ::SharedTypes::v1_26_20::MaterialType> mType;
21 ::ll::TypedStorage<1, 1, bool> mNeverBuildable;
22 ::ll::TypedStorage<1, 1, bool> mLiquid;
23 ::ll::TypedStorage<1, 1, bool> mBlocksMotion;
24 ::ll::TypedStorage<1, 1, bool> mBlocksPrecipitation;
25 ::ll::TypedStorage<1, 1, bool> mSolid;
26 ::ll::TypedStorage<1, 1, bool> mSuperHot;
30 bool operator==(
Material const& rhs)
const {
return mType == rhs.mType; }
35 MCAPI
static void _setupMaterials();
38 [[nodiscard]] static ::Material
const& getMaterial(::SharedTypes::v1_26_20::MaterialType type) {
39 auto const& materials = mMaterials();
40 auto const index =
static_cast<size_t>(type);
41 return *materials[materials.size() >= index ? index : 1];
48 MCAPI static ::std::vector<::std::unique_ptr<::Material>>& mMaterials();