pub enum BlockKind {
Show 1003 variants
Air,
Stone,
Granite,
PolishedGranite,
Diorite,
PolishedDiorite,
Andesite,
PolishedAndesite,
GrassBlock,
Dirt,
CoarseDirt,
Podzol,
Cobblestone,
OakPlanks,
SprucePlanks,
BirchPlanks,
JunglePlanks,
AcaciaPlanks,
CherryPlanks,
DarkOakPlanks,
MangrovePlanks,
BambooPlanks,
BambooMosaic,
OakSapling,
SpruceSapling,
BirchSapling,
JungleSapling,
AcaciaSapling,
CherrySapling,
DarkOakSapling,
MangrovePropagule,
Bedrock,
Water,
Lava,
Sand,
SuspiciousSand,
RedSand,
Gravel,
SuspiciousGravel,
GoldOre,
DeepslateGoldOre,
IronOre,
DeepslateIronOre,
CoalOre,
DeepslateCoalOre,
NetherGoldOre,
OakLog,
SpruceLog,
BirchLog,
JungleLog,
AcaciaLog,
CherryLog,
DarkOakLog,
MangroveLog,
MangroveRoots,
MuddyMangroveRoots,
BambooBlock,
StrippedSpruceLog,
StrippedBirchLog,
StrippedJungleLog,
StrippedAcaciaLog,
StrippedCherryLog,
StrippedDarkOakLog,
StrippedOakLog,
StrippedMangroveLog,
StrippedBambooBlock,
OakWood,
SpruceWood,
BirchWood,
JungleWood,
AcaciaWood,
CherryWood,
DarkOakWood,
MangroveWood,
StrippedOakWood,
StrippedSpruceWood,
StrippedBirchWood,
StrippedJungleWood,
StrippedAcaciaWood,
StrippedCherryWood,
StrippedDarkOakWood,
StrippedMangroveWood,
OakLeaves,
SpruceLeaves,
BirchLeaves,
JungleLeaves,
AcaciaLeaves,
CherryLeaves,
DarkOakLeaves,
MangroveLeaves,
AzaleaLeaves,
FloweringAzaleaLeaves,
Sponge,
WetSponge,
Glass,
LapisOre,
DeepslateLapisOre,
LapisBlock,
Dispenser,
Sandstone,
ChiseledSandstone,
CutSandstone,
NoteBlock,
WhiteBed,
OrangeBed,
MagentaBed,
LightBlueBed,
YellowBed,
LimeBed,
PinkBed,
GrayBed,
LightGrayBed,
CyanBed,
PurpleBed,
BlueBed,
BrownBed,
GreenBed,
RedBed,
BlackBed,
PoweredRail,
DetectorRail,
StickyPiston,
Cobweb,
Grass,
Fern,
DeadBush,
Seagrass,
TallSeagrass,
Piston,
PistonHead,
WhiteWool,
OrangeWool,
MagentaWool,
LightBlueWool,
YellowWool,
LimeWool,
PinkWool,
GrayWool,
LightGrayWool,
CyanWool,
PurpleWool,
BlueWool,
BrownWool,
GreenWool,
RedWool,
BlackWool,
MovingPiston,
Dandelion,
Torchflower,
Poppy,
BlueOrchid,
Allium,
AzureBluet,
RedTulip,
OrangeTulip,
WhiteTulip,
PinkTulip,
OxeyeDaisy,
Cornflower,
WitherRose,
LilyOfTheValley,
BrownMushroom,
RedMushroom,
GoldBlock,
IronBlock,
Bricks,
Tnt,
Bookshelf,
ChiseledBookshelf,
MossyCobblestone,
Obsidian,
Torch,
WallTorch,
Fire,
SoulFire,
Spawner,
OakStairs,
Chest,
RedstoneWire,
DiamondOre,
DeepslateDiamondOre,
DiamondBlock,
CraftingTable,
Wheat,
Farmland,
Furnace,
OakSign,
SpruceSign,
BirchSign,
AcaciaSign,
CherrySign,
JungleSign,
DarkOakSign,
MangroveSign,
BambooSign,
OakDoor,
Ladder,
Rail,
CobblestoneStairs,
OakWallSign,
SpruceWallSign,
BirchWallSign,
AcaciaWallSign,
CherryWallSign,
JungleWallSign,
DarkOakWallSign,
MangroveWallSign,
BambooWallSign,
OakHangingSign,
SpruceHangingSign,
BirchHangingSign,
AcaciaHangingSign,
CherryHangingSign,
JungleHangingSign,
DarkOakHangingSign,
CrimsonHangingSign,
WarpedHangingSign,
MangroveHangingSign,
BambooHangingSign,
OakWallHangingSign,
SpruceWallHangingSign,
BirchWallHangingSign,
AcaciaWallHangingSign,
CherryWallHangingSign,
JungleWallHangingSign,
DarkOakWallHangingSign,
MangroveWallHangingSign,
CrimsonWallHangingSign,
WarpedWallHangingSign,
BambooWallHangingSign,
Lever,
StonePressurePlate,
IronDoor,
OakPressurePlate,
SprucePressurePlate,
BirchPressurePlate,
JunglePressurePlate,
AcaciaPressurePlate,
CherryPressurePlate,
DarkOakPressurePlate,
MangrovePressurePlate,
BambooPressurePlate,
RedstoneOre,
DeepslateRedstoneOre,
RedstoneTorch,
RedstoneWallTorch,
StoneButton,
Snow,
Ice,
SnowBlock,
Cactus,
Clay,
SugarCane,
Jukebox,
OakFence,
Pumpkin,
Netherrack,
SoulSand,
SoulSoil,
Basalt,
PolishedBasalt,
SoulTorch,
SoulWallTorch,
Glowstone,
NetherPortal,
CarvedPumpkin,
JackOLantern,
Cake,
Repeater,
WhiteStainedGlass,
OrangeStainedGlass,
MagentaStainedGlass,
LightBlueStainedGlass,
YellowStainedGlass,
LimeStainedGlass,
PinkStainedGlass,
GrayStainedGlass,
LightGrayStainedGlass,
CyanStainedGlass,
PurpleStainedGlass,
BlueStainedGlass,
BrownStainedGlass,
GreenStainedGlass,
RedStainedGlass,
BlackStainedGlass,
OakTrapdoor,
SpruceTrapdoor,
BirchTrapdoor,
JungleTrapdoor,
AcaciaTrapdoor,
CherryTrapdoor,
DarkOakTrapdoor,
MangroveTrapdoor,
BambooTrapdoor,
StoneBricks,
MossyStoneBricks,
CrackedStoneBricks,
ChiseledStoneBricks,
PackedMud,
MudBricks,
InfestedStone,
InfestedCobblestone,
InfestedStoneBricks,
InfestedMossyStoneBricks,
InfestedCrackedStoneBricks,
InfestedChiseledStoneBricks,
BrownMushroomBlock,
RedMushroomBlock,
MushroomStem,
IronBars,
Chain,
GlassPane,
Melon,
AttachedPumpkinStem,
AttachedMelonStem,
PumpkinStem,
MelonStem,
Vine,
GlowLichen,
OakFenceGate,
BrickStairs,
StoneBrickStairs,
MudBrickStairs,
Mycelium,
LilyPad,
NetherBricks,
NetherBrickFence,
NetherBrickStairs,
NetherWart,
EnchantingTable,
BrewingStand,
Cauldron,
WaterCauldron,
LavaCauldron,
PowderSnowCauldron,
EndPortal,
EndPortalFrame,
EndStone,
DragonEgg,
RedstoneLamp,
Cocoa,
SandstoneStairs,
EmeraldOre,
DeepslateEmeraldOre,
EnderChest,
TripwireHook,
Tripwire,
EmeraldBlock,
SpruceStairs,
BirchStairs,
JungleStairs,
CommandBlock,
Beacon,
CobblestoneWall,
MossyCobblestoneWall,
FlowerPot,
PottedTorchflower,
PottedOakSapling,
PottedSpruceSapling,
PottedBirchSapling,
PottedJungleSapling,
PottedAcaciaSapling,
PottedCherrySapling,
PottedDarkOakSapling,
PottedMangrovePropagule,
PottedFern,
PottedDandelion,
PottedPoppy,
PottedBlueOrchid,
PottedAllium,
PottedAzureBluet,
PottedRedTulip,
PottedOrangeTulip,
PottedWhiteTulip,
PottedPinkTulip,
PottedOxeyeDaisy,
PottedCornflower,
PottedLilyOfTheValley,
PottedWitherRose,
PottedRedMushroom,
PottedBrownMushroom,
PottedDeadBush,
PottedCactus,
Carrots,
Potatoes,
OakButton,
SpruceButton,
BirchButton,
JungleButton,
AcaciaButton,
CherryButton,
DarkOakButton,
MangroveButton,
BambooButton,
SkeletonSkull,
SkeletonWallSkull,
WitherSkeletonSkull,
WitherSkeletonWallSkull,
ZombieHead,
ZombieWallHead,
PlayerHead,
PlayerWallHead,
CreeperHead,
CreeperWallHead,
DragonHead,
DragonWallHead,
PiglinHead,
PiglinWallHead,
Anvil,
ChippedAnvil,
DamagedAnvil,
TrappedChest,
LightWeightedPressurePlate,
HeavyWeightedPressurePlate,
Comparator,
DaylightDetector,
RedstoneBlock,
NetherQuartzOre,
Hopper,
QuartzBlock,
ChiseledQuartzBlock,
QuartzPillar,
QuartzStairs,
ActivatorRail,
Dropper,
WhiteTerracotta,
OrangeTerracotta,
MagentaTerracotta,
LightBlueTerracotta,
YellowTerracotta,
LimeTerracotta,
PinkTerracotta,
GrayTerracotta,
LightGrayTerracotta,
CyanTerracotta,
PurpleTerracotta,
BlueTerracotta,
BrownTerracotta,
GreenTerracotta,
RedTerracotta,
BlackTerracotta,
WhiteStainedGlassPane,
OrangeStainedGlassPane,
MagentaStainedGlassPane,
LightBlueStainedGlassPane,
YellowStainedGlassPane,
LimeStainedGlassPane,
PinkStainedGlassPane,
GrayStainedGlassPane,
LightGrayStainedGlassPane,
CyanStainedGlassPane,
PurpleStainedGlassPane,
BlueStainedGlassPane,
BrownStainedGlassPane,
GreenStainedGlassPane,
RedStainedGlassPane,
BlackStainedGlassPane,
AcaciaStairs,
CherryStairs,
DarkOakStairs,
MangroveStairs,
BambooStairs,
BambooMosaicStairs,
SlimeBlock,
Barrier,
Light,
IronTrapdoor,
Prismarine,
PrismarineBricks,
DarkPrismarine,
PrismarineStairs,
PrismarineBrickStairs,
DarkPrismarineStairs,
PrismarineSlab,
PrismarineBrickSlab,
DarkPrismarineSlab,
SeaLantern,
HayBlock,
WhiteCarpet,
OrangeCarpet,
MagentaCarpet,
LightBlueCarpet,
YellowCarpet,
LimeCarpet,
PinkCarpet,
GrayCarpet,
LightGrayCarpet,
CyanCarpet,
PurpleCarpet,
BlueCarpet,
BrownCarpet,
GreenCarpet,
RedCarpet,
BlackCarpet,
Terracotta,
CoalBlock,
PackedIce,
Sunflower,
Lilac,
RoseBush,
Peony,
TallGrass,
LargeFern,
WhiteBanner,
OrangeBanner,
MagentaBanner,
LightBlueBanner,
YellowBanner,
LimeBanner,
PinkBanner,
GrayBanner,
LightGrayBanner,
CyanBanner,
PurpleBanner,
BlueBanner,
BrownBanner,
GreenBanner,
RedBanner,
BlackBanner,
WhiteWallBanner,
OrangeWallBanner,
MagentaWallBanner,
LightBlueWallBanner,
YellowWallBanner,
LimeWallBanner,
PinkWallBanner,
GrayWallBanner,
LightGrayWallBanner,
CyanWallBanner,
PurpleWallBanner,
BlueWallBanner,
BrownWallBanner,
GreenWallBanner,
RedWallBanner,
BlackWallBanner,
RedSandstone,
ChiseledRedSandstone,
CutRedSandstone,
RedSandstoneStairs,
OakSlab,
SpruceSlab,
BirchSlab,
JungleSlab,
AcaciaSlab,
CherrySlab,
DarkOakSlab,
MangroveSlab,
BambooSlab,
BambooMosaicSlab,
StoneSlab,
SmoothStoneSlab,
SandstoneSlab,
CutSandstoneSlab,
PetrifiedOakSlab,
CobblestoneSlab,
BrickSlab,
StoneBrickSlab,
MudBrickSlab,
NetherBrickSlab,
QuartzSlab,
RedSandstoneSlab,
CutRedSandstoneSlab,
PurpurSlab,
SmoothStone,
SmoothSandstone,
SmoothQuartz,
SmoothRedSandstone,
SpruceFenceGate,
BirchFenceGate,
JungleFenceGate,
AcaciaFenceGate,
CherryFenceGate,
DarkOakFenceGate,
MangroveFenceGate,
BambooFenceGate,
SpruceFence,
BirchFence,
JungleFence,
AcaciaFence,
CherryFence,
DarkOakFence,
MangroveFence,
BambooFence,
SpruceDoor,
BirchDoor,
JungleDoor,
AcaciaDoor,
CherryDoor,
DarkOakDoor,
MangroveDoor,
BambooDoor,
EndRod,
ChorusPlant,
ChorusFlower,
PurpurBlock,
PurpurPillar,
PurpurStairs,
EndStoneBricks,
TorchflowerCrop,
PitcherCrop,
PitcherPlant,
Beetroots,
DirtPath,
EndGateway,
RepeatingCommandBlock,
ChainCommandBlock,
FrostedIce,
MagmaBlock,
NetherWartBlock,
RedNetherBricks,
BoneBlock,
StructureVoid,
Observer,
ShulkerBox,
WhiteShulkerBox,
OrangeShulkerBox,
MagentaShulkerBox,
LightBlueShulkerBox,
YellowShulkerBox,
LimeShulkerBox,
PinkShulkerBox,
GrayShulkerBox,
LightGrayShulkerBox,
CyanShulkerBox,
PurpleShulkerBox,
BlueShulkerBox,
BrownShulkerBox,
GreenShulkerBox,
RedShulkerBox,
BlackShulkerBox,
WhiteGlazedTerracotta,
OrangeGlazedTerracotta,
MagentaGlazedTerracotta,
LightBlueGlazedTerracotta,
YellowGlazedTerracotta,
LimeGlazedTerracotta,
PinkGlazedTerracotta,
GrayGlazedTerracotta,
LightGrayGlazedTerracotta,
CyanGlazedTerracotta,
PurpleGlazedTerracotta,
BlueGlazedTerracotta,
BrownGlazedTerracotta,
GreenGlazedTerracotta,
RedGlazedTerracotta,
BlackGlazedTerracotta,
WhiteConcrete,
OrangeConcrete,
MagentaConcrete,
LightBlueConcrete,
YellowConcrete,
LimeConcrete,
PinkConcrete,
GrayConcrete,
LightGrayConcrete,
CyanConcrete,
PurpleConcrete,
BlueConcrete,
BrownConcrete,
GreenConcrete,
RedConcrete,
BlackConcrete,
WhiteConcretePowder,
OrangeConcretePowder,
MagentaConcretePowder,
LightBlueConcretePowder,
YellowConcretePowder,
LimeConcretePowder,
PinkConcretePowder,
GrayConcretePowder,
LightGrayConcretePowder,
CyanConcretePowder,
PurpleConcretePowder,
BlueConcretePowder,
BrownConcretePowder,
GreenConcretePowder,
RedConcretePowder,
BlackConcretePowder,
Kelp,
KelpPlant,
DriedKelpBlock,
TurtleEgg,
SnifferEgg,
DeadTubeCoralBlock,
DeadBrainCoralBlock,
DeadBubbleCoralBlock,
DeadFireCoralBlock,
DeadHornCoralBlock,
TubeCoralBlock,
BrainCoralBlock,
BubbleCoralBlock,
FireCoralBlock,
HornCoralBlock,
DeadTubeCoral,
DeadBrainCoral,
DeadBubbleCoral,
DeadFireCoral,
DeadHornCoral,
TubeCoral,
BrainCoral,
BubbleCoral,
FireCoral,
HornCoral,
DeadTubeCoralFan,
DeadBrainCoralFan,
DeadBubbleCoralFan,
DeadFireCoralFan,
DeadHornCoralFan,
TubeCoralFan,
BrainCoralFan,
BubbleCoralFan,
FireCoralFan,
HornCoralFan,
DeadTubeCoralWallFan,
DeadBrainCoralWallFan,
DeadBubbleCoralWallFan,
DeadFireCoralWallFan,
DeadHornCoralWallFan,
TubeCoralWallFan,
BrainCoralWallFan,
BubbleCoralWallFan,
FireCoralWallFan,
HornCoralWallFan,
SeaPickle,
BlueIce,
Conduit,
BambooSapling,
Bamboo,
PottedBamboo,
VoidAir,
CaveAir,
BubbleColumn,
PolishedGraniteStairs,
SmoothRedSandstoneStairs,
MossyStoneBrickStairs,
PolishedDioriteStairs,
MossyCobblestoneStairs,
EndStoneBrickStairs,
StoneStairs,
SmoothSandstoneStairs,
SmoothQuartzStairs,
GraniteStairs,
AndesiteStairs,
RedNetherBrickStairs,
PolishedAndesiteStairs,
DioriteStairs,
PolishedGraniteSlab,
SmoothRedSandstoneSlab,
MossyStoneBrickSlab,
PolishedDioriteSlab,
MossyCobblestoneSlab,
EndStoneBrickSlab,
SmoothSandstoneSlab,
SmoothQuartzSlab,
GraniteSlab,
AndesiteSlab,
RedNetherBrickSlab,
PolishedAndesiteSlab,
DioriteSlab,
BrickWall,
PrismarineWall,
RedSandstoneWall,
MossyStoneBrickWall,
GraniteWall,
StoneBrickWall,
MudBrickWall,
NetherBrickWall,
AndesiteWall,
RedNetherBrickWall,
SandstoneWall,
EndStoneBrickWall,
DioriteWall,
Scaffolding,
Loom,
Barrel,
Smoker,
BlastFurnace,
CartographyTable,
FletchingTable,
Grindstone,
Lectern,
SmithingTable,
Stonecutter,
Bell,
Lantern,
SoulLantern,
Campfire,
SoulCampfire,
SweetBerryBush,
WarpedStem,
StrippedWarpedStem,
WarpedHyphae,
StrippedWarpedHyphae,
WarpedNylium,
WarpedFungus,
WarpedWartBlock,
WarpedRoots,
NetherSprouts,
CrimsonStem,
StrippedCrimsonStem,
CrimsonHyphae,
StrippedCrimsonHyphae,
CrimsonNylium,
CrimsonFungus,
Shroomlight,
WeepingVines,
WeepingVinesPlant,
TwistingVines,
TwistingVinesPlant,
CrimsonRoots,
CrimsonPlanks,
WarpedPlanks,
CrimsonSlab,
WarpedSlab,
CrimsonPressurePlate,
WarpedPressurePlate,
CrimsonFence,
WarpedFence,
CrimsonTrapdoor,
WarpedTrapdoor,
CrimsonFenceGate,
WarpedFenceGate,
CrimsonStairs,
WarpedStairs,
CrimsonButton,
WarpedButton,
CrimsonDoor,
WarpedDoor,
CrimsonSign,
WarpedSign,
CrimsonWallSign,
WarpedWallSign,
StructureBlock,
Jigsaw,
Composter,
Target,
BeeNest,
Beehive,
HoneyBlock,
HoneycombBlock,
NetheriteBlock,
AncientDebris,
CryingObsidian,
RespawnAnchor,
PottedCrimsonFungus,
PottedWarpedFungus,
PottedCrimsonRoots,
PottedWarpedRoots,
Lodestone,
Blackstone,
BlackstoneStairs,
BlackstoneWall,
BlackstoneSlab,
PolishedBlackstone,
PolishedBlackstoneBricks,
CrackedPolishedBlackstoneBricks,
ChiseledPolishedBlackstone,
PolishedBlackstoneBrickSlab,
PolishedBlackstoneBrickStairs,
PolishedBlackstoneBrickWall,
GildedBlackstone,
PolishedBlackstoneStairs,
PolishedBlackstoneSlab,
PolishedBlackstonePressurePlate,
PolishedBlackstoneButton,
PolishedBlackstoneWall,
ChiseledNetherBricks,
CrackedNetherBricks,
QuartzBricks,
Candle,
WhiteCandle,
OrangeCandle,
MagentaCandle,
LightBlueCandle,
YellowCandle,
LimeCandle,
PinkCandle,
GrayCandle,
LightGrayCandle,
CyanCandle,
PurpleCandle,
BlueCandle,
BrownCandle,
GreenCandle,
RedCandle,
BlackCandle,
CandleCake,
WhiteCandleCake,
OrangeCandleCake,
MagentaCandleCake,
LightBlueCandleCake,
YellowCandleCake,
LimeCandleCake,
PinkCandleCake,
GrayCandleCake,
LightGrayCandleCake,
CyanCandleCake,
PurpleCandleCake,
BlueCandleCake,
BrownCandleCake,
GreenCandleCake,
RedCandleCake,
BlackCandleCake,
AmethystBlock,
BuddingAmethyst,
AmethystCluster,
LargeAmethystBud,
MediumAmethystBud,
SmallAmethystBud,
Tuff,
Calcite,
TintedGlass,
PowderSnow,
SculkSensor,
CalibratedSculkSensor,
Sculk,
SculkVein,
SculkCatalyst,
SculkShrieker,
OxidizedCopper,
WeatheredCopper,
ExposedCopper,
CopperBlock,
CopperOre,
DeepslateCopperOre,
OxidizedCutCopper,
WeatheredCutCopper,
ExposedCutCopper,
CutCopper,
OxidizedCutCopperStairs,
WeatheredCutCopperStairs,
ExposedCutCopperStairs,
CutCopperStairs,
OxidizedCutCopperSlab,
WeatheredCutCopperSlab,
ExposedCutCopperSlab,
CutCopperSlab,
WaxedCopperBlock,
WaxedWeatheredCopper,
WaxedExposedCopper,
WaxedOxidizedCopper,
WaxedOxidizedCutCopper,
WaxedWeatheredCutCopper,
WaxedExposedCutCopper,
WaxedCutCopper,
WaxedOxidizedCutCopperStairs,
WaxedWeatheredCutCopperStairs,
WaxedExposedCutCopperStairs,
WaxedCutCopperStairs,
WaxedOxidizedCutCopperSlab,
WaxedWeatheredCutCopperSlab,
WaxedExposedCutCopperSlab,
WaxedCutCopperSlab,
LightningRod,
PointedDripstone,
DripstoneBlock,
CaveVines,
CaveVinesPlant,
SporeBlossom,
Azalea,
FloweringAzalea,
MossCarpet,
PinkPetals,
MossBlock,
BigDripleaf,
BigDripleafStem,
SmallDripleaf,
HangingRoots,
RootedDirt,
Mud,
Deepslate,
CobbledDeepslate,
CobbledDeepslateStairs,
CobbledDeepslateSlab,
CobbledDeepslateWall,
PolishedDeepslate,
PolishedDeepslateStairs,
PolishedDeepslateSlab,
PolishedDeepslateWall,
DeepslateTiles,
DeepslateTileStairs,
DeepslateTileSlab,
DeepslateTileWall,
DeepslateBricks,
DeepslateBrickStairs,
DeepslateBrickSlab,
DeepslateBrickWall,
ChiseledDeepslate,
CrackedDeepslateBricks,
CrackedDeepslateTiles,
InfestedDeepslate,
SmoothBasalt,
RawIronBlock,
RawCopperBlock,
RawGoldBlock,
PottedAzaleaBush,
PottedFloweringAzaleaBush,
OchreFroglight,
VerdantFroglight,
PearlescentFroglight,
Frogspawn,
ReinforcedDeepslate,
DecoratedPot,
}
Expand description
An enumeration of all block kinds.
Variants§
Air
Stone
Granite
PolishedGranite
Diorite
PolishedDiorite
Andesite
PolishedAndesite
GrassBlock
Dirt
CoarseDirt
Podzol
Cobblestone
OakPlanks
SprucePlanks
BirchPlanks
JunglePlanks
AcaciaPlanks
CherryPlanks
DarkOakPlanks
MangrovePlanks
BambooPlanks
BambooMosaic
OakSapling
SpruceSapling
BirchSapling
JungleSapling
AcaciaSapling
CherrySapling
DarkOakSapling
MangrovePropagule
Bedrock
Water
Lava
Sand
SuspiciousSand
RedSand
Gravel
SuspiciousGravel
GoldOre
DeepslateGoldOre
IronOre
DeepslateIronOre
CoalOre
DeepslateCoalOre
NetherGoldOre
OakLog
SpruceLog
BirchLog
JungleLog
AcaciaLog
CherryLog
DarkOakLog
MangroveLog
MangroveRoots
MuddyMangroveRoots
BambooBlock
StrippedSpruceLog
StrippedBirchLog
StrippedJungleLog
StrippedAcaciaLog
StrippedCherryLog
StrippedDarkOakLog
StrippedOakLog
StrippedMangroveLog
StrippedBambooBlock
OakWood
SpruceWood
BirchWood
JungleWood
AcaciaWood
CherryWood
DarkOakWood
MangroveWood
StrippedOakWood
StrippedSpruceWood
StrippedBirchWood
StrippedJungleWood
StrippedAcaciaWood
StrippedCherryWood
StrippedDarkOakWood
StrippedMangroveWood
OakLeaves
SpruceLeaves
BirchLeaves
JungleLeaves
AcaciaLeaves
CherryLeaves
DarkOakLeaves
MangroveLeaves
AzaleaLeaves
FloweringAzaleaLeaves
Sponge
WetSponge
Glass
LapisOre
DeepslateLapisOre
LapisBlock
Dispenser
Sandstone
ChiseledSandstone
CutSandstone
NoteBlock
WhiteBed
OrangeBed
MagentaBed
LightBlueBed
YellowBed
LimeBed
PinkBed
GrayBed
LightGrayBed
CyanBed
PurpleBed
BlueBed
BrownBed
GreenBed
RedBed
BlackBed
PoweredRail
DetectorRail
StickyPiston
Cobweb
Grass
Fern
DeadBush
Seagrass
TallSeagrass
Piston
PistonHead
WhiteWool
OrangeWool
MagentaWool
LightBlueWool
YellowWool
LimeWool
PinkWool
GrayWool
LightGrayWool
CyanWool
PurpleWool
BlueWool
BrownWool
GreenWool
RedWool
BlackWool
MovingPiston
Dandelion
Torchflower
Poppy
BlueOrchid
Allium
AzureBluet
RedTulip
OrangeTulip
WhiteTulip
PinkTulip
OxeyeDaisy
Cornflower
WitherRose
LilyOfTheValley
BrownMushroom
RedMushroom
GoldBlock
IronBlock
Bricks
Tnt
Bookshelf
ChiseledBookshelf
MossyCobblestone
Obsidian
Torch
WallTorch
Fire
SoulFire
Spawner
OakStairs
Chest
RedstoneWire
DiamondOre
DeepslateDiamondOre
DiamondBlock
CraftingTable
Wheat
Farmland
Furnace
OakSign
SpruceSign
BirchSign
AcaciaSign
CherrySign
JungleSign
DarkOakSign
MangroveSign
BambooSign
OakDoor
Ladder
Rail
CobblestoneStairs
OakWallSign
SpruceWallSign
BirchWallSign
AcaciaWallSign
CherryWallSign
JungleWallSign
DarkOakWallSign
MangroveWallSign
BambooWallSign
OakHangingSign
SpruceHangingSign
BirchHangingSign
AcaciaHangingSign
CherryHangingSign
JungleHangingSign
DarkOakHangingSign
CrimsonHangingSign
WarpedHangingSign
MangroveHangingSign
BambooHangingSign
OakWallHangingSign
SpruceWallHangingSign
BirchWallHangingSign
AcaciaWallHangingSign
CherryWallHangingSign
JungleWallHangingSign
DarkOakWallHangingSign
MangroveWallHangingSign
CrimsonWallHangingSign
WarpedWallHangingSign
BambooWallHangingSign
Lever
StonePressurePlate
IronDoor
OakPressurePlate
SprucePressurePlate
BirchPressurePlate
JunglePressurePlate
AcaciaPressurePlate
CherryPressurePlate
DarkOakPressurePlate
MangrovePressurePlate
BambooPressurePlate
RedstoneOre
DeepslateRedstoneOre
RedstoneTorch
RedstoneWallTorch
StoneButton
Snow
Ice
SnowBlock
Cactus
Clay
SugarCane
Jukebox
OakFence
Pumpkin
Netherrack
SoulSand
SoulSoil
Basalt
PolishedBasalt
SoulTorch
SoulWallTorch
Glowstone
NetherPortal
CarvedPumpkin
JackOLantern
Cake
Repeater
WhiteStainedGlass
OrangeStainedGlass
MagentaStainedGlass
LightBlueStainedGlass
YellowStainedGlass
LimeStainedGlass
PinkStainedGlass
GrayStainedGlass
LightGrayStainedGlass
CyanStainedGlass
PurpleStainedGlass
BlueStainedGlass
BrownStainedGlass
GreenStainedGlass
RedStainedGlass
BlackStainedGlass
OakTrapdoor
SpruceTrapdoor
BirchTrapdoor
JungleTrapdoor
AcaciaTrapdoor
CherryTrapdoor
DarkOakTrapdoor
MangroveTrapdoor
BambooTrapdoor
StoneBricks
MossyStoneBricks
CrackedStoneBricks
ChiseledStoneBricks
PackedMud
MudBricks
InfestedStone
InfestedCobblestone
InfestedStoneBricks
InfestedMossyStoneBricks
InfestedCrackedStoneBricks
InfestedChiseledStoneBricks
BrownMushroomBlock
RedMushroomBlock
MushroomStem
IronBars
Chain
GlassPane
Melon
AttachedPumpkinStem
AttachedMelonStem
PumpkinStem
MelonStem
Vine
GlowLichen
OakFenceGate
BrickStairs
StoneBrickStairs
MudBrickStairs
Mycelium
LilyPad
NetherBricks
NetherBrickFence
NetherBrickStairs
NetherWart
EnchantingTable
BrewingStand
Cauldron
WaterCauldron
LavaCauldron
PowderSnowCauldron
EndPortal
EndPortalFrame
EndStone
DragonEgg
RedstoneLamp
Cocoa
SandstoneStairs
EmeraldOre
DeepslateEmeraldOre
EnderChest
TripwireHook
Tripwire
EmeraldBlock
SpruceStairs
BirchStairs
JungleStairs
CommandBlock
Beacon
CobblestoneWall
MossyCobblestoneWall
FlowerPot
PottedTorchflower
PottedOakSapling
PottedSpruceSapling
PottedBirchSapling
PottedJungleSapling
PottedAcaciaSapling
PottedCherrySapling
PottedDarkOakSapling
PottedMangrovePropagule
PottedFern
PottedDandelion
PottedPoppy
PottedBlueOrchid
PottedAllium
PottedAzureBluet
PottedRedTulip
PottedOrangeTulip
PottedWhiteTulip
PottedPinkTulip
PottedOxeyeDaisy
PottedCornflower
PottedLilyOfTheValley
PottedWitherRose
PottedRedMushroom
PottedBrownMushroom
PottedDeadBush
PottedCactus
Carrots
Potatoes
OakButton
SpruceButton
BirchButton
JungleButton
AcaciaButton
CherryButton
DarkOakButton
MangroveButton
BambooButton
SkeletonSkull
SkeletonWallSkull
WitherSkeletonSkull
WitherSkeletonWallSkull
ZombieHead
ZombieWallHead
PlayerHead
PlayerWallHead
CreeperHead
CreeperWallHead
DragonHead
DragonWallHead
PiglinHead
PiglinWallHead
Anvil
ChippedAnvil
DamagedAnvil
TrappedChest
LightWeightedPressurePlate
HeavyWeightedPressurePlate
Comparator
DaylightDetector
RedstoneBlock
NetherQuartzOre
Hopper
QuartzBlock
ChiseledQuartzBlock
QuartzPillar
QuartzStairs
ActivatorRail
Dropper
WhiteTerracotta
OrangeTerracotta
MagentaTerracotta
LightBlueTerracotta
YellowTerracotta
LimeTerracotta
PinkTerracotta
GrayTerracotta
LightGrayTerracotta
CyanTerracotta
PurpleTerracotta
BlueTerracotta
BrownTerracotta
GreenTerracotta
RedTerracotta
BlackTerracotta
WhiteStainedGlassPane
OrangeStainedGlassPane
MagentaStainedGlassPane
LightBlueStainedGlassPane
YellowStainedGlassPane
LimeStainedGlassPane
PinkStainedGlassPane
GrayStainedGlassPane
LightGrayStainedGlassPane
CyanStainedGlassPane
PurpleStainedGlassPane
BlueStainedGlassPane
BrownStainedGlassPane
GreenStainedGlassPane
RedStainedGlassPane
BlackStainedGlassPane
AcaciaStairs
CherryStairs
DarkOakStairs
MangroveStairs
BambooStairs
BambooMosaicStairs
SlimeBlock
Barrier
Light
IronTrapdoor
Prismarine
PrismarineBricks
DarkPrismarine
PrismarineStairs
PrismarineBrickStairs
DarkPrismarineStairs
PrismarineSlab
PrismarineBrickSlab
DarkPrismarineSlab
SeaLantern
HayBlock
WhiteCarpet
OrangeCarpet
MagentaCarpet
LightBlueCarpet
YellowCarpet
LimeCarpet
PinkCarpet
GrayCarpet
LightGrayCarpet
CyanCarpet
PurpleCarpet
BlueCarpet
BrownCarpet
GreenCarpet
RedCarpet
BlackCarpet
Terracotta
CoalBlock
PackedIce
Sunflower
Lilac
RoseBush
Peony
TallGrass
LargeFern
WhiteBanner
OrangeBanner
MagentaBanner
LightBlueBanner
YellowBanner
LimeBanner
PinkBanner
GrayBanner
LightGrayBanner
CyanBanner
PurpleBanner
BlueBanner
BrownBanner
GreenBanner
RedBanner
BlackBanner
WhiteWallBanner
OrangeWallBanner
MagentaWallBanner
LightBlueWallBanner
YellowWallBanner
LimeWallBanner
PinkWallBanner
GrayWallBanner
LightGrayWallBanner
CyanWallBanner
PurpleWallBanner
BlueWallBanner
BrownWallBanner
GreenWallBanner
RedWallBanner
BlackWallBanner
RedSandstone
ChiseledRedSandstone
CutRedSandstone
RedSandstoneStairs
OakSlab
SpruceSlab
BirchSlab
JungleSlab
AcaciaSlab
CherrySlab
DarkOakSlab
MangroveSlab
BambooSlab
BambooMosaicSlab
StoneSlab
SmoothStoneSlab
SandstoneSlab
CutSandstoneSlab
PetrifiedOakSlab
CobblestoneSlab
BrickSlab
StoneBrickSlab
MudBrickSlab
NetherBrickSlab
QuartzSlab
RedSandstoneSlab
CutRedSandstoneSlab
PurpurSlab
SmoothStone
SmoothSandstone
SmoothQuartz
SmoothRedSandstone
SpruceFenceGate
BirchFenceGate
JungleFenceGate
AcaciaFenceGate
CherryFenceGate
DarkOakFenceGate
MangroveFenceGate
BambooFenceGate
SpruceFence
BirchFence
JungleFence
AcaciaFence
CherryFence
DarkOakFence
MangroveFence
BambooFence
SpruceDoor
BirchDoor
JungleDoor
AcaciaDoor
CherryDoor
DarkOakDoor
MangroveDoor
BambooDoor
EndRod
ChorusPlant
ChorusFlower
PurpurBlock
PurpurPillar
PurpurStairs
EndStoneBricks
TorchflowerCrop
PitcherCrop
PitcherPlant
Beetroots
DirtPath
EndGateway
RepeatingCommandBlock
ChainCommandBlock
FrostedIce
MagmaBlock
NetherWartBlock
RedNetherBricks
BoneBlock
StructureVoid
Observer
ShulkerBox
WhiteShulkerBox
OrangeShulkerBox
MagentaShulkerBox
LightBlueShulkerBox
YellowShulkerBox
LimeShulkerBox
PinkShulkerBox
GrayShulkerBox
LightGrayShulkerBox
CyanShulkerBox
PurpleShulkerBox
BlueShulkerBox
BrownShulkerBox
GreenShulkerBox
RedShulkerBox
BlackShulkerBox
WhiteGlazedTerracotta
OrangeGlazedTerracotta
MagentaGlazedTerracotta
LightBlueGlazedTerracotta
YellowGlazedTerracotta
LimeGlazedTerracotta
PinkGlazedTerracotta
GrayGlazedTerracotta
LightGrayGlazedTerracotta
CyanGlazedTerracotta
PurpleGlazedTerracotta
BlueGlazedTerracotta
BrownGlazedTerracotta
GreenGlazedTerracotta
RedGlazedTerracotta
BlackGlazedTerracotta
WhiteConcrete
OrangeConcrete
MagentaConcrete
LightBlueConcrete
YellowConcrete
LimeConcrete
PinkConcrete
GrayConcrete
LightGrayConcrete
CyanConcrete
PurpleConcrete
BlueConcrete
BrownConcrete
GreenConcrete
RedConcrete
BlackConcrete
WhiteConcretePowder
OrangeConcretePowder
MagentaConcretePowder
LightBlueConcretePowder
YellowConcretePowder
LimeConcretePowder
PinkConcretePowder
GrayConcretePowder
LightGrayConcretePowder
CyanConcretePowder
PurpleConcretePowder
BlueConcretePowder
BrownConcretePowder
GreenConcretePowder
RedConcretePowder
BlackConcretePowder
Kelp
KelpPlant
DriedKelpBlock
TurtleEgg
SnifferEgg
DeadTubeCoralBlock
DeadBrainCoralBlock
DeadBubbleCoralBlock
DeadFireCoralBlock
DeadHornCoralBlock
TubeCoralBlock
BrainCoralBlock
BubbleCoralBlock
FireCoralBlock
HornCoralBlock
DeadTubeCoral
DeadBrainCoral
DeadBubbleCoral
DeadFireCoral
DeadHornCoral
TubeCoral
BrainCoral
BubbleCoral
FireCoral
HornCoral
DeadTubeCoralFan
DeadBrainCoralFan
DeadBubbleCoralFan
DeadFireCoralFan
DeadHornCoralFan
TubeCoralFan
BrainCoralFan
BubbleCoralFan
FireCoralFan
HornCoralFan
DeadTubeCoralWallFan
DeadBrainCoralWallFan
DeadBubbleCoralWallFan
DeadFireCoralWallFan
DeadHornCoralWallFan
TubeCoralWallFan
BrainCoralWallFan
BubbleCoralWallFan
FireCoralWallFan
HornCoralWallFan
SeaPickle
BlueIce
Conduit
BambooSapling
Bamboo
PottedBamboo
VoidAir
CaveAir
BubbleColumn
PolishedGraniteStairs
SmoothRedSandstoneStairs
MossyStoneBrickStairs
PolishedDioriteStairs
MossyCobblestoneStairs
EndStoneBrickStairs
StoneStairs
SmoothSandstoneStairs
SmoothQuartzStairs
GraniteStairs
AndesiteStairs
RedNetherBrickStairs
PolishedAndesiteStairs
DioriteStairs
PolishedGraniteSlab
SmoothRedSandstoneSlab
MossyStoneBrickSlab
PolishedDioriteSlab
MossyCobblestoneSlab
EndStoneBrickSlab
SmoothSandstoneSlab
SmoothQuartzSlab
GraniteSlab
AndesiteSlab
RedNetherBrickSlab
PolishedAndesiteSlab
DioriteSlab
BrickWall
PrismarineWall
RedSandstoneWall
MossyStoneBrickWall
GraniteWall
StoneBrickWall
MudBrickWall
NetherBrickWall
AndesiteWall
RedNetherBrickWall
SandstoneWall
EndStoneBrickWall
DioriteWall
Scaffolding
Loom
Barrel
Smoker
BlastFurnace
CartographyTable
FletchingTable
Grindstone
Lectern
SmithingTable
Stonecutter
Bell
Lantern
SoulLantern
Campfire
SoulCampfire
SweetBerryBush
WarpedStem
StrippedWarpedStem
WarpedHyphae
StrippedWarpedHyphae
WarpedNylium
WarpedFungus
WarpedWartBlock
WarpedRoots
NetherSprouts
CrimsonStem
StrippedCrimsonStem
CrimsonHyphae
StrippedCrimsonHyphae
CrimsonNylium
CrimsonFungus
Shroomlight
WeepingVines
WeepingVinesPlant
TwistingVines
TwistingVinesPlant
CrimsonRoots
CrimsonPlanks
WarpedPlanks
CrimsonSlab
WarpedSlab
CrimsonPressurePlate
WarpedPressurePlate
CrimsonFence
WarpedFence
CrimsonTrapdoor
WarpedTrapdoor
CrimsonFenceGate
WarpedFenceGate
CrimsonStairs
WarpedStairs
CrimsonButton
WarpedButton
CrimsonDoor
WarpedDoor
CrimsonSign
WarpedSign
CrimsonWallSign
WarpedWallSign
StructureBlock
Jigsaw
Composter
Target
BeeNest
Beehive
HoneyBlock
HoneycombBlock
NetheriteBlock
AncientDebris
CryingObsidian
RespawnAnchor
PottedCrimsonFungus
PottedWarpedFungus
PottedCrimsonRoots
PottedWarpedRoots
Lodestone
Blackstone
BlackstoneStairs
BlackstoneWall
BlackstoneSlab
PolishedBlackstone
PolishedBlackstoneBricks
CrackedPolishedBlackstoneBricks
ChiseledPolishedBlackstone
PolishedBlackstoneBrickSlab
PolishedBlackstoneBrickStairs
PolishedBlackstoneBrickWall
GildedBlackstone
PolishedBlackstoneStairs
PolishedBlackstoneSlab
PolishedBlackstonePressurePlate
PolishedBlackstoneButton
PolishedBlackstoneWall
ChiseledNetherBricks
CrackedNetherBricks
QuartzBricks
Candle
WhiteCandle
OrangeCandle
MagentaCandle
LightBlueCandle
YellowCandle
LimeCandle
PinkCandle
GrayCandle
LightGrayCandle
CyanCandle
PurpleCandle
BlueCandle
BrownCandle
GreenCandle
RedCandle
BlackCandle
CandleCake
WhiteCandleCake
OrangeCandleCake
MagentaCandleCake
LightBlueCandleCake
YellowCandleCake
LimeCandleCake
PinkCandleCake
GrayCandleCake
LightGrayCandleCake
CyanCandleCake
PurpleCandleCake
BlueCandleCake
BrownCandleCake
GreenCandleCake
RedCandleCake
BlackCandleCake
AmethystBlock
BuddingAmethyst
AmethystCluster
LargeAmethystBud
MediumAmethystBud
SmallAmethystBud
Tuff
Calcite
TintedGlass
PowderSnow
SculkSensor
CalibratedSculkSensor
Sculk
SculkVein
SculkCatalyst
SculkShrieker
OxidizedCopper
WeatheredCopper
ExposedCopper
CopperBlock
CopperOre
DeepslateCopperOre
OxidizedCutCopper
WeatheredCutCopper
ExposedCutCopper
CutCopper
OxidizedCutCopperStairs
WeatheredCutCopperStairs
ExposedCutCopperStairs
CutCopperStairs
OxidizedCutCopperSlab
WeatheredCutCopperSlab
ExposedCutCopperSlab
CutCopperSlab
WaxedCopperBlock
WaxedWeatheredCopper
WaxedExposedCopper
WaxedOxidizedCopper
WaxedOxidizedCutCopper
WaxedWeatheredCutCopper
WaxedExposedCutCopper
WaxedCutCopper
WaxedOxidizedCutCopperStairs
WaxedWeatheredCutCopperStairs
WaxedExposedCutCopperStairs
WaxedCutCopperStairs
WaxedOxidizedCutCopperSlab
WaxedWeatheredCutCopperSlab
WaxedExposedCutCopperSlab
WaxedCutCopperSlab
LightningRod
PointedDripstone
DripstoneBlock
CaveVines
CaveVinesPlant
SporeBlossom
Azalea
FloweringAzalea
MossCarpet
PinkPetals
MossBlock
BigDripleaf
BigDripleafStem
SmallDripleaf
HangingRoots
RootedDirt
Mud
Deepslate
CobbledDeepslate
CobbledDeepslateStairs
CobbledDeepslateSlab
CobbledDeepslateWall
PolishedDeepslate
PolishedDeepslateStairs
PolishedDeepslateSlab
PolishedDeepslateWall
DeepslateTiles
DeepslateTileStairs
DeepslateTileSlab
DeepslateTileWall
DeepslateBricks
DeepslateBrickStairs
DeepslateBrickSlab
DeepslateBrickWall
ChiseledDeepslate
CrackedDeepslateBricks
CrackedDeepslateTiles
InfestedDeepslate
SmoothBasalt
RawIronBlock
RawCopperBlock
RawGoldBlock
PottedAzaleaBush
PottedFloweringAzaleaBush
OchreFroglight
VerdantFroglight
PearlescentFroglight
Frogspawn
ReinforcedDeepslate
DecoratedPot
Implementations§
§impl BlockKind
impl BlockKind
pub fn from_str(name: &str) -> Option<BlockKind>
pub fn from_str(name: &str) -> Option<BlockKind>
Construct a block kind from its snake_case name.
Returns None
if the name is invalid.
pub const fn to_state(self) -> BlockState
pub const fn to_state(self) -> BlockState
Returns the default block state for a given block kind.
pub const fn props(self) -> &'static [PropName]
pub const fn props(self) -> &'static [PropName]
Returns a slice of all properties this block kind has.
pub const fn translation_key(self) -> &'static str
pub const fn to_item_kind(self) -> ItemKind
pub const fn to_item_kind(self) -> ItemKind
Converts a block kind to its corresponding item kind.
ItemKind::Air
is used to indicate the absence of an item.
pub const fn from_item_kind(item: ItemKind) -> Option<BlockKind>
pub const fn from_item_kind(item: ItemKind) -> Option<BlockKind>
Constructs a block kind from an item kind.
If the given item does not have a corresponding block, None
is returned.
pub const fn from_raw(id: u16) -> Option<BlockKind>
pub const fn from_raw(id: u16) -> Option<BlockKind>
Constructs a block kind from a raw block kind ID.
If the given ID is invalid, None
is returned.
pub const fn to_raw(self) -> u16
pub const fn to_raw(self) -> u16
Converts this block kind to its underlying raw block state ID.
The original block kind can be recovered with BlockKind::from_raw
.
Trait Implementations§
§impl Ord for BlockKind
impl Ord for BlockKind
§impl PartialOrd for BlockKind
impl PartialOrd for BlockKind
impl Copy for BlockKind
impl Eq for BlockKind
impl StructuralPartialEq for BlockKind
Auto Trait Implementations§
impl Freeze for BlockKind
impl RefUnwindSafe for BlockKind
impl Send for BlockKind
impl Sync for BlockKind
impl Unpin for BlockKind
impl UnwindSafe for BlockKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates
Self
using data from the given World
.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self
, then passes self.deref()
into the pipe function.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref()
only in debug builds, and is erased in release
builds.