Botcraft 1.21.4
Loading...
Searching...
No Matches
Botcraft::PathfindingBlockstate Class Reference

Public Member Functions

 PathfindingBlockstate ()=default
 
 PathfindingBlockstate (const Blockstate *block, const Position &pos, const bool take_damage)
 
const BlockstateGetBlockstate () const
 
bool IsEmpty () const
 
bool IsSolid () const
 
bool IsHazardous () const
 
bool IsClimbable () const
 
bool IsFluid () const
 
float GetHeight () const
 

Private Attributes

const Blockstateblock = nullptr
 
bool empty = true
 
bool solid = false
 
bool hazardous = false
 
bool climbable = false
 
bool fluid = false
 
float height = 0.0f
 

Detailed Description

Definition at line 15 of file PathfindingTask.cpp.

Constructor & Destructor Documentation

◆ PathfindingBlockstate() [1/2]

Botcraft::PathfindingBlockstate::PathfindingBlockstate ( )
default

◆ PathfindingBlockstate() [2/2]

Botcraft::PathfindingBlockstate::PathfindingBlockstate ( const Blockstate block,
const Position pos,
const bool  take_damage 
)
inline

Member Function Documentation

◆ GetBlockstate()

const Blockstate * Botcraft::PathfindingBlockstate::GetBlockstate ( ) const
inline

Definition at line 63 of file PathfindingTask.cpp.

References block.

◆ GetHeight()

float Botcraft::PathfindingBlockstate::GetHeight ( ) const
inline

Definition at line 69 of file PathfindingTask.cpp.

References height.

Referenced by Botcraft::FindPath().

◆ IsClimbable()

bool Botcraft::PathfindingBlockstate::IsClimbable ( ) const
inline

Definition at line 67 of file PathfindingTask.cpp.

References climbable.

Referenced by Botcraft::FindPath().

◆ IsEmpty()

bool Botcraft::PathfindingBlockstate::IsEmpty ( ) const
inline

Definition at line 64 of file PathfindingTask.cpp.

References empty.

◆ IsFluid()

bool Botcraft::PathfindingBlockstate::IsFluid ( ) const
inline

Definition at line 68 of file PathfindingTask.cpp.

References fluid.

◆ IsHazardous()

bool Botcraft::PathfindingBlockstate::IsHazardous ( ) const
inline

Definition at line 66 of file PathfindingTask.cpp.

References hazardous.

◆ IsSolid()

bool Botcraft::PathfindingBlockstate::IsSolid ( ) const
inline

Definition at line 65 of file PathfindingTask.cpp.

References solid.

Member Data Documentation

◆ block

const Blockstate* Botcraft::PathfindingBlockstate::block = nullptr
private

Definition at line 72 of file PathfindingTask.cpp.

Referenced by GetBlockstate(), and PathfindingBlockstate().

◆ climbable

bool Botcraft::PathfindingBlockstate::climbable = false
private

Definition at line 76 of file PathfindingTask.cpp.

Referenced by IsClimbable(), and PathfindingBlockstate().

◆ empty

bool Botcraft::PathfindingBlockstate::empty = true
private

Definition at line 73 of file PathfindingTask.cpp.

Referenced by IsEmpty(), and PathfindingBlockstate().

◆ fluid

bool Botcraft::PathfindingBlockstate::fluid = false
private

Definition at line 77 of file PathfindingTask.cpp.

Referenced by IsFluid(), and PathfindingBlockstate().

◆ hazardous

bool Botcraft::PathfindingBlockstate::hazardous = false
private

Definition at line 75 of file PathfindingTask.cpp.

Referenced by IsHazardous(), and PathfindingBlockstate().

◆ height

float Botcraft::PathfindingBlockstate::height = 0.0f
private

Definition at line 78 of file PathfindingTask.cpp.

Referenced by GetHeight(), and PathfindingBlockstate().

◆ solid

bool Botcraft::PathfindingBlockstate::solid = false
private

Definition at line 74 of file PathfindingTask.cpp.

Referenced by IsSolid(), and PathfindingBlockstate().


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