Skip to main content

AbstractBlockKind

Enum AbstractBlockKind 

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

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

§

CopperChest = 56

§

CopperGolemStatue = 57

§

Coral = 58

§

CoralFan = 59

§

CoralPlant = 60

§

CoralWallFan = 61

§

Crafter = 62

§

CraftingTable = 63

§

Crop = 64

§

CryingObsidian = 65

§

DaylightDetector = 66

§

DryVegetation = 67

§

DecoratedPot = 68

§

DetectorRail = 69

§

DirtPath = 70

§

Dispenser = 71

§

Door = 72

§

DoublePlant = 73

§

DragonEgg = 74

§

DriedGhast = 75

§

DropExperience = 76

§

Dropper = 77

§

EnchantmentTable = 78

§

EnderChest = 79

§

EndGateway = 80

§

EndPortal = 81

§

EndPortalFrame = 82

§

EndRod = 83

§

Eyeblossom = 84

§

Farmland = 85

§

BonemealableFeaturePlacer = 86

§

Fence = 87

§

FenceGate = 88

§

Fire = 89

§

FireflyBush = 90

§

Flower = 91

§

FlowerPot = 92

§

Frogspawn = 93

§

FrostedIce = 94

§

NetherFungus = 95

§

Furnace = 96

§

GlazedTerracotta = 97

§

GlowLichen = 98

§

Grass = 99

§

Grindstone = 100

§

HalfTransparent = 101

§

HangingMoss = 102

§

HangingRoots = 103

§

Hay = 104

§

HeavyCore = 105

§

Honey = 106

§

Hopper = 107

§

HugeMushroom = 108

§

Ice = 109

§

Infested = 110

§

InfestedRotatedPillar = 111

§

IronBars = 112

§

JackOLantern = 113

§

Jigsaw = 114

§

Jukebox = 115

§

Kelp = 116

§

KelpPlant = 117

§

Ladder = 118

§

Lantern = 119

§

LavaCauldron = 120

§

LayeredCauldron = 121

§

LeafLitter = 122

§

Lectern = 123

§

Lever = 124

§

Light = 125

§

LightningRod = 126

§

Liquid = 127

§

Loom = 128

§

Magma = 129

§

MangroveLeaves = 130

§

MangrovePropagule = 131

§

MangroveRoots = 132

§

MossyCarpet = 133

§

MovingPiston = 134

§

Mud = 135

§

Multiface = 136

§

Mushroom = 137

§

Mycelium = 138

§

NetherPortal = 139

§

Netherrack = 140

§

NetherSprouts = 141

§

NetherWart = 142

§

Note = 143

§

Nylium = 144

§

Observer = 145

§

Piglinwallskull = 146

§

FlowerBed = 147

§

PistonBase = 148

§

PistonHead = 149

§

PitcherCrop = 150

§

PlayerHead = 151

§

PlayerWallHead = 152

§

PointedDripstone = 153

§

Potato = 154

§

PowderSnow = 155

§

Powered = 156

§

PoweredRail = 157

§

PotentSulfur = 158

§

PressurePlate = 159

§

Pumpkin = 160

§

Rail = 161

§

RedstoneLamp = 162

§

RedstoneOre = 163

§

RedstoneTorch = 164

§

RedstoneWallTorch = 165

§

RedstoneWire = 166

§

Repeater = 167

§

RespawnAnchor = 168

§

RootedDirt = 169

§

NetherRoots = 170

§

RotatedPillar = 171

§

Sapling = 172

§

Sand = 173

§

Scaffolding = 174

§

SculkCatalyst = 175

§

Sculk = 176

§

SculkSensor = 177

§

SculkShrieker = 178

§

SculkVein = 179

§

Seagrass = 180

§

SeaPickle = 181

§

Shelf = 182

§

ShortDryGrass = 183

§

ShulkerBox = 184

§

Skull = 185

§

Slab = 186

§

Slime = 187

§

SmallDripleaf = 188

§

SmithingTable = 189

§

Smoker = 190

§

SnifferEgg = 191

§

SnowLayer = 192

§

SnowyDirt = 193

§

SoulFire = 194

§

SoulSand = 195

§

Spawner = 196

§

CreakingHeart = 197

§

Sponge = 198

§

SporeBlossom = 199

§

StainedGlassPane = 200

§

StainedGlass = 201

§

Stair = 202

§

StandingSign = 203

§

