azalea_registry

Enum BlockKind

Source
#[repr(u32)]
pub enum BlockKind {
Show 243 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, CherryLeaves = 42, Chest = 43, ChiseledBookShelf = 44, ChorusFlower = 45, ChorusPlant = 46, Cocoa = 47, ColoredFalling = 48, Command = 49, Comparator = 50, Composter = 51, ConcretePowder = 52, Conduit = 53, CopperBulbBlock = 54, Coral = 55, CoralFan = 56, CoralPlant = 57, CoralWallFan = 58, Crafter = 59, CraftingTable = 60, Crop = 61, CryingObsidian = 62, DaylightDetector = 63, DeadBush = 64, DecoratedPot = 65, DetectorRail = 66, DirtPath = 67, Dispenser = 68, Door = 69, DoublePlant = 70, DragonEgg = 71, DropExperience = 72, Dropper = 73, EnchantmentTable = 74, EnderChest = 75, EndGateway = 76, EndPortal = 77, EndPortalFrame = 78, EndRod = 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, Mushroom = 131, Mycelium = 132, NetherPortal = 133, Netherrack = 134, NetherSprouts = 135, NetherWart = 136, Note = 137, Nylium = 138, Observer = 139, Piglinwallskull = 140, PinkPetals = 141, PistonBase = 142, PistonHead = 143, PitcherCrop = 144, PlayerHead = 145, PlayerWallHead = 146, PointedDripstone = 147, Potato = 148, PowderSnow = 149, Powered = 150, PoweredRail = 151, PressurePlate = 152, Pumpkin = 153, Rail = 154, RedstoneLamp = 155, RedstoneOre = 156, RedstoneTorch = 157, RedstoneWallTorch = 158, RedstoneWire = 159, Repeater = 160, RespawnAnchor = 161, RootedDirt = 162, Roots = 163, RotatedPillar = 164, Sapling = 165, Scaffolding = 166, SculkCatalyst = 167, Sculk = 168, SculkSensor = 169, SculkShrieker = 170, SculkVein = 171, Seagrass = 172, SeaPickle = 173, ShulkerBox = 174, Skull = 175, Slab = 176, Slime = 177, SmallDripleaf = 178, SmithingTable = 179, Smoker = 180, SnifferEgg = 181, SnowLayer = 182, SnowyDirt = 183, SoulFire = 184, SoulSand = 185, Spawner = 186, CreakingHeart = 187, Sponge = 188, SporeBlossom = 189, StainedGlassPane = 190, StainedGlass = 191, Stair = 192, StandingSign = 193, Stem = 194, Stonecutter = 195, Structure = 196, StructureVoid = 197, SugarCane = 198, SweetBerryBush = 199, TallFlower = 200, TallGrass = 201, TallSeagrass = 202, Target = 203, TintedGlass = 204, Tnt = 205, TorchflowerCrop = 206, Torch = 207, Transparent = 208, Trapdoor = 209, TrappedChest = 210, TrialSpawner = 211, TripWireHook = 212, Tripwire = 213, TurtleEgg = 214, TwistingVinesPlant = 215, TwistingVines = 216, Vault = 217, Vine = 218, WallBanner = 219, WallHangingSign = 220, WallSign = 221, WallSkull = 222, WallTorch = 223, Wall = 224, Waterlily = 225, WaterloggedTransparent = 226, WeatheringCopperBulb = 227, WeatheringCopperDoor = 228, WeatheringCopperFull = 229, WeatheringCopperGrate = 230, WeatheringCopperSlab = 231, WeatheringCopperStair = 232, WeatheringCopperTrapDoor = 233, Web = 234, WeepingVinesPlant = 235, WeepingVines = 236, WeightedPressurePlate = 237, WetSponge = 238, WitherRose = 239, WitherSkull = 240, WitherWallSkull = 241, WoolCarpet = 242,
}

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

§

CherryLeaves = 42

§

Chest = 43

§

ChiseledBookShelf = 44

§

ChorusFlower = 45

§

ChorusPlant = 46

§

Cocoa = 47

§

ColoredFalling = 48

§

Command = 49

§

Comparator = 50

§

Composter = 51

§

ConcretePowder = 52

§

Conduit = 53

§

CopperBulbBlock = 54

§

Coral = 55

§

CoralFan = 56

§

CoralPlant = 57

§

