Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ScriptModuleMinecraft::ScriptItemCustomComponentBeforeDurabilityDamageEvent Struct Reference
Inheritance diagram for ScriptModuleMinecraft::ScriptItemCustomComponentBeforeDurabilityDamageEvent:

Public Types

using EventConnectorsType

Public Member Functions

virtual void updateEngineEvent (int &durabilityDamage, ::ItemStack &item, ::Actor &, ::Mob &) const
virtual bool shouldCancel () const
MCAPI void $updateEngineEvent (int &durabilityDamage, ::ItemStack &item, ::Actor &, ::Mob &) const
MCAPI bool $shouldCancel () const

Static Public Member Functions

static MCAPI ::Scripting::ClassBinding bind ()

Public Attributes

::ll::TypedStorage< 4, 4, int > mDurabilityDamage
::ll::TypedStorage< 8, 40, ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack > > > mScriptItem
::ll::TypedStorage< 8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor > > mHitEntity
::ll::TypedStorage< 8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor > > mAttackingEntity

Member Typedef Documentation

◆ EventConnectorsType

using ScriptModuleMinecraft::ScriptItemCustomComponentBeforeDurabilityDamageEvent::EventConnectorsType
Initial value:
Definition Actor.h:116
Definition ItemStack.h:26
Definition Mob.h:58
Definition ScriptCustomComponentPubSubConnectors.h:8

Member Function Documentation

◆ bind()

MCAPI ::Scripting::ClassBinding ScriptModuleMinecraft::ScriptItemCustomComponentBeforeDurabilityDamageEvent::bind ( )
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.

◆ $updateEngineEvent()

MCAPI void ScriptModuleMinecraft::ScriptItemCustomComponentBeforeDurabilityDamageEvent::$updateEngineEvent ( int & durabilityDamage,
::ItemStack & item,
::Actor & ,
::Mob &  ) 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.

◆ $shouldCancel()

MCAPI bool ScriptModuleMinecraft::ScriptItemCustomComponentBeforeDurabilityDamageEvent::$shouldCancel ( ) 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.

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