Enum golden_apple::enums::Block[][src]

#[repr(i32)]
pub enum Block {
Show 80 variants Air, Stone, Granite, PolishedGranite, Diorite, PolishedDiorite, Andesite, PolishedAndesite, GrassBlock(Snowy), Dirt, CoarseDirt, Podzol(Snowy), Cobblestone, OakPlanks, SprucePlanks, BirchPlanks, JunglePlanks, AcaciaPlanks, DarkOakPlanks, OakSapling(SaplingGrowthStage), SpruceSapling(SaplingGrowthStage), BirchSapling(SaplingGrowthStage), JungleSapling(SaplingGrowthStage), AcaciaSapling(SaplingGrowthStage), DarkOakSapling(SaplingGrowthStage), Bedrock, Water(FluidLevel), Lava(FluidLevel), Sand, RedSand, Gravel, GoldOre, DeepslateGoldOre, IronOre, DeepslateIronOre, CoalOre, DeepslateCoalOre, NetherGoldOre, OakLog(Axis), SpruceLog(Axis), BirchLog(Axis), JungleLog(Axis), AcaciaLog(Axis), DarkOakLog(Axis), StrippedSpruceLog(Axis), StrippedBirchLog(Axis), StrippedJungleLog(Axis), StrippedAcaciaLog(Axis), StrippedDarkOakLog(Axis), StrippedOakLog(Axis), OakWood(Axis), SpruceWood(Axis), BirchWood(Axis), JungleWood(Axis), AcaciaWood(Axis), DarkOakWood(Axis), StrippedOakWood(Axis), StrippedSpruceWood(Axis), StrippedBirchWood(Axis), StrippedJungleWood(Axis), StrippedAcaciaWood(Axis), StrippedDarkOakWood(Axis), OakLeaves(LeafDistance, LeafPersistence), SpruceLeaves(LeafDistance, LeafPersistence), BirchLeaves(LeafDistance, LeafPersistence), JungleLeaves(LeafDistance, LeafPersistence), AcaciaLeaves(LeafDistance, LeafPersistence), DarkOakLeaves(LeafDistance, LeafPersistence), AzaleaLeaves(LeafDistance, LeafPersistence), FloweringAzaleaLeaves(LeafDistance, LeafPersistence), Sponge, WetSponge, Glass, LapisOre, DeepslateLapisOre, LapisBlock, Dispenser(Direction, Triggered), Sandstone, ChiseledSandstone, CutSandstone,
}
Expand description

Represents a block. Not all blocks are implimented or supported yet.

Variants

Air
Stone
Granite
PolishedGranite
Diorite
PolishedDiorite
Andesite
PolishedAndesite
GrassBlock(Snowy)

Tuple Fields of GrassBlock

0: Snowy
Dirt
CoarseDirt
Podzol(Snowy)

Tuple Fields of Podzol

0: Snowy
Cobblestone
OakPlanks
SprucePlanks
BirchPlanks
JunglePlanks
AcaciaPlanks
DarkOakPlanks
OakSapling(SaplingGrowthStage)

Tuple Fields of OakSapling

0: SaplingGrowthStage
SpruceSapling(SaplingGrowthStage)

Tuple Fields of SpruceSapling

0: SaplingGrowthStage
BirchSapling(SaplingGrowthStage)

Tuple Fields of BirchSapling

0: SaplingGrowthStage
JungleSapling(SaplingGrowthStage)

Tuple Fields of JungleSapling

0: SaplingGrowthStage
AcaciaSapling(SaplingGrowthStage)

Tuple Fields of AcaciaSapling

0: SaplingGrowthStage
DarkOakSapling(SaplingGrowthStage)

Tuple Fields of DarkOakSapling

0: SaplingGrowthStage
Bedrock
Water(FluidLevel)

Tuple Fields of Water

0: FluidLevel
Lava(FluidLevel)

Tuple Fields of Lava