Stem = 204

§

Stonecutter = 205

§

Structure = 206

§

StructureVoid = 207

§

SugarCane = 208

§

SulfurSpike = 209

§

SweetBerryBush = 210

§

TallDryGrass = 211

§

TallFlower = 212

§

TallGrass = 213

§

TallSeagrass = 214

§

Target = 215

§

Test = 216

§

TestInstance = 217

§

TintedGlass = 218

§

TintedParticleLeaves = 219

§

Tnt = 220

§

TorchflowerCrop = 221

§

Torch = 222

§

Transparent = 223

§

Trapdoor = 224

§

TrappedChest = 225

§

TrialSpawner = 226

§

TripWireHook = 227

§

Tripwire = 228

§

TurtleEgg = 229

§

TwistingVinesPlant = 230

§

TwistingVines = 231

§

UntintedParticleLeaves = 232

§

Vault = 233

§

Vine = 234

§

WallBanner = 235

§

WallHangingSign = 236

§

WallSign = 237

§

WallSkull = 238

§

WallTorch = 239

§

Wall = 240

§

LilyPad = 241

§

WaterloggedTransparent = 242

§

WeatheringCopperBar = 243

§

WeatheringCopperBulb = 244

§

WeatheringCopperChain = 245

§

WeatheringCopperChest = 246

§

WeatheringCopperDoor = 247

§

WeatheringCopperFull = 248

§

WeatheringCopperGolemStatue = 249

§

WeatheringCopperGrate = 250

§

WeatheringCopperSlab = 251

§

WeatheringCopperStair = 252

§

WeatheringCopperTrapdoor = 253

§

WeatheringLantern = 254

§

WeatheringLightningRod = 255

§

Web = 256

§

WeepingVinesPlant = 257

§

WeepingVines = 258

§

WeightedPressurePlate = 259

§

WetSponge = 260

§

WitherRose = 261

§

WitherSkull = 262

§

WitherWallSkull = 263

§

WoolCarpet = 264

Implementations§

Source§

impl AbstractBlockKind

Source

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

Transmutes a u32 to a AbstractBlockKind.

§Safety

The id should be at most 264.

Source

pub const fn is_valid_id(id: u32) -> bool

Source§

impl AbstractBlockKind

Source

pub fn to_str(&self) -> &'static str

Convert the value to a stringified identifier, formatted like "minecraft:air".

Trait Implementations§

Source§

impl AzBuf for AbstractBlockKind

Source§

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

Source§

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

Source§

impl Clone for AbstractBlockKind

Source§

fn clone(&self) -> AbstractBlockKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for AbstractBlockKind

Source§

impl Debug for AbstractBlockKind

Source§

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

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

impl<'de> Deserialize<'de> for AbstractBlockKind

Available on crate feature serde only.
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 AbstractBlockKind

Source§

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

Convert the value to a stringified identifier, formatted like "minecraft:air".

Source§

impl Eq for AbstractBlockKind

Source§

impl<'a> From<AbstractBlockKind> for Identifier

Source§

fn from(value: AbstractBlockKind) -> Self

Converts to this type from the input type.
Source§

impl FromNbtTag for AbstractBlockKind

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 AbstractBlockKind

Parse the value from a stringified identifier, formatted like either "air" or "minecraft:air".

Source§

type Err = ()

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 AbstractBlockKind

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 Ord for AbstractBlockKind

Source§

fn cmp(&self, other: &AbstractBlockKind) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for AbstractBlockKind

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 PartialOrd for AbstractBlockKind

Source§

fn partial_cmp(&self, other: &AbstractBlockKind) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Registry for AbstractBlockKind

Source§

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

Source§

fn to_u32(&self) -> u32

Source§

impl Serialize for AbstractBlockKind

Available on crate feature serde only.
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 StructuralPartialEq for AbstractBlockKind

Source§

impl ToNbtTag for AbstractBlockKind

Source§

fn to_nbt_tag(self) -> NbtTag

§

fn to_optional_nbt_tag(self) -> Option<NbtTag>

Source§

impl<'a> TryFrom<&'a Identifier> for AbstractBlockKind

Source§

type Error = ()

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

fn try_from(ident: &'a Identifier) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u32> for AbstractBlockKind

Source§

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

Safely transmutes a u32 to a AbstractBlockKind.

Source§

type Error = ()

The type returned in the event of a conversion error.

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
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

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

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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