Botcraft 1.21.5
Loading...
Searching...
No Matches
ProtocolCraft::Components::DataComponentTypeBlocksAttacks Class Reference

#include <DataComponentTypeBlocksAttacks.hpp>

Inheritance diagram for ProtocolCraft::Components::DataComponentTypeBlocksAttacks:
ProtocolCraft::Components::DataComponentType ProtocolCraft::NetworkType

Private Member Functions

 SERIALIZED_FIELD (BlockDelaySeconds, float)
 
 SERIALIZED_FIELD (DisableCooldownScale, float)
 
 SERIALIZED_FIELD (DamageReductions, std::vector< DamageReduction >)
 
 SERIALIZED_FIELD (ItemDamage, ItemDamageFunction)
 
 SERIALIZED_FIELD (BypassedBy, std::optional< Identifier >)
 
 SERIALIZED_FIELD (BlockSound, std::optional< Holder< SoundEvent > >)
 
 SERIALIZED_FIELD (DisableSound, std::optional< Holder< SoundEvent > >)
 

Private Attributes

 DECLARE_READ_WRITE_SERIALIZE
 

Additional Inherited Members

- Public Member Functions inherited from ProtocolCraft::Components::DataComponentType
virtual ~DataComponentType ()
 
- Public Member Functions inherited from ProtocolCraft::NetworkType
virtual ~NetworkType ()
 
virtual void Read (ReadIterator &iter, size_t &length)
 
virtual void Write (WriteContainer &container) const
 
virtual Json::Value Serialize () const
 
- Protected Member Functions inherited from ProtocolCraft::NetworkType
virtual void ReadImpl (ReadIterator &iter, size_t &length)=0
 
virtual void WriteImpl (WriteContainer &container) const =0
 
virtual Json::Value SerializeImpl () const =0
 

Detailed Description

Definition at line 15 of file DataComponentTypeBlocksAttacks.hpp.

Member Function Documentation

◆ SERIALIZED_FIELD() [1/7]

ProtocolCraft::Components::DataComponentTypeBlocksAttacks::SERIALIZED_FIELD ( BlockDelaySeconds  ,
float   
)
private

◆ SERIALIZED_FIELD() [2/7]

ProtocolCraft::Components::DataComponentTypeBlocksAttacks::SERIALIZED_FIELD ( BlockSound  ,
std::optional< Holder< SoundEvent > >   
)
private

◆ SERIALIZED_FIELD() [3/7]

ProtocolCraft::Components::DataComponentTypeBlocksAttacks::SERIALIZED_FIELD ( BypassedBy  ,
std::optional< Identifier  
)
private

◆ SERIALIZED_FIELD() [4/7]

ProtocolCraft::Components::DataComponentTypeBlocksAttacks::SERIALIZED_FIELD ( DamageReductions  ,
std::vector< DamageReduction  
)
private

◆ SERIALIZED_FIELD() [5/7]

ProtocolCraft::Components::DataComponentTypeBlocksAttacks::SERIALIZED_FIELD ( DisableCooldownScale  ,
float   
)
private

◆ SERIALIZED_FIELD() [6/7]

ProtocolCraft::Components::DataComponentTypeBlocksAttacks::SERIALIZED_FIELD ( DisableSound  ,
std::optional< Holder< SoundEvent > >   
)
private

◆ SERIALIZED_FIELD() [7/7]

ProtocolCraft::Components::DataComponentTypeBlocksAttacks::SERIALIZED_FIELD ( ItemDamage  ,
ItemDamageFunction   
)
private

Member Data Documentation

◆ DECLARE_READ_WRITE_SERIALIZE

ProtocolCraft::Components::DataComponentTypeBlocksAttacks::DECLARE_READ_WRITE_SERIALIZE
private

Definition at line 25 of file DataComponentTypeBlocksAttacks.hpp.


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