Enum BlockKind

Source
#[repr(u32)]
pub enum BlockKind {
Show 245 variants Block = 0, Air = 1, Amethyst = 2, AmethystCluster = 3, Anvil = 4, AttachedStem = 5, Azalea = 6, BambooSapling = 7, BambooStalk = 8, Banner = 9, Barrel = 10, Barrier = 11, BaseCoralFan = 12, BaseCoralPlant = 13, BaseCoralWallFan = 14, Beacon = 15, Bed = 16, Beehive = 17, Beetroot = 18, Bell = 19, BigDripleaf = 20, BigDripleafStem = 21, BlastFurnace = 22, BrewingStand = 23, Brushable = 24, BubbleColumn = 25, BuddingAmethyst = 26, Button = 27, Cactus = 28, Cake = 29, CalibratedSculkSensor = 30, Campfire = 31, CandleCake = 32, Candle = 33, Carpet = 34, Carrot = 35, CartographyTable = 36, Cauldron = 37, CaveVines = 38, CaveVinesPlant = 39, CeilingHangingSign = 40, Chain = 41, Chest = 42, ChiseledBookShelf = 43, ChorusFlower = 44, ChorusPlant = 45, Cocoa = 46, ColoredFalling = 47, Command = 48, Comparator = 49, Composter = 50, ConcretePowder = 51, Conduit = 52, CopperBulbBlock = 53, Coral = 54, CoralFan = 55, CoralPlant = 56, CoralWallFan = 57, Crafter = 58, CraftingTable = 59, Crop = 60, CryingObsidian = 61, DaylightDetector = 62, DeadBush = 63, DecoratedPot = 64, DetectorRail = 65, DirtPath = 66, Dispenser = 67, Door = 68, DoublePlant = 69, DragonEgg = 70, DropExperience = 71, Dropper = 72, EnchantmentTable = 73, EnderChest = 74, EndGateway = 75, EndPortal = 76, EndPortalFrame = 77, EndRod = 78, Eyeblossom = 79, Farm = 80, BonemealableFeaturePlacer = 81, Fence = 82, FenceGate = 83, Fire = 84, FletchingTable = 85, Flower = 86, FlowerPot = 87, Frogspawn = 88, FrostedIce = 89, Fungus = 90, Furnace = 91, GlazedTerracotta = 92, GlowLichen = 93, Grass = 94, Grindstone = 95, HalfTransparent = 96, HangingMoss = 97, HangingRoots = 98, Hay = 99, HeavyCore = 100, Honey = 101, Hopper = 102, HugeMushroom = 103, Ice = 104, Infested = 105, InfestedRotatedPillar = 106, IronBars = 107, JackOLantern = 108, Jigsaw = 109, Jukebox = 110, Kelp = 111, KelpPlant = 112, Ladder = 113, Lantern = 114, LavaCauldron = 115, LayeredCauldron = 116, Leaves = 117, Lectern = 118, Lever = 119, Light = 120, LightningRod = 121, Liquid = 122, Loom = 123, Magma = 124, MangroveLeaves = 125, MangrovePropagule = 126, MangroveRoots = 127, MossyCarpet = 128, MovingPiston = 129, Mud = 130, Multiface = 131, Mushroom = 132, Mycelium = 133, NetherPortal = 134, Netherrack = 135, NetherSprouts = 136, NetherWart = 137, Note = 138, Nylium = 139, Observer = 140, Piglinwallskull = 141, ParticleLeaves = 142, PinkPetals = 143, PistonBase = 144, PistonHead = 145, PitcherCrop = 146, PlayerHead = 147, PlayerWallHead = 148, PointedDripstone = 149, Potato = 150, PowderSnow = 151, Powered = 152, PoweredRail = 153, PressurePlate = 154, Pumpkin = 155, Rail = 156, RedstoneLamp = 157, RedstoneOre = 158, RedstoneTorch = 159, RedstoneWallTorch = 160, RedstoneWire = 161, Repeater = 162, RespawnAnchor = 163, RootedDirt = 164, Roots = 165, RotatedPillar = 166, Sapling = 167, Scaffolding = 168, SculkCatalyst = 169, Sculk = 170, SculkSensor = 171, SculkShrieker = 172, SculkVein = 173, Seagrass = 174, SeaPickle = 175, ShulkerBox = 176, Skull = 177, Slab = 178, Slime = 179, SmallDripleaf = 180, SmithingTable = 181, Smoker = 182, SnifferEgg = 183, SnowLayer = 184, SnowyDirt = 185, SoulFire = 186, SoulSand = 187, Spawner = 188, CreakingHeart = 189, Sponge = 190, SporeBlossom = 191, StainedGlassPane = 192, StainedGlass = 193, Stair = 194, StandingSign = 195, Stem = 196, Stonecutter = 197, Structure = 198, StructureVoid = 199, SugarCane = 200, SweetBerryBush = 201, TallFlower = 202, TallGrass = 203, TallSeagrass = 204, Target = 205, TintedGlass = 206, Tnt = 207, TorchflowerCrop = 208, Torch = 209, Transparent = 210, Trapdoor = 211, TrappedChest = 212, TrialSpawner = 213, TripWireHook = 214, Tripwire = 215, TurtleEgg = 216, TwistingVinesPlant = 217, TwistingVines = 218, Vault = 219, Vine = 220, WallBanner = 221, WallHangingSign = 222, WallSign = 223, WallSkull = 224, WallTorch = 225, Wall = 226, Waterlily = 227, WaterloggedTransparent = 228, WeatheringCopperBulb = 229, WeatheringCopperDoor = 230, WeatheringCopperFull = 231, WeatheringCopperGrate = 232, WeatheringCopperSlab = 233, WeatheringCopperStair = 234, WeatheringCopperTrapDoor = 235, Web = 236, WeepingVinesPlant = 237, WeepingVines = 238, WeightedPressurePlate = 239, WetSponge = 240, WitherRose = 241, WitherSkull = 242, WitherWallSkull = 243, WoolCarpet = 244,
}