CoralWallFan = 58

§

Crafter = 59

§

CraftingTable = 60

§

Crop = 61

§

CryingObsidian = 62

§

DaylightDetector = 63

§

DeadBush = 64

§

DecoratedPot = 65

§

DetectorRail = 66

§

DirtPath = 67

§

Dispenser = 68

§

Door = 69

§

DoublePlant = 70

§

DragonEgg = 71

§

DropExperience = 72

§

Dropper = 73

§

EnchantmentTable = 74

§

EnderChest = 75

§

EndGateway = 76

§

EndPortal = 77

§

EndPortalFrame = 78

§

EndRod = 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

§

Mushroom = 131

§

Mycelium = 132

§

NetherPortal = 133

§

Netherrack = 134

§

NetherSprouts = 135

§

NetherWart = 136

§

Note = 137

§

Nylium = 138

§

Observer = 139

§

Piglinwallskull = 140

§

PinkPetals = 141

§

PistonBase = 142

§

PistonHead = 143

§

PitcherCrop = 144

§

PlayerHead = 145

§

PlayerWallHead = 146

§

PointedDripstone = 147

§

Potato = 148

§

PowderSnow = 149

§

Powered = 150

§

PoweredRail = 151

§

PressurePlate = 152

§

Pumpkin = 153

§

Rail = 154

§

RedstoneLamp = 155

§

RedstoneOre = 156

§

RedstoneTorch = 157

§

RedstoneWallTorch = 158

§

RedstoneWire = 159

§

Repeater = 160

§

RespawnAnchor = 161

§

RootedDirt = 162

§

Roots = 163

§

RotatedPillar = 164

§

Sapling = 165

§

Scaffolding = 166

§

SculkCatalyst = 167

§

Sculk = 168

§

SculkSensor = 169

§

SculkShrieker = 170

§

SculkVein = 171

§

Seagrass = 172

§

SeaPickle = 173

§

ShulkerBox = 174

§

Skull = 175

§

Slab = 176

§

Slime = 177

§

SmallDripleaf = 178

§

SmithingTable = 179

§

Smoker = 180

§

SnifferEgg = 181

§

SnowLayer = 182

§

SnowyDirt = 183

§

SoulFire = 184

§

SoulSand = 185

§

Spawner = 186

§

CreakingHeart = 187

§

Sponge = 188

§

SporeBlossom = 189

§

StainedGlassPane = 190

§

StainedGlass = 191

§

Stair = 192

§

StandingSign = 193

§

Stem = 194

§

Stonecutter = 195

§

Structure = 196

§

StructureVoid = 197

§

SugarCane = 198

§

SweetBerryBush = 199

§

TallFlower = 200

§

TallGrass = 201

§

TallSeagrass = 202

§

Target = 203

§

TintedGlass = 204

§

Tnt = 205

§

TorchflowerCrop = 206

§

Torch = 207

§

Transparent = 208

§

Trapdoor = 209

§

TrappedChest = 210

§

TrialSpawner = 211

§

TripWireHook = 212

§

Tripwire = 213

§

TurtleEgg = 214

§

TwistingVinesPlant = 215

§

TwistingVines = 216

§

Vault = 217

§

Vine = 218

§

WallBanner = 219

§

WallHangingSign = 220

§

WallSign = 221

§

WallSkull = 222

§

WallTorch = 223

§

Wall = 224

§

Waterlily = 225

§

WaterloggedTransparent = 226

§

WeatheringCopperBulb = 227

§

WeatheringCopperDoor = 228

§

WeatheringCopperFull = 229

§

WeatheringCopperGrate = 230

§

WeatheringCopperSlab = 231

§

WeatheringCopperStair = 232

§

WeatheringCopperTrapDoor = 233

§

Web = 234

§

WeepingVinesPlant = 235

§

WeepingVines = 236

§

WeightedPressurePlate = 237

§

WetSponge = 238

§

WitherRose = 239

§

WitherSkull = 240

§

WitherWallSkull = 241

§

WoolCarpet = 242

Implementations§

Source§

impl BlockKind

Source

pub fn read_from_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 243.

Source

pub fn is_valid_id(id: u32) -> bool

Trait Implementations§

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 McBufReadable for BlockKind

Source§

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

Source§

impl McBufWritable for BlockKind

Source§

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

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 T)

🔬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§

default 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>,