Botcraft 1.21.4
Loading...
Searching...
No Matches
Botcraft::BlockstateProperties Struct Reference

#include <Blockstate.hpp>

Public Attributes

int id = -1
 
bool air = false
 True if the block is air (air, cave_air, void and structure_void are counted as air)
 
ProtocolCraft::Json::Value solid = false
 True if can't go through it.
 
bool transparent = false
 True if not a full 1x1x1 block OR at least one face texture has transparency.
 
bool lava = false
 True for lava.
 
bool water = false
 True for water.
 
ProtocolCraft::Json::Value waterlogged = false
 True for blocks that are always waterlogged (kelp, seagrass...)
 
bool climbable = false
 True if can be used as a ladder.
 
bool hazardous = false
 True if block can hurt when walking in/on it.
 
bool any_tool_harvest = false
 True if this block drops item when broken with no tool.
 
bool slime = false
 True if this block is slime.
 
bool bed = false
 True if this block has the BEDS tag.
 
bool soul_sand = false
 True if this block is soul_sand.
 
bool honey = false
 True if this block is honey.
 
bool scaffolding = false
 True if this block is scaffolding.
 
bool cobweb = false
 True if this block is cobweb.
 
ProtocolCraft::Json::Value up_bubble_column = false
 True if this block is a bubble column going up.
 
ProtocolCraft::Json::Value down_bubble_column = false
 True if this block is a bubble column going down.
 
bool berry_bush = false
 True if this block is sweet_berry_bush.
 
bool powder_snow = false
 True if this block is powder_snow.
 
float horizontal_offset = 0.0f
 Max horizontal offset value of the colliders (for bamboo and pointed dripstone)
 
float hardness = -2.0f
 Digging hardness.
 
float friction = 0.6f
 Slipperiness coefficient.
 
bool custom = false
 True if the model is a custom one (chests/banners etc...)
 
TintType tint_type = TintType::None
 
std::string name = ""
 
std::string path = ""
 
std::vector< std::string > variables = std::vector<std::string>(0)
 
std::vector< BestToolbest_tools = std::vector<BestTool>(0)
 
ProtocolCraft::Json::Value colliders = ProtocolCraft::Json::Value()
 

Detailed Description

Definition at line 36 of file Blockstate.hpp.

Member Data Documentation

◆ air

bool Botcraft::BlockstateProperties::air = false

True if the block is air (air, cave_air, void and structure_void are counted as air)

Definition at line 45 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().

◆ any_tool_harvest

bool Botcraft::BlockstateProperties::any_tool_harvest = false

True if this block drops item when broken with no tool.

Definition at line 61 of file Blockstate.hpp.

Referenced by Botcraft::Blockstate::LoadProperties().

◆ bed

bool Botcraft::BlockstateProperties::bed = false

True if this block has the BEDS tag.

Definition at line 65 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().

◆ berry_bush

bool Botcraft::BlockstateProperties::berry_bush = false

True if this block is sweet_berry_bush.

Definition at line 79 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().

◆ best_tools

std::vector<BestTool> Botcraft::BlockstateProperties::best_tools = std::vector<BestTool>(0)

Definition at line 94 of file Blockstate.hpp.

Referenced by Botcraft::Blockstate::LoadProperties().

◆ climbable

bool Botcraft::BlockstateProperties::climbable = false

True if can be used as a ladder.

Definition at line 57 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().

◆ cobweb

bool Botcraft::BlockstateProperties::cobweb = false

True if this block is cobweb.

Definition at line 73 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().

◆ colliders

ProtocolCraft::Json::Value Botcraft::BlockstateProperties::colliders = ProtocolCraft::Json::Value()

Definition at line 95 of file Blockstate.hpp.

Referenced by Botcraft::Blockstate::Blockstate().

◆ custom

bool Botcraft::BlockstateProperties::custom = false

True if the model is a custom one (chests/banners etc...)

Definition at line 89 of file Blockstate.hpp.

Referenced by Botcraft::Blockstate::Blockstate(), and Botcraft::AssetsManager::LoadBlocksFile().

◆ down_bubble_column

ProtocolCraft::Json::Value Botcraft::BlockstateProperties::down_bubble_column = false

True if this block is a bubble column going down.

Definition at line 77 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().

◆ friction

float Botcraft::BlockstateProperties::friction = 0.6f

Slipperiness coefficient.

Definition at line 87 of file Blockstate.hpp.

Referenced by Botcraft::Blockstate::LoadProperties().

◆ hardness

float Botcraft::BlockstateProperties::hardness = -2.0f

Digging hardness.

Definition at line 85 of file Blockstate.hpp.

Referenced by Botcraft::Blockstate::LoadProperties().

◆ hazardous

bool Botcraft::BlockstateProperties::hazardous = false

True if block can hurt when walking in/on it.

Definition at line 59 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().

◆ honey

bool Botcraft::BlockstateProperties::honey = false

True if this block is honey.

Definition at line 69 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().

◆ horizontal_offset

float Botcraft::BlockstateProperties::horizontal_offset = 0.0f

Max horizontal offset value of the colliders (for bamboo and pointed dripstone)

Definition at line 83 of file Blockstate.hpp.

Referenced by Botcraft::Blockstate::LoadProperties().

◆ id

int Botcraft::BlockstateProperties::id = -1

◆ lava

bool Botcraft::BlockstateProperties::lava = false

True for lava.

Definition at line 51 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().

◆ name

std::string Botcraft::BlockstateProperties::name = ""

Definition at line 91 of file Blockstate.hpp.

Referenced by Botcraft::Blockstate::LoadProperties().

◆ path

std::string Botcraft::BlockstateProperties::path = ""

◆ powder_snow

bool Botcraft::BlockstateProperties::powder_snow = false

True if this block is powder_snow.

Definition at line 81 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().

◆ scaffolding

bool Botcraft::BlockstateProperties::scaffolding = false

True if this block is scaffolding.

Definition at line 71 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().

◆ slime

bool Botcraft::BlockstateProperties::slime = false

True if this block is slime.

Definition at line 63 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().

◆ solid

ProtocolCraft::Json::Value Botcraft::BlockstateProperties::solid = false

True if can't go through it.

Definition at line 47 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().

◆ soul_sand

bool Botcraft::BlockstateProperties::soul_sand = false

True if this block is soul_sand.

Definition at line 67 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().

◆ tint_type

TintType Botcraft::BlockstateProperties::tint_type = TintType::None

◆ transparent

bool Botcraft::BlockstateProperties::transparent = false

True if not a full 1x1x1 block OR at least one face texture has transparency.

Definition at line 49 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().

◆ up_bubble_column

ProtocolCraft::Json::Value Botcraft::BlockstateProperties::up_bubble_column = false

True if this block is a bubble column going up.

Definition at line 75 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().

◆ variables

std::vector<std::string> Botcraft::BlockstateProperties::variables = std::vector<std::string>(0)

◆ water

bool Botcraft::BlockstateProperties::water = false

True for water.

Definition at line 53 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().

◆ waterlogged

ProtocolCraft::Json::Value Botcraft::BlockstateProperties::waterlogged = false

True for blocks that are always waterlogged (kelp, seagrass...)

Definition at line 55 of file Blockstate.hpp.

Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().


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