Variants§

§

Block = 0

§

Air = 1

§

Amethyst = 2

§

AmethystCluster = 3

§

Anvil = 4

§

AttachedStem = 5

§

Azalea = 6

§

BambooSapling = 7

§

BambooStalk = 8

§

Banner = 9

§

Barrel = 10

§

Barrier = 11

§

BaseCoralFan = 12

§

BaseCoralPlant = 13

§

BaseCoralWallFan = 14

§

Beacon = 15

§

Bed = 16

§

Beehive = 17

§

Beetroot = 18

§

Bell = 19

§

BigDripleaf = 20

§

BigDripleafStem = 21

§

BlastFurnace = 22

§

BrewingStand = 23

§

Brushable = 24

§

BubbleColumn = 25

§

BuddingAmethyst = 26

§

Button = 27

§

Cactus = 28

§

Cake = 29

§

CalibratedSculkSensor = 30

§

Campfire = 31

§

CandleCake = 32

§

Candle = 33

§

Carpet = 34

§

Carrot = 35

§

CartographyTable = 36

§

Cauldron = 37

§

CaveVines = 38

§

CaveVinesPlant = 39

§

CeilingHangingSign = 40

§

Chain = 41

§

Chest = 42

§

ChiseledBookShelf = 43

§

ChorusFlower = 44

§

ChorusPlant = 45

§

Cocoa = 46

§

ColoredFalling = 47

§

Command = 48

§

Comparator = 49

§

Composter = 50

§

ConcretePowder = 51

§

Conduit = 52

§

CopperBulbBlock = 53

§

Coral = 54

§

CoralFan = 55

§

CoralPlant = 56

§

CoralWallFan = 57

§

Crafter = 58

§

CraftingTable = 59

§

Crop = 60

§

CryingObsidian = 61

§

DaylightDetector = 62

§

DeadBush = 63

§

DecoratedPot = 64

§

DetectorRail = 65

§

DirtPath = 66

§

Dispenser = 67

§

Door = 68

§

DoublePlant = 69

§

DragonEgg = 70

§

DropExperience = 71

§

Dropper = 72

§

EnchantmentTable = 73

§

EnderChest = 74

§

EndGateway = 75

§

EndPortal = 76

§

EndPortalFrame = 77

§

EndRod = 78

§

Eyeblossom = 79

§

Farm = 80

§

BonemealableFeaturePlacer = 81

§

Fence = 82

§

FenceGate = 83

§

Fire = 84

§

FletchingTable = 85

§

Flower = 86

§

FlowerPot = 87

§

Frogspawn = 88

§

FrostedIce = 89

§

Fungus = 90

§

Furnace = 91

§

GlazedTerracotta = 92

§

GlowLichen = 93

§

Grass = 94

§

Grindstone = 95

§

HalfTransparent = 96

§

HangingMoss = 97

§

HangingRoots = 98

§

Hay = 99

§

HeavyCore = 100

§

Honey = 101

§

Hopper = 102

§

HugeMushroom = 103

§

Ice = 104

§

Infested = 105

§

InfestedRotatedPillar = 106

§

IronBars = 107

§

JackOLantern = 108

§

Jigsaw = 109

§

Jukebox = 110

§

Kelp = 111

§

KelpPlant = 112

§

Ladder = 113

§

Lantern = 114

§

LavaCauldron = 115

§

LayeredCauldron = 116

§

Leaves = 117

§

Lectern = 118

§

Lever = 119

§

Light = 120

§

LightningRod = 121

§

Liquid = 122

§

Loom = 123

§

Magma = 124

§

MangroveLeaves = 125

§

MangrovePropagule = 126

§

MangroveRoots = 127

§

MossyCarpet = 128

§

MovingPiston = 129

§

Mud = 130

§

Multiface = 131

