Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
FireChargeItem.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 Vec3;
19// clang-format on
20
21class FireChargeItem : public ::Item {
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 virtual ::Actor*
26 createProjectileActor(::BlockSource& region, ::ItemStack const&, ::Vec3 const& pos, ::Vec3 const& direction) const
27 /*override*/;
28
29 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
30 /*override*/;
31
32 virtual bool isDestructive(int) const /*override*/;
33
34 virtual ::InteractionResult _useOn(
35 ::ItemStack& instance,
36 ::Actor& entity,
37 ::BlockPos pos,
38 uchar face,
39 ::HandSlot handSlot,
40 ::Vec3 const& clickPos
41 ) const /*override*/;
42
43 virtual bool _calculatePlacePos(::ItemStackBase const&, ::Actor const& actor, uchar& face, ::BlockPos& pos) const
44 /*override*/;
45 // NOLINTEND
46
47public:
48 // virtual function thunks
49 // NOLINTBEGIN
50 MCAPI ::Actor*
51 $createProjectileActor(::BlockSource& region, ::ItemStack const&, ::Vec3 const& pos, ::Vec3 const& direction) const;
52
53 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
54
55 MCFOLD bool $isDestructive(int) const;
56
57 MCNAPI ::InteractionResult $_useOn(
58 ::ItemStack& instance,
59 ::Actor& entity,
60 ::BlockPos pos,
61 uchar face,
62 ::HandSlot handSlot,
63 ::Vec3 const& clickPos
64 ) const;
65
66 MCAPI bool $_calculatePlacePos(::ItemStackBase const&, ::Actor const& actor, uchar& face, ::BlockPos& pos) const;
67
68
69 // NOLINTEND
70
71public:
72 // vftables
73 // NOLINTBEGIN
74 MCNAPI static void** $vftable();
75 // NOLINTEND
76};
Definition Actor.h:116
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Container.h:36
Definition FireChargeItem.h:21
static MCAPI void ** $vftable()
MCAPI::InteractionResult $_useOn(::ItemStack &instance, ::Actor &entity, ::BlockPos pos, uchar face, ::HandSlot handSlot, ::Vec3 const &clickPos) const
Definition InteractionResult.h:5
Definition ItemStackBase.h:45
Definition ItemStack.h:26
Definition Vec3.h:10