78 default:
return false;
598 default:
return false;
712 default:
return false;
734 #pragma clang diagnostic push
735 #pragma clang diagnostic ignored "-Wfloat-equal"
742 #pragma clang diagnostic pop
839 default:
return false;
953 default:
return true;
1126 default:
return false;
1145 default:
return false;
bool IsBlockMaterialRock(BLOCKTYPE a_BlockType)
bool IsBlockMaterialLeaves(BLOCKTYPE a_BlockType)
bool IsBlockMaterialVine(BLOCKTYPE a_BlockType)
bool IsBlockMaterialIron(BLOCKTYPE a_BlockType)
bool IsBlockIce(BLOCKTYPE a_BlockType)
bool IsBlockMaterialGourd(BLOCKTYPE a_BlockType)
bool IsBlockWater(BLOCKTYPE a_BlockType)
bool IsBlockMaterialWood(BLOCKTYPE a_BlockType)
bool IsBlockRail(BLOCKTYPE a_BlockType)
bool IsBlockLiquid(BLOCKTYPE a_BlockType)
bool IsBlockWaterOrIce(BLOCKTYPE a_BlockType)
bool IsBlockMaterialPlants(BLOCKTYPE a_BlockType)
bool IsBlockFence(BLOCKTYPE a_BlockType)
bool IsBlockTypeOfDirt(BLOCKTYPE a_BlockType)
bool IsBlockLava(BLOCKTYPE a_BlockType)
bool IsBlockShulkerBox(BLOCKTYPE a_BlockType)
@ E_BLOCK_ORANGE_GLAZED_TERRACOTTA
@ E_BLOCK_HEAVY_WEIGHTED_PRESSURE_PLATE
@ E_BLOCK_REDSTONE_LAMP_OFF
@ E_BLOCK_WHITE_SHULKER_BOX
@ E_BLOCK_NETHER_BRICK_STAIRS
@ E_BLOCK_PINK_SHULKER_BOX
@ E_BLOCK_PINK_GLAZED_TERRACOTTA
@ E_BLOCK_REDSTONE_TORCH_ON
@ E_BLOCK_STONE_PRESSURE_PLATE
@ E_BLOCK_BLUE_SHULKER_BOX
@ E_BLOCK_GRAY_GLAZED_TERRACOTTA
@ E_BLOCK_OAK_WOOD_STAIRS
@ E_BLOCK_STANDING_BANNER
@ E_BLOCK_DAYLIGHT_SENSOR
@ E_BLOCK_REDSTONE_REPEATER_ON
@ E_BLOCK_BROWN_SHULKER_BOX
@ E_BLOCK_DOUBLE_WOODEN_SLAB
@ E_BLOCK_COBBLESTONE_STAIRS
@ E_BLOCK_STATIONARY_LAVA
@ E_BLOCK_LIGHT_BLUE_SHULKER_BOX
@ E_BLOCK_BIRCH_FENCE_GATE
@ E_BLOCK_DARK_OAK_WOOD_STAIRS
@ E_BLOCK_REPEATING_COMMAND_BLOCK
@ E_BLOCK_BURNING_FURNACE
@ E_BLOCK_BLACK_GLAZED_TERRACOTTA
@ E_BLOCK_ACACIA_FENCE_GATE
@ E_BLOCK_STONE_BRICK_STAIRS
@ E_BLOCK_ENCHANTMENT_TABLE
@ E_BLOCK_END_PORTAL_FRAME
@ E_BLOCK_PRISMARINE_BLOCK
@ E_BLOCK_RED_NETHER_BRICK
@ E_BLOCK_BLOCK_OF_REDSTONE
@ E_BLOCK_MOSSY_COBBLESTONE
@ E_BLOCK_STAINED_GLASS_PANE
@ E_BLOCK_MAGENTA_SHULKER_BOX
@ E_BLOCK_REDSTONE_ORE_GLOWING
@ E_BLOCK_BLUE_GLAZED_TERRACOTTA
@ E_BLOCK_BIRCH_WOOD_STAIRS
@ E_BLOCK_CYAN_SHULKER_BOX
@ E_BLOCK_LIME_SHULKER_BOX
@ E_BLOCK_CHAIN_COMMAND_BLOCK
@ E_BLOCK_NETHER_WART_BLOCK
@ E_BLOCK_PURPLE_SHULKER_BOX
@ E_BLOCK_PISTON_EXTENSION
@ E_BLOCK_DOUBLE_RED_SANDSTONE_SLAB
@ E_BLOCK_JUNGLE_WOOD_STAIRS
@ E_BLOCK_YELLOW_GLAZED_TERRACOTTA
@ E_BLOCK_MAGENTA_GLAZED_TERRACOTTA
@ E_BLOCK_ACACIA_WOOD_STAIRS
@ E_BLOCK_ORANGE_SHULKER_BOX
@ E_BLOCK_CYAN_GLAZED_TERRACOTTA
@ E_BLOCK_INACTIVE_COMPARATOR
@ E_BLOCK_DOUBLE_STONE_SLAB
@ E_BLOCK_ACTIVE_COMPARATOR
@ E_BLOCK_RED_SANDSTONE_STAIRS
@ E_BLOCK_PISTON_MOVED_BLOCK
@ E_BLOCK_STRUCTURE_BLOCK
@ E_BLOCK_SPRUCE_FENCE_GATE
@ E_BLOCK_GRAY_SHULKER_BOX
@ E_BLOCK_LIGHT_BLUE_GLAZED_TERRACOTTA
@ E_BLOCK_SPRUCE_WOOD_STAIRS
@ E_BLOCK_YELLOW_SHULKER_BOX
@ E_BLOCK_DARK_OAK_FENCE_GATE
@ E_BLOCK_CONCRETE_POWDER
@ E_BLOCK_JUNGLE_FENCE_GATE
@ E_BLOCK_PURPLE_GLAZED_TERRACOTTA
@ E_BLOCK_HUGE_BROWN_MUSHROOM
@ E_BLOCK_WOODEN_PRESSURE_PLATE
@ E_BLOCK_HUGE_RED_MUSHROOM
@ E_BLOCK_GREEN_SHULKER_BOX
@ E_BLOCK_BLACK_SHULKER_BOX
@ E_BLOCK_REDSTONE_TORCH_OFF
@ E_BLOCK_LIGHT_GRAY_GLAZED_TERRACOTTA
@ E_BLOCK_NETHER_QUARTZ_ORE
@ E_BLOCK_LIGHT_GRAY_SHULKER_BOX
@ E_BLOCK_GREEN_GLAZED_TERRACOTTA
@ E_BLOCK_SANDSTONE_STAIRS
@ E_BLOCK_LIGHT_WEIGHTED_PRESSURE_PLATE
@ E_BLOCK_REDSTONE_REPEATER_OFF
@ E_BLOCK_PURPUR_DOUBLE_SLAB
@ E_BLOCK_LIME_GLAZED_TERRACOTTA
@ E_BLOCK_REDSTONE_LAMP_ON
@ E_BLOCK_INVERTED_DAYLIGHT_SENSOR
@ E_BLOCK_WHITE_GLAZED_TERRACOTTA
@ E_BLOCK_STATIONARY_WATER
@ E_BLOCK_COBBLESTONE_WALL
@ E_BLOCK_BROWN_GLAZED_TERRACOTTA
@ E_BLOCK_NETHER_BRICK_FENCE
@ E_BLOCK_RED_SANDSTONE_SLAB
@ E_BLOCK_RED_SHULKER_BOX
@ E_BLOCK_RED_GLAZED_TERRACOTTA
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
unsigned char BLOCKTYPE
The datatype used by blockdata.
static float GetBlockHeight(BLOCKTYPE Block)
Block's height.
static float GetHardness(BLOCKTYPE Block)
Block's hardness.
static bool IsUseableBySpectator(BLOCKTYPE Block)
Can a spectator interact with this block?
static bool CanBeTerraformed(BLOCKTYPE Block)
Can a finisher change it?
static bool IsSolid(BLOCKTYPE Block)
Is this block solid (player cannot walk through)?
static NIBBLETYPE GetSpreadLightFalloff(BLOCKTYPE Block)
How much light do the blocks consume?
static bool IsSnowable(BLOCKTYPE Block)
static bool FullyOccupiesVoxel(BLOCKTYPE Block)
Does this block fully occupy its voxel - is it a 'full' block?
static NIBBLETYPE GetLightValue(BLOCKTYPE Block)
How much light do the blocks emit on their own?
static bool IsClickedThrough(BLOCKTYPE a_Block)
Does the client pretend the block doesn't exist when clicking? For example, digging a fire will hit t...
static bool IsTransparent(BLOCKTYPE Block)
Is a block transparent? (https://minecraft.wiki/w/Opacity)
static bool IsPistonBreakable(BLOCKTYPE Block)
Can a piston break this block?
static bool IsOneHitDig(BLOCKTYPE Block)
Is a block destroyed after a single hit? Warning: IsOneHitDig does not take into account enchantments...
static bool IsRainBlocker(BLOCKTYPE Block)
Does this block block the passage of rain?
static bool IsSkylightDispersant(BLOCKTYPE Block)
Does this block disperse sky light? (only relevant for transparent blocks)