Skip to content
LeviMC
English
AutoLightDark
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/HandSlot.h"
10#include "mc/world/item/Rarity.h"
11#include "mc/world/level/block/BlockShape.h"
12
13// auto generated forward declare list
14// clang-format off
15class Actor;
16class BlockPos;
17class BlockSource;
18class Container;
20class ItemStack;
21class ItemStackBase;
22class Vec3;
24// clang-format on
25
26class SkullItem : public ::BlockItem {
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual ::ResolvedItemIconInfo getIconInfo(::ItemStackBase const& item, int, bool) const /*override*/;
31
32 virtual ::Rarity getRarity(::ItemStackBase const& stack) const /*override*/;
33
34 virtual int getLevelDataForAuxValue(int auxValue) const /*override*/;
35
36 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
37 /*override*/;
38
39 virtual ::BlockShape getBlockShape() const /*override*/;
40
41 virtual int getEnchantSlot() const /*override*/;
42
43 virtual ::SharedTypes::Legacy::ActorLocation getEquipLocation() const /*override*/;
44
45 virtual ::SharedTypes::Legacy::LevelSoundEvent getEquipSound() const /*override*/;
46
47 virtual ::InteractionResult _useOn(
48 ::ItemStack& instance,
49 ::Actor& entity,
50 ::BlockPos pos,
51 uchar face,
52 ::HandSlot handSlot,
53 ::Vec3 const& clickPos
54 ) const /*override*/;
55
56 virtual bool _calculatePlacePos(::ItemStackBase const&, ::Actor const& entity, uchar& face, ::BlockPos& pos) const
57 /*override*/;
58 // NOLINTEND
59
60public:
61 // virtual function thunks
62 // NOLINTBEGIN
63 MCNAPI ::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const& item, int, bool) const;
64
65 MCNAPI ::Rarity $getRarity(::ItemStackBase const& stack) const;
66
67 MCNAPI int $getLevelDataForAuxValue(int auxValue) const;
68
69 MCNAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
70
71 MCNAPI ::BlockShape $getBlockShape() const;
72
73 MCNAPI int $getEnchantSlot() const;
74
75 MCNAPI ::SharedTypes::Legacy::ActorLocation $getEquipLocation() const;
76
77 MCNAPI ::SharedTypes::Legacy::LevelSoundEvent $getEquipSound() const;
78
79 MCNAPI ::InteractionResult $_useOn(
80 ::ItemStack& instance,
81 ::Actor& entity,
82 ::BlockPos pos,
83 uchar face,
84 ::HandSlot handSlot,
85 ::Vec3 const& clickPos
86 ) const;
87
88 MCNAPI bool $_calculatePlacePos(::ItemStackBase const&, ::Actor const& entity, uchar& face, ::BlockPos& pos) const;
89
90
91 // NOLINTEND
92
93public:
94 // vftables
95 // NOLINTBEGIN
96 MCNAPI static void** $vftable();
97 // NOLINTEND
98};
Definition Actor.h:116
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Container.h:36
Definition InteractionResult.h:5
Definition ItemStackBase.h:45
Definition ItemStack.h:26
Definition SkullItem.h:26
MCAPI bool $_calculatePlacePos(::ItemStackBase const &, ::Actor const &entity, uchar &face, ::BlockPos &pos) const
MCAPI::BlockShape $getBlockShape() const
MCAPI int $getLevelDataForAuxValue(int auxValue) const
MCAPI bool $dispense(::BlockSource &region, ::Container &container, int slot, ::Vec3 const &pos, uchar face) const
MCAPI::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const &item, int, bool) const
MCAPI::SharedTypes::Legacy::LevelSoundEvent $getEquipSound() const
MCAPI int $getEnchantSlot() const
MCAPI::InteractionResult $_useOn(::ItemStack &instance, ::Actor &entity, ::BlockPos pos, uchar face, ::HandSlot handSlot, ::Vec3 const &clickPos) const
static MCAPI void ** $vftable()
MCAPI::Rarity $getRarity(::ItemStackBase const &stack) const
MCAPI::SharedTypes::Legacy::ActorLocation $getEquipLocation() const
Definition Vec3.h:10
Definition ResolvedItemIconInfo.h:8