§

Mushroom = 132

§

Mycelium = 133

§

NetherPortal = 134

§

Netherrack = 135

§

NetherSprouts = 136

§

NetherWart = 137

§

Note = 138

§

Nylium = 139

§

Observer = 140

§

Piglinwallskull = 141

§

ParticleLeaves = 142

§

PinkPetals = 143

§

PistonBase = 144

§

PistonHead = 145

§

PitcherCrop = 146

§

PlayerHead = 147

§

PlayerWallHead = 148

§

PointedDripstone = 149

§

Potato = 150

§

PowderSnow = 151

§

Powered = 152

§

PoweredRail = 153

§

PressurePlate = 154

§

Pumpkin = 155

§

Rail = 156

§

RedstoneLamp = 157

§

RedstoneOre = 158

§

RedstoneTorch = 159

§

RedstoneWallTorch = 160

§

RedstoneWire = 161

§

Repeater = 162

§

RespawnAnchor = 163

§

RootedDirt = 164

§

Roots = 165

§

RotatedPillar = 166

§

Sapling = 167

§

Scaffolding = 168

§

SculkCatalyst = 169

§

Sculk = 170

§

SculkSensor = 171

§

SculkShrieker = 172

§

SculkVein = 173

§

Seagrass = 174

§

SeaPickle = 175

§

ShulkerBox = 176

§

Skull = 177

§

Slab = 178

§

Slime = 179

§

SmallDripleaf = 180

§

SmithingTable = 181

§

Smoker = 182

§

SnifferEgg = 183

§

SnowLayer = 184

§

SnowyDirt = 185

§

SoulFire = 186

§

SoulSand = 187

§

Spawner = 188

§

CreakingHeart = 189

§

Sponge = 190

§

SporeBlossom = 191

§

StainedGlassPane = 192

§

StainedGlass = 193

§

Stair = 194

§

StandingSign = 195

§

Stem = 196

§

Stonecutter = 197

§

Structure = 198

§

StructureVoid = 199

§

SugarCane = 200

§

SweetBerryBush = 201

§

TallFlower = 202

§

TallGrass = 203

§

TallSeagrass = 204

§

Target = 205

§

TintedGlass = 206

§

Tnt = 207

§

TorchflowerCrop = 208

§

Torch = 209

§

Transparent = 210

§

Trapdoor = 211

§

TrappedChest = 212

§

TrialSpawner = 213

§

TripWireHook = 214

§

Tripwire = 215

§

TurtleEgg = 216

§

TwistingVinesPlant = 217

§

TwistingVines = 218

§

Vault = 219

§

Vine = 220

§

WallBanner = 221

§

WallHangingSign = 222

§

WallSign = 223

§

WallSkull = 224

§

WallTorch = 225

§

Wall = 226

§

Waterlily = 227

§

WaterloggedTransparent = 228

§

WeatheringCopperBulb = 229

§

WeatheringCopperDoor = 230

§

WeatheringCopperFull = 231

§

WeatheringCopperGrate = 232

§

WeatheringCopperSlab = 233

§

WeatheringCopperStair = 234

§

WeatheringCopperTrapDoor = 235

§

Web = 236

§

WeepingVinesPlant = 237

§

WeepingVines = 238

§

WeightedPressurePlate = 239

§

WetSponge = 240

§

WitherRose = 241

§

WitherSkull = 242

§

WitherWallSkull = 243

§

WoolCarpet = 244

Implementations§

Source§

impl BlockKind

Source

pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>

Source§

impl BlockKind

Source

pub unsafe fn from_u32_unchecked(id: u32) -> Self

Transmutes a u32 to a BlockKind.

§Safety

The id should be at most 245.

Source

pub fn is_valid_id(id: u32) -> bool

Trait Implementations§

Source§

impl AzaleaRead for BlockKind

Source§

fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl AzaleaWrite for BlockKind

Source§

fn azalea_write(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl Clone for BlockKind

Source§

fn clone(&self) -> BlockKind

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BlockKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for BlockKind

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for BlockKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromNbtTag for BlockKind

Source§

fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>

§

fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>

Source§

impl FromStr for BlockKind

Source§

type Err = String

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for BlockKind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for BlockKind

Source§

fn eq(&self, other: &BlockKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Registry for BlockKind

Source§

fn from_u32(value: u32) -> Option<Self>

Source§

fn to_u32(&self) -> u32

Source§

impl Serialize for BlockKind

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl ToNbtTag for BlockKind

Source§

fn to_nbt_tag(self) -> NbtTag

§

fn to_optional_nbt_tag(self) -> Option<NbtTag>

Source§

impl TryFrom<u32> for BlockKind

Source§

fn try_from(id: u32) -> Result<Self, Self::Error>

Safely transmutes a u32 to a BlockKind.

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

impl Copy for BlockKind

Source§

impl Eq for BlockKind

Source§

impl StructuralPartialEq for BlockKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,