LeviLamina
Loading...
Searching...
No Matches
SkullItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
7#include "mc/deps/shared_types/legacy/actor/ActorLocation.h"
8#include "mc/world/item/BlockItem.h"
9#include "mc/world/item/Rarity.h"
10#include "mc/world/level/block/BlockShape.h"
11
12// auto generated forward declare list
13// clang-format off
14class Actor;
15class BlockPos;
16class BlockSource;
17class Container;
19class ItemStack;
20class ItemStackBase;
21class Vec3;
23// clang-format on
24
25class SkullItem : public ::BlockItem {
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ::ResolvedItemIconInfo getIconInfo(::ItemStackBase const& item, int, bool) const /*override*/;
30
31 virtual ::Rarity getRarity(::ItemStackBase const& stack) const /*override*/;
32
33 virtual int getLevelDataForAuxValue(int auxValue) const /*override*/;
34
35 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
36 /*override*/;
37
38 virtual ::BlockShape getBlockShape() const /*override*/;
39
40 virtual int getEnchantSlot() const /*override*/;
41
42 virtual ::SharedTypes::Legacy::ActorLocation getEquipLocation() const /*override*/;
43
44 virtual ::SharedTypes::Legacy::LevelSoundEvent getEquipSound() const /*override*/;
45
46 virtual ::InteractionResult
47 _useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const
48 /*override*/;
49
50 virtual bool _calculatePlacePos(::ItemStackBase&, ::Actor& entity, uchar& face, ::BlockPos& pos) const /*override*/;
51
52 virtual ~SkullItem() /*override*/ = default;
53 // NOLINTEND
54
55public:
56 // virtual function thunks
57 // NOLINTBEGIN
58 MCAPI ::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const& item, int, bool) const;
59
60 MCFOLD int $getLevelDataForAuxValue(int auxValue) const;
61
62 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
63
64 MCFOLD ::BlockShape $getBlockShape() const;
65
66 MCAPI int $getEnchantSlot() const;
67
68 MCFOLD ::SharedTypes::Legacy::ActorLocation $getEquipLocation() const;
69
70 MCFOLD ::SharedTypes::Legacy::LevelSoundEvent $getEquipSound() const;
71
72 MCAPI ::InteractionResult
73 $_useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const;
74
75 MCAPI bool $_calculatePlacePos(::ItemStackBase&, ::Actor& entity, uchar& face, ::BlockPos& pos) const;
76
77#ifdef LL_PLAT_C
78 MCAPI ::Rarity $getRarity(::ItemStackBase const& stack) const;
79#endif
80
81
82 // NOLINTEND
83
84public:
85 // vftables
86 // NOLINTBEGIN
87 MCAPI static void** $vftable();
88 // NOLINTEND
89};
Definition Actor.h:105
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition Container.h:33
Definition InteractionResult.h:5
Definition ItemStackBase.h:44
Definition ItemStack.h:26
Definition SkullItem.h:25
Definition Vec3.h:10
Definition ResolvedItemIconInfo.h:8