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