Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
CameraItemComponentLegacy Class Reference
Inheritance diagram for CameraItemComponentLegacy:

Public Types

enum class  UseAction : uchar { None = 0 , Place = 1 , Use = 2 }
using PlaceCallback = ::std::function<void(::Vec3 const&, ::Player&)>
using UseCallback = ::std::function<void(::Player&)>

Public Member Functions

virtual void takePictureNow (::Player &player, ::Actor *camera, ::Actor *target)
virtual void use (::ItemStack &instance, ::Player &player, ::HandSlot handSlot)
virtual void releaseUsing (::ItemStack &instance, ::Player &player, int durationLeft)
virtual bool useOn (::ItemStack &instance, ::Actor &actor, ::BlockPos const &blockPos, uchar face, ::Vec3 const &, ::HandSlot handSlot)
virtual bool canPlace (::ItemStack const &instance, ::Actor &actor, ::BlockPos const &blockPos, uchar face) const
virtual float blackBarsDuration () const
virtual float blackBarsScreenRatio () const
virtual float shutterScreenRatio () const
virtual float shutterDuration () const
virtual float pictureDuration () const
virtual float slideAwayDuration () const
virtual void registerCallbacks (::CameraCallbacks *callbacks)
MCAPI ::std::unique_ptr<::CompoundTag > buildNetworkTag () const
MCAPI bool init (::Json::Value const &data, ::MolangVersion)
MCAPI void $takePictureNow (::Player &player, ::Actor *camera, ::Actor *target)
MCAPI void $use (::ItemStack &instance, ::Player &player, ::HandSlot handSlot)
MCAPI void $releaseUsing (::ItemStack &instance, ::Player &player, int durationLeft)
MCAPI bool $useOn (::ItemStack &instance, ::Actor &actor, ::BlockPos const &blockPos, uchar face, ::Vec3 const &, ::HandSlot handSlot)
MCAPI bool $canPlace (::ItemStack const &instance, ::Actor &actor, ::BlockPos const &blockPos, uchar face) const
MCAPI float $blackBarsDuration () const
MCAPI float $blackBarsScreenRatio () const
MCAPI float $shutterScreenRatio () const
MCAPI float $shutterDuration () const
MCAPI float $pictureDuration () const
MCAPI float $slideAwayDuration () const
MCAPI void $registerCallbacks (::CameraCallbacks *callbacks)

Static Public Member Functions

static MCAPI ::CameraItemComponentLegacy::UseAction _tryPlace (::ItemStack const &instance, ::Actor &actor, ::BlockPos const &blockPos, uchar face, ::Vec3 &spawnPos)
static MCAPI ::Json::Value initializeFromNetwork (::CompoundTag const &tag)
static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 4, 4, float > mBlackBarsDuration
::ll::TypedStorage< 4, 4, float > mBlackBarsScreenRatio
::ll::TypedStorage< 4, 4, float > mShutterScreenRatio
::ll::TypedStorage< 4, 4, float > mShutterDuration
::ll::TypedStorage< 4, 4, float > mPictureDuration
::ll::TypedStorage< 4, 4, float > mSlideAwayDuration
::ll::TypedStorage< 1, 1, bool > mPlacingTripod
::ll::TypedStorage< 8, 8, uint64 > mPlacingTripodClientTick
::ll::TypedStorage< 8, 8, uint64 > mPlacingTripodServerTick
::ll::TypedStorage< 8, 8, ::CameraCallbacks * > mCallbacks

Member Function Documentation

◆ takePictureNow()

virtual void CameraItemComponentLegacy::takePictureNow ( ::Player & player,
::Actor * camera,
::Actor * target )
virtual

Implements ICameraItemComponent.

◆ use()

virtual void CameraItemComponentLegacy::use ( ::ItemStack & instance,
::Player & player,
::HandSlot handSlot )
virtual

Implements ICameraItemComponent.

◆ releaseUsing()

virtual void CameraItemComponentLegacy::releaseUsing ( ::ItemStack & instance,
::Player & player,
int durationLeft )
virtual

Implements ICameraItemComponent.