0: FluidLevel
Sand
RedSand
Gravel
GoldOre
DeepslateGoldOre
IronOre
DeepslateIronOre
CoalOre
DeepslateCoalOre
NetherGoldOre
OakLog(Axis)

Tuple Fields of OakLog

0: Axis
SpruceLog(Axis)

Tuple Fields of SpruceLog

0: Axis
BirchLog(Axis)

Tuple Fields of BirchLog

0: Axis
JungleLog(Axis)

Tuple Fields of JungleLog

0: Axis
AcaciaLog(Axis)

Tuple Fields of AcaciaLog

0: Axis
DarkOakLog(Axis)

Tuple Fields of DarkOakLog

0: Axis
StrippedSpruceLog(Axis)

Tuple Fields of StrippedSpruceLog

0: Axis
StrippedBirchLog(Axis)

Tuple Fields of StrippedBirchLog

0: Axis
StrippedJungleLog(Axis)

Tuple Fields of StrippedJungleLog

0: Axis
StrippedAcaciaLog(Axis)

Tuple Fields of StrippedAcaciaLog

0: Axis
StrippedDarkOakLog(Axis)

Tuple Fields of StrippedDarkOakLog

0: Axis
StrippedOakLog(Axis)

Tuple Fields of StrippedOakLog

0: Axis
OakWood(Axis)

Tuple Fields of OakWood

0: Axis
SpruceWood(Axis)

Tuple Fields of SpruceWood

0: Axis
BirchWood(Axis)

Tuple Fields of BirchWood

0: Axis
JungleWood(Axis)

Tuple Fields of JungleWood

0: Axis
AcaciaWood(Axis)

Tuple Fields of AcaciaWood

0: Axis
DarkOakWood(Axis)

Tuple Fields of DarkOakWood

0: Axis
StrippedOakWood(Axis)

Tuple Fields of StrippedOakWood

0: Axis
StrippedSpruceWood(Axis)

Tuple Fields of StrippedSpruceWood

0: Axis
StrippedBirchWood(Axis)

Tuple Fields of StrippedBirchWood

0: Axis
StrippedJungleWood(Axis)

Tuple Fields of StrippedJungleWood

0: Axis
StrippedAcaciaWood(Axis)

Tuple Fields of StrippedAcaciaWood

0: Axis
StrippedDarkOakWood(Axis)

Tuple Fields of StrippedDarkOakWood

0: Axis
OakLeaves(LeafDistance, LeafPersistence)

Tuple Fields of OakLeaves

0: LeafDistance1: LeafPersistence
SpruceLeaves(LeafDistance, LeafPersistence)

Tuple Fields of SpruceLeaves

0: LeafDistance1: LeafPersistence
BirchLeaves(LeafDistance, LeafPersistence)

Tuple Fields of BirchLeaves

0: LeafDistance1: LeafPersistence
JungleLeaves(LeafDistance, LeafPersistence)

Tuple Fields of JungleLeaves

0: LeafDistance1: LeafPersistence
AcaciaLeaves(LeafDistance, LeafPersistence)

Tuple Fields of AcaciaLeaves

0: LeafDistance1: LeafPersistence
DarkOakLeaves(LeafDistance, LeafPersistence)

Tuple Fields of DarkOakLeaves

0: LeafDistance1: LeafPersistence
AzaleaLeaves(LeafDistance, LeafPersistence)

Tuple Fields of AzaleaLeaves

0: LeafDistance1: LeafPersistence
FloweringAzaleaLeaves(LeafDistance, LeafPersistence)

Tuple Fields of FloweringAzaleaLeaves

0: LeafDistance1: LeafPersistence
Sponge
WetSponge
Glass
LapisOre
DeepslateLapisOre
LapisBlock
Dispenser(Direction, Triggered)

Tuple Fields of Dispenser

0: Direction1: Triggered
Sandstone
ChiseledSandstone
CutSandstone

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.