LeviLamina
Loading...
Searching...
No Matches
MinecartItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/item/MinecartType.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 Vec3;
18// clang-format on
19
20class MinecartItem : public ::Item {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<4, 4, ::MinecartType> mCartType;
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 MinecartItem();
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
35 /*override*/;
36
37 virtual bool isDestructive(int) const /*override*/;
38
39 virtual ::InteractionResult
40 _useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const
41 /*override*/;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCAPI MinecartItem(::std::string const& name, int id, ::MinecartType type);
48 // NOLINTEND
49
50public:
51 // constructor thunks
52 // NOLINTBEGIN
53 MCAPI void* $ctor(::std::string const& name, int id, ::MinecartType type);
54 // NOLINTEND
55
56public:
57 // virtual function thunks
58 // NOLINTBEGIN
59 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
60
61 MCAPI bool $isDestructive(int) const;
62
63 MCAPI ::InteractionResult
64 $_useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const;
65
66
67 // NOLINTEND
68
69public:
70 // vftables
71 // NOLINTBEGIN
72 MCAPI static void** $vftable();
73 // NOLINTEND
74};
Definition Actor.h:125
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Container.h:34
Definition InteractionResult.h:5
Definition ItemStack.h:35
Definition Vec3.h:10