◆ useOn()

virtual bool CameraItemComponentLegacy::useOn ( ::ItemStack & instance,
::Actor & actor,
::BlockPos const & blockPos,
uchar face,
::Vec3 const & ,
::HandSlot handSlot )
virtual

Implements ICameraItemComponent.

◆ canPlace()

virtual bool CameraItemComponentLegacy::canPlace ( ::ItemStack const & instance,
::Actor & actor,
::BlockPos const & blockPos,
uchar face ) const
virtual

Implements ICameraItemComponent.

◆ blackBarsDuration()

virtual float CameraItemComponentLegacy::blackBarsDuration ( ) const
virtual

Implements ICameraItemComponent.

◆ blackBarsScreenRatio()

virtual float CameraItemComponentLegacy::blackBarsScreenRatio ( ) const
virtual

Implements ICameraItemComponent.

◆ shutterScreenRatio()

virtual float CameraItemComponentLegacy::shutterScreenRatio ( ) const
virtual

Implements ICameraItemComponent.

◆ shutterDuration()

virtual float CameraItemComponentLegacy::shutterDuration ( ) const
virtual

Implements ICameraItemComponent.

◆ pictureDuration()

virtual float CameraItemComponentLegacy::pictureDuration ( ) const
virtual

Implements ICameraItemComponent.

◆ slideAwayDuration()

virtual float CameraItemComponentLegacy::slideAwayDuration ( ) const
virtual

Implements ICameraItemComponent.

◆ registerCallbacks()

virtual void CameraItemComponentLegacy::registerCallbacks ( ::CameraCallbacks * callbacks)
virtual

Implements ICameraItemComponent.

◆ buildNetworkTag()

MCAPI ::std::unique_ptr<::CompoundTag > CameraItemComponentLegacy::buildNetworkTag ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ init()

MCAPI bool CameraItemComponentLegacy::init ( ::Json::Value const & data,
::MolangVersion  )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _tryPlace()

MCAPI ::CameraItemComponentLegacy::UseAction CameraItemComponentLegacy::_tryPlace ( ::ItemStack const & instance,
::Actor & actor,
::BlockPos const & blockPos,
uchar face,
::Vec3 & spawnPos )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ initializeFromNetwork()

MCAPI ::Json::Value CameraItemComponentLegacy::initializeFromNetwork ( ::CompoundTag const & tag)
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $takePictureNow()

MCAPI void CameraItemComponentLegacy::$takePictureNow ( ::Player & player,
::Actor * camera,
::Actor * target )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $use()

MCAPI void CameraItemComponentLegacy::$use ( ::ItemStack & instance,
::Player & player,
::HandSlot handSlot )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $releaseUsing()

MCAPI void CameraItemComponentLegacy::$releaseUsing ( ::ItemStack & instance,
::Player & player,
int durationLeft )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $useOn()

MCAPI bool CameraItemComponentLegacy::$useOn ( ::ItemStack & instance,
::Actor & actor,
::BlockPos const & blockPos,
uchar face,
::Vec3 const & ,
::HandSlot handSlot )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $canPlace()

MCAPI bool CameraItemComponentLegacy::$canPlace ( ::ItemStack const & instance,
::Actor & actor,
::BlockPos const & blockPos,
uchar face ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $blackBarsDuration()

MCAPI float CameraItemComponentLegacy::$blackBarsDuration ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $blackBarsScreenRatio()

MCAPI float CameraItemComponentLegacy::$blackBarsScreenRatio ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $shutterScreenRatio()

MCAPI float CameraItemComponentLegacy::$shutterScreenRatio ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $shutterDuration()

MCAPI float CameraItemComponentLegacy::$shutterDuration ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $pictureDuration()

MCAPI float CameraItemComponentLegacy::$pictureDuration ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $slideAwayDuration()

MCAPI float CameraItemComponentLegacy::$slideAwayDuration ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $registerCallbacks()

MCAPI void CameraItemComponentLegacy::$registerCallbacks ( ::CameraCallbacks * callbacks)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

MCAPI void ** CameraItemComponentLegacy::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: