LeviLamina
Loading...
Searching...
No Matches
CameraItemComponentLegacy.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/components/ICameraItemComponent.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class BlockPos;
12class CameraCallbacks;
13class CompoundTag;
14class ItemStack;
15class Player;
16class Vec3;
17namespace Json { class Value; }
18// clang-format on
19
21public:
22 // CameraItemComponentLegacy inner types define
23 enum class UseAction : uchar {
24 None = 0,
25 Place = 1,
26 Use = 2,
27 };
28
29public:
30 // member variables
31 // NOLINTBEGIN
42 // NOLINTEND
43
44public:
45 // prevent constructor by default
49
50public:
51 // virtual functions
52 // NOLINTBEGIN
53 // vIndex: 0
54 virtual ~CameraItemComponentLegacy() /*override*/ = default;
55
56 // vIndex: 8
57 virtual void takePictureNow(::Player& player, ::Actor* camera, ::Actor* target) /*override*/;
58
59 // vIndex: 10
60 virtual void use(::ItemStack& instance, ::Player& player) /*override*/;
61
62 // vIndex: 11
63 virtual void releaseUsing(::ItemStack& instance, ::Player& player, int durationLeft) /*override*/;
64
65 // vIndex: 12
66 virtual bool
67 useOn(::ItemStack& instance, ::Actor& actor, ::BlockPos const& blockPos, uchar face, ::Vec3 const&) /*override*/;
68
69 // vIndex: 7
70 virtual bool canPlace(::ItemStack const& instance, ::Actor& actor, ::BlockPos const& blockPos, uchar face) const
71 /*override*/;
72
73 // vIndex: 1
74 virtual float blackBarsDuration() const /*override*/;
75
76 // vIndex: 2
77 virtual float blackBarsScreenRatio() const /*override*/;
78
79 // vIndex: 3
80 virtual float shutterScreenRatio() const /*override*/;
81
82 // vIndex: 4
83 virtual float shutterDuration() const /*override*/;
84
85 // vIndex: 5
86 virtual float pictureDuration() const /*override*/;
87
88 // vIndex: 6
89 virtual float slideAwayDuration() const /*override*/;
90
91 // vIndex: 9
92 virtual void registerCallbacks(::CameraCallbacks* callbacks) /*override*/;
93 // NOLINTEND
94
95public:
96 // member functions
97 // NOLINTBEGIN
98 MCNAPI ::CameraItemComponentLegacy::UseAction _tryPlace(
99 ::ItemStack const& instance,
100 ::Actor& actor,
101 ::BlockPos const& blockPos,
102 uchar face,
103 ::Vec3& spawnPos
104 ) const;
105
106 MCNAPI ::std::unique_ptr<::CompoundTag> buildNetworkTag() const;
107 // NOLINTEND
108
109public:
110 // static functions
111 // NOLINTBEGIN
112 MCNAPI static ::Json::Value initializeFromNetwork(::CompoundTag const& tag);
113 // NOLINTEND
114
115public:
116 // virtual function thunks
117 // NOLINTBEGIN
118 MCNAPI void $takePictureNow(::Player& player, ::Actor* camera, ::Actor* target);
119
120 MCNAPI void $use(::ItemStack& instance, ::Player& player);
121
122 MCNAPI void $releaseUsing(::ItemStack& instance, ::Player& player, int durationLeft);
123
124 MCNAPI bool $useOn(::ItemStack& instance, ::Actor& actor, ::BlockPos const& blockPos, uchar face, ::Vec3 const&);
125
126 MCNAPI bool $canPlace(::ItemStack const& instance, ::Actor& actor, ::BlockPos const& blockPos, uchar face) const;
127
128 MCNAPI float $blackBarsDuration() const;
129
130 MCNAPI float $blackBarsScreenRatio() const;
131
132 MCNAPI float $shutterScreenRatio() const;
133
134 MCNAPI float $shutterDuration() const;
135
136 MCNAPI float $pictureDuration() const;
137
138 MCNAPI float $slideAwayDuration() const;
139
140 MCNAPI void $registerCallbacks(::CameraCallbacks* callbacks);
141 // NOLINTEND
142
143public:
144 // vftables
145 // NOLINTBEGIN
146 MCNAPI static void** $vftable();
147 // NOLINTEND
148};
Definition Actor.h:103
Definition BlockPos.h:18
Definition CameraCallbacks.h:11
Definition CameraItemComponentLegacy.h:20
MCAPI float $slideAwayDuration() const
MCAPI float $blackBarsDuration() const
MCAPI float $blackBarsScreenRatio() const
MCAPI::CameraItemComponentLegacy::UseAction _tryPlace(::ItemStack const &instance, ::Actor &actor, ::BlockPos const &blockPos, uchar face, ::Vec3 &spawnPos) const
MCAPI bool $useOn(::ItemStack &instance, ::Actor &actor, ::BlockPos const &blockPos, uchar face, ::Vec3 const &)
MCAPI float $shutterScreenRatio() const
MCAPI void $registerCallbacks(::CameraCallbacks *callbacks)
MCAPI bool $canPlace(::ItemStack const &instance, ::Actor &actor, ::BlockPos const &blockPos, uchar face) const
static MCAPI ::Json::Value initializeFromNetwork(::CompoundTag const &tag)
MCAPI void $use(::ItemStack &instance, ::Player &player)
static MCAPI void ** $vftable()
MCAPI void $takePictureNow(::Player &player, ::Actor *camera, ::Actor *target)
MCAPI ::std::unique_ptr<::CompoundTag > buildNetworkTag() const
MCAPI float $shutterDuration() const
MCAPI void $releaseUsing(::ItemStack &instance, ::Player &player, int durationLeft)
MCAPI float $pictureDuration() const
Definition CompoundTag.h:13
Definition ICameraItemComponent.h:15
Definition ItemStack.h:25
Definition Player.h:120
Definition Vec3.h:10
Definition Alias.h:14