![]() |
Botcraft 1.21.4
|
#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< BestTool > | best_tools = std::vector<BestTool>(0) |
ProtocolCraft::Json::Value | colliders = ProtocolCraft::Json::Value() |
Definition at line 36 of file Blockstate.hpp.
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().
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().
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().
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().
Definition at line 94 of file Blockstate.hpp.
Referenced by Botcraft::Blockstate::LoadProperties().
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().
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().
ProtocolCraft::Json::Value Botcraft::BlockstateProperties::colliders = ProtocolCraft::Json::Value() |
Definition at line 95 of file Blockstate.hpp.
Referenced by Botcraft::Blockstate::Blockstate().
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().
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().
float Botcraft::BlockstateProperties::friction = 0.6f |
Slipperiness coefficient.
Definition at line 87 of file Blockstate.hpp.
Referenced by Botcraft::Blockstate::LoadProperties().
float Botcraft::BlockstateProperties::hardness = -2.0f |
Digging hardness.
Definition at line 85 of file Blockstate.hpp.
Referenced by Botcraft::Blockstate::LoadProperties().
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().
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().
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().
int Botcraft::BlockstateProperties::id = -1 |
Definition at line 42 of file Blockstate.hpp.
Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().
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().
std::string Botcraft::BlockstateProperties::name = "" |
Definition at line 91 of file Blockstate.hpp.
Referenced by Botcraft::Blockstate::LoadProperties().
std::string Botcraft::BlockstateProperties::path = "" |
Definition at line 92 of file Blockstate.hpp.
Referenced by Botcraft::Blockstate::Blockstate(), and Botcraft::AssetsManager::LoadBlocksFile().
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().
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().
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().
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().
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().
TintType Botcraft::BlockstateProperties::tint_type = TintType::None |
Definition at line 90 of file Blockstate.hpp.
Referenced by Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().
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().
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().
std::vector<std::string> Botcraft::BlockstateProperties::variables = std::vector<std::string>(0) |
Definition at line 93 of file Blockstate.hpp.
Referenced by Botcraft::Blockstate::Blockstate(), Botcraft::AssetsManager::LoadBlocksFile(), and Botcraft::Blockstate::LoadProperties().
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().
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().