Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
FlintAndSteelItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/HandSlot.h"
7#include "mc/world/item/Item.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class BlockPos;
13class BlockSource;
14class Container;
16class ItemStack;
17class ItemStackBase;
18class Mob;
19class Vec3;
20// clang-format on
21
22class FlintAndSteelItem : public ::Item {
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual void hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const /*override*/;
27
28 virtual int getEnchantSlot() const /*override*/;
29
30 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
31 /*override*/;
32
33 virtual bool isDestructive(int auxValue) const /*override*/;
34
35 virtual ::InteractionResult _useOn(
36 ::ItemStack& instance,
37 ::Actor& entity,
38 ::BlockPos pos,
39 uchar face,
40 ::HandSlot handSlot,
41 ::Vec3 const& clickPos
42 ) const /*override*/;
43
44 virtual bool
45 _calculatePlacePos(::ItemStackBase const& instance, ::Actor const& entity, uchar& face, ::BlockPos& pos) const
46 /*override*/;
47 // NOLINTEND
48
49public:
50 // virtual function thunks
51 // NOLINTBEGIN
52 MCNAPI void $hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const;
53
54 MCNAPI int $getEnchantSlot() const;
55
56 MCNAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
57
58 MCNAPI bool $isDestructive(int auxValue) const;
59
60 MCNAPI ::InteractionResult $_useOn(
61 ::ItemStack& instance,
62 ::Actor& entity,
63 ::BlockPos pos,
64 uchar face,
65 ::HandSlot handSlot,
66 ::Vec3 const& clickPos
67 ) const;
68
69 MCNAPI bool
70 $_calculatePlacePos(::ItemStackBase const& instance, ::Actor const& entity, uchar& face, ::BlockPos& pos) const;
71
72
73 // NOLINTEND
74
75public:
76 // vftables
77 // NOLINTBEGIN
78 MCAPI static void** $vftable();
79 // NOLINTEND
80};
Definition Actor.h:116
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Container.h:36
Definition FlintAndSteelItem.h:22
MCAPI::InteractionResult $_useOn(::ItemStack &instance, ::Actor &entity, ::BlockPos pos, uchar face, ::HandSlot handSlot, ::Vec3 const &clickPos) const
MCAPI int $getEnchantSlot() const
MCAPI void $hurtActor(::ItemStack &item, ::Actor &actor, ::Mob &attacker) const
MCAPI bool $_calculatePlacePos(::ItemStackBase const &instance, ::Actor const &entity, uchar &face, ::BlockPos &pos) const
MCAPI bool $dispense(::BlockSource &region, ::Container &container, int slot, ::Vec3 const &pos, uchar face) const
MCAPI bool $isDestructive(int auxValue) const
Definition InteractionResult.h:5
Definition ItemStackBase.h:45
Definition ItemStack.h:26
Definition Mob.h:58
Definition Vec3.h:10