diff --git a/src/mc/world/level/block/states/BlockStateVariant.h b/src/mc/world/level/block/states/BlockStateVariant.h index c2555a3b3b..a9b68cf1a1 100644 --- a/src/mc/world/level/block/states/BlockStateVariant.h +++ b/src/mc/world/level/block/states/BlockStateVariant.h @@ -6,16 +6,18 @@ template class BlockStateVariant : public ::BlockState { public: - // prevent constructor by default - BlockStateVariant& operator=(BlockStateVariant const&); - BlockStateVariant(BlockStateVariant const&); - BlockStateVariant(); + using Type = T0; +public: + // virtual functions // NOLINTBEGIN - virtual ~BlockStateVariant(); + // vIndex: 0 + virtual ~BlockStateVariant() /*override*/ = default; - virtual void toNBT(class CompoundTag&, int) const; + // vIndex: 1 + virtual void toNBT(::CompoundTag&, int) const /*override*/; - virtual bool fromNBT(class CompoundTag const&, int&) const; + // vIndex: 2 + virtual bool fromNBT(::CompoundTag const&, int&) const /*override*/; // NOLINTEND }; diff --git a/src/mc/world/level/block/states/BuiltInBlockStateVariant.h b/src/mc/world/level/block/states/BuiltInBlockStateVariant.h index 207391ccd4..0accb29817 100644 --- a/src/mc/world/level/block/states/BuiltInBlockStateVariant.h +++ b/src/mc/world/level/block/states/BuiltInBlockStateVariant.h @@ -1,12 +1,14 @@ #pragma once #include "mc/_HeaderOutputPredefine.h" +#include "mc/world/level/block/states/BlockStateVariant.h" template -class BuiltInBlockStateVariant { +class BuiltInBlockStateVariant : public ::BlockStateVariant { public: - // prevent constructor by default - BuiltInBlockStateVariant& operator=(BuiltInBlockStateVariant const&); - BuiltInBlockStateVariant(BuiltInBlockStateVariant const&); - BuiltInBlockStateVariant(); + // virtual functions + // NOLINTBEGIN + // vIndex: 0 + virtual ~BuiltInBlockStateVariant() /*override*/ = default; + // NOLINTEND };