Enum BlockKind

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

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

§

Bush = 27

§

Button = 28

§

Cactus = 29

§

CactusFlower = 30

§

Cake = 31

§

CalibratedSculkSensor = 32

§

Campfire = 33

§

CandleCake = 34

§

Candle = 35

§

Carpet = 36

§

Carrot = 37

§

CartographyTable = 38

§

Cauldron = 39

§

CaveVines = 40

§

CaveVinesPlant = 41

§

CeilingHangingSign = 42

§

Chain = 43

§

Chest = 44

§

ChiseledBookShelf = 45

§

ChorusFlower = 46

§

ChorusPlant = 47

§

Cocoa = 48

§

ColoredFalling = 49

§

Command = 50

§

Comparator = 51

§

Composter = 52

§

ConcretePowder = 53

§

Conduit = 54

§

CopperBulbBlock = 55

§

Coral = 56

§

CoralFan = 57

§

CoralPlant = 58

§

CoralWallFan = 59

§

Crafter = 60

§

CraftingTable = 61

§

Crop = 62

§

CryingObsidian = 63

§

DaylightDetector = 64

§

DryVegetation = 65

§

DecoratedPot = 66

§

DetectorRail = 67

§

DirtPath = 68

§

Dispenser = 69

§

Door = 70

§

DoublePlant = 71

§

DragonEgg = 72

§

DropExperience = 73

§

Dropper = 74

§

EnchantmentTable = 75

§

EnderChest = 76

§

EndGateway = 77

§

EndPortal = 78

§

EndPortalFrame = 79

§

EndRod = 80

§

Eyeblossom = 81

§

Farm = 82

§

BonemealableFeaturePlacer = 83

§

Fence = 84

§

FenceGate = 85

§

Fire = 86

§

FireflyBush = 87

§

FletchingTable = 88

§

Flower = 89

§

FlowerPot = 90

§

Frogspawn = 91

§

FrostedIce = 92

§

Fungus = 93

§

Furnace = 94

§

GlazedTerracotta = 95

§

GlowLichen = 96

§

Grass = 97

§

Grindstone = 98

§

HalfTransparent = 99

§

HangingMoss = 100

§

HangingRoots = 101

§

Hay = 102

§

HeavyCore = 103

§

Honey = 104

§

Hopper = 105

§

HugeMushroom = 106

§

Ice = 107

§

Infested = 108

§

InfestedRotatedPillar = 109

§

IronBars = 110

§

JackOLantern = 111

§

Jigsaw = 112

§

Jukebox = 113

§

Kelp = 114

§

KelpPlant = 115

§

Ladder = 116

§

Lantern = 117

§

LavaCauldron = 118

§

LayeredCauldron = 119

§

LeafLitter = 120

§

Lectern = 121

§

Lever = 122

§

Light = 123

§

LightningRod = 124

§

Liquid = 125

§

Loom = 126

§

Magma = 127

§

MangroveLeaves = 128

§

MangrovePropagule = 129

§

MangroveRoots = 130

§

MossyCarpet = 131

§

MovingPiston = 132

§

Mud = 133

§

Multiface = 134

§

Mushroom = 135

§

Mycelium = 136

§

NetherPortal = 137

§

Netherrack = 138

§

NetherSprouts = 139

§

NetherWart = 140

§

Note = 141

§

Nylium = 142

§

Observer = 143

§

Piglinwallskull = 144

§

FlowerBed = 145

§

PistonBase = 146

§

PistonHead = 147

§

PitcherCrop = 148

§

PlayerHead = 149

§

PlayerWallHead = 150

§

PointedDripstone = 151

§

Potato = 152

§

PowderSnow = 153

§

Powered = 154

§

PoweredRail = 155

§

PressurePlate = 156

§

Pumpkin = 157

§

Rail = 158

§

RedstoneLamp = 159

§

RedstoneOre = 160

§

RedstoneTorch = 161

§

RedstoneWallTorch = 162

§

RedstoneWire = 163

§

Repeater = 164

§

RespawnAnchor = 165

§

RootedDirt = 166

§

Roots = 167

§

RotatedPillar = 168

§

Sapling = 169

§

Sand = 170

§

Scaffolding = 171

§

SculkCatalyst = 172

§

Sculk = 173

§

SculkSensor = 174

§

SculkShrieker = 175

§

SculkVein = 176

§

Seagrass = 177

§

SeaPickle = 178

§

ShortDryGrass = 179

§

ShulkerBox = 180

§

Skull = 181

§

Slab = 182

§

Slime = 183

§

SmallDripleaf = 184

§

SmithingTable = 185

§

Smoker = 186

§

SnifferEgg = 187

§

SnowLayer = 188

§

SnowyDirt = 189

§

SoulFire = 190

§

SoulSand = 191

§

Spawner = 192

§

CreakingHeart = 193

§

Sponge = 194

§

SporeBlossom = 195

§

StainedGlassPane = 196

§

StainedGlass = 197

§

Stair = 198

§

StandingSign = 199

§

Stem = 200

§

Stonecutter = 201

§

Structure = 202

§

StructureVoid = 203

§

SugarCane = 204

§

SweetBerryBush = 205

§

TallDryGrass = 206

§

TallFlower = 207

§

TallGrass = 208

§

TallSeagrass = 209

§

Target = 210

§

Terracotta = 211

§

Test = 212

§

TestInstance = 213

§

TintedGlass = 214

§

TintedParticleLeaves = 215

§

Tnt = 216

§

TorchflowerCrop = 217

§

Torch = 218

§

Transparent = 219

§

Trapdoor = 220

§

TrappedChest = 221

§

TrialSpawner = 222

§

TripWireHook = 223

§

Tripwire = 224

§

TurtleEgg = 225

§

TwistingVinesPlant = 226

§

TwistingVines = 227

§

UntintedParticleLeaves = 228

§

Vault = 229

§

Vine = 230

§

WallBanner = 231

§

WallHangingSign = 232

§

WallSign = 233

§

WallSkull = 234

§

WallTorch = 235

§

Wall = 236

§

Waterlily = 237

§

WaterloggedTransparent = 238

§

WeatheringCopperBulb = 239

§

WeatheringCopperDoor = 240

§

WeatheringCopperFull = 241

§

WeatheringCopperGrate = 242

§

WeatheringCopperSlab = 243

§

WeatheringCopperStair = 244

§

WeatheringCopperTrapDoor = 245

§

Web = 246

§

WeepingVinesPlant = 247

§

WeepingVines = 248

§

WeightedPressurePlate = 249

§

WetSponge = 250

§

WitherRose = 251

§

WitherSkull = 252

§

WitherWallSkull = 253

§

WoolCarpet = 254

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 255.

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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>,