Skip to main content

Item

Struct Item 

Source
pub struct Item(/* private fields */);
Expand description

An item type of this version (id; 1.8 damage / metadata is carried separately in item stacks).

Implementations§

Source§

impl Item

Item constants.

Source

pub const STONE: Self

stone (Stone).

Source

pub const GRASS: Self

grass (Grass Block).

Source

pub const DIRT: Self

dirt (Dirt).

Source

pub const COBBLESTONE: Self

cobblestone (Cobblestone).

Source

pub const PLANKS: Self

planks (Wooden Planks).

Source

pub const SAPLING: Self

sapling (Sapling).

Source

pub const BEDROCK: Self

bedrock (Bedrock).

Source

pub const SAND: Self

sand (Sand).

Source

pub const GRAVEL: Self

gravel (Gravel).

Source

pub const GOLD_ORE: Self

gold_ore (Gold Ore).

Source

pub const IRON_ORE: Self

iron_ore (Iron Ore).

Source

pub const COAL_ORE: Self

coal_ore (Coal Ore).

Source

pub const LOG: Self

log (Wood).

Source

pub const LEAVES: Self

leaves (Leaves).

Source

pub const SPONGE: Self

sponge (Sponge).

Source

pub const GLASS: Self

glass (Glass).

Source

pub const LAPIS_ORE: Self

lapis_ore (Lapis Lazuli Ore).

Source

pub const LAPIS_BLOCK: Self

lapis_block (Lapis Lazuli Block).

Source

pub const DISPENSER: Self

dispenser (Dispenser).

Source

pub const SANDSTONE: Self

sandstone (Sandstone).

Source

pub const NOTEBLOCK: Self

noteblock (Note Block).

Source

pub const GOLDEN_RAIL: Self

golden_rail (Powered Rail).

Source

pub const DETECTOR_RAIL: Self

detector_rail (Detector Rail).

Source

pub const STICKY_PISTON: Self

sticky_piston (Sticky Piston).

Source

pub const WEB: Self

web (Cobweb).

Source

pub const TALLGRASS: Self

tallgrass (Grass).

Source

pub const DEADBUSH: Self

deadbush (Dead Bush).

Source

pub const PISTON: Self

piston (Piston).

Source

pub const WOOL: Self

wool (Wool).

Source

pub const YELLOW_FLOWER: Self

yellow_flower (Dandelion).

Source

pub const RED_FLOWER: Self

red_flower (Poppy).

Source

pub const BROWN_MUSHROOM: Self

brown_mushroom (Brown Mushroom).

Source

pub const RED_MUSHROOM: Self

red_mushroom (Red Mushroom).

Source

pub const GOLD_BLOCK: Self

gold_block (Block of Gold).

Source

pub const IRON_BLOCK: Self

iron_block (Block of Iron).

Source

pub const STONE_SLAB: Self

stone_slab (Stone Slab).

Source

pub const BRICK_BLOCK: Self

brick_block (Brick).

Source

pub const TNT: Self

tnt (TNT).

Source

pub const BOOKSHELF: Self

bookshelf (Bookshelf).

Source

pub const MOSSY_COBBLESTONE: Self

mossy_cobblestone (Moss Stone).

Source

pub const OBSIDIAN: Self

obsidian (Obsidian).

Source

pub const TORCH: Self

torch (Torch).

Source

pub const MOB_SPAWNER: Self

mob_spawner (Monster Spawner).

Source

pub const OAK_STAIRS: Self

oak_stairs (Oak Wood Stairs).

Source

pub const CHEST: Self

chest (Chest).

Source

pub const DIAMOND_ORE: Self

diamond_ore (Diamond Ore).

Source

pub const DIAMOND_BLOCK: Self

diamond_block (Block of Diamond).

Source

pub const CRAFTING_TABLE: Self

crafting_table (Crafting Table).

Source

pub const FARMLAND: Self

farmland (Farmland).

Source

pub const FURNACE: Self

furnace (Furnace).

Source

pub const LIT_FURNACE: Self

lit_furnace (Burning Furnace).

Source

pub const LADDER: Self

ladder (Ladder).

Source

pub const RAIL: Self

rail (Rail).

Source

pub const STONE_STAIRS: Self

stone_stairs (Cobblestone Stairs).

Source

pub const LEVER: Self

lever (Lever).

Source

pub const STONE_PRESSURE_PLATE: Self

stone_pressure_plate (Stone Pressure Plate).

Source

pub const WOODEN_PRESSURE_PLATE: Self

wooden_pressure_plate (Wooden Pressure Plate).

Source

pub const REDSTONE_ORE: Self

redstone_ore (Redstone Ore).

Source

pub const REDSTONE_TORCH: Self

redstone_torch (Redstone Torch).

Source

pub const STONE_BUTTON: Self

stone_button (Stone Button).

Source

pub const SNOW_LAYER: Self

snow_layer (Snow).

Source

pub const ICE: Self

ice (Ice).

Source

pub const SNOW: Self

snow (Snow).

Source

pub const CACTUS: Self

cactus (Cactus).

Source

pub const CLAY: Self

clay (Clay).

Source

pub const JUKEBOX: Self

jukebox (Jukebox).

Source

pub const FENCE: Self

fence (Oak Fence).

Source

pub const PUMPKIN: Self

pumpkin (Pumpkin).

Source

pub const NETHERRACK: Self

netherrack (Netherrack).

Source

pub const SOUL_SAND: Self

soul_sand (Soul Sand).

Source

pub const GLOWSTONE: Self

glowstone (Glowstone).

Source

pub const LIT_PUMPKIN: Self

lit_pumpkin (Jack o’Lantern).

Source

pub const STAINED_GLASS: Self

stained_glass (Stained Glass).

Source

pub const TRAPDOOR: Self

trapdoor (Wooden Trapdoor).

Source

pub const MONSTER_EGG: Self

monster_egg (Monster Egg).

Source

pub const STONEBRICK: Self

stonebrick (Stone Bricks).

Source

pub const BROWN_MUSHROOM_BLOCK: Self

brown_mushroom_block (Brown Mushroom Block).

Source

pub const RED_MUSHROOM_BLOCK: Self

red_mushroom_block (Red Mushroom Block).

Source

pub const IRON_BARS: Self

iron_bars (Iron Bars).

Source

pub const GLASS_PANE: Self

glass_pane (Glass Pane).

Source

pub const MELON_BLOCK: Self

melon_block (Melon).

Source

pub const VINE: Self

vine (Vines).

Source

pub const FENCE_GATE: Self

fence_gate (Oak Fence Gate).

Source

pub const BRICK_STAIRS: Self

brick_stairs (Brick Stairs).

Source

pub const STONE_BRICK_STAIRS: Self

stone_brick_stairs (Stone Brick Stairs).

Source

pub const MYCELIUM: Self

mycelium (Mycelium).

Source

pub const WATERLILY: Self

waterlily (Lily Pad).

Source

pub const NETHER_BRICK: Self

nether_brick (Nether Brick).

Source

pub const NETHER_BRICK_FENCE: Self

nether_brick_fence (Nether Brick Fence).

Source

pub const NETHER_BRICK_STAIRS: Self

nether_brick_stairs (Nether Brick Stairs).

Source

pub const ENCHANTING_TABLE: Self

enchanting_table (Enchantment Table).

Source

pub const END_PORTAL_FRAME: Self

end_portal_frame (End Portal Frame).

Source

pub const END_STONE: Self

end_stone (End Stone).

Source

pub const DRAGON_EGG: Self

dragon_egg (Dragon Egg).

Source

pub const REDSTONE_LAMP: Self

redstone_lamp (Redstone Lamp).

Source

pub const WOODEN_SLAB: Self

wooden_slab (Wood Slab).

Source

pub const SANDSTONE_STAIRS: Self

sandstone_stairs (Sandstone Stairs).

Source

pub const EMERALD_ORE: Self

emerald_ore (Emerald Ore).

Source

pub const ENDER_CHEST: Self

ender_chest (Ender Chest).

Source

pub const TRIPWIRE_HOOK: Self

tripwire_hook (Tripwire Hook).

Source

pub const EMERALD_BLOCK: Self

emerald_block (Block of Emerald).

Source

pub const SPRUCE_STAIRS: Self

spruce_stairs (Spruce Wood Stairs).

Source

pub const BIRCH_STAIRS: Self

birch_stairs (Birch Wood Stairs).

Source

pub const JUNGLE_STAIRS: Self

jungle_stairs (Jungle Wood Stairs).

Source

pub const COMMAND_BLOCK: Self

command_block (Command Block).

Source

pub const BEACON: Self

beacon (Beacon).

Source

pub const COBBLESTONE_WALL: Self

cobblestone_wall (Cobblestone Wall).

Source

pub const WOODEN_BUTTON: Self

wooden_button (Wooden Button).

Source

pub const ANVIL: Self

anvil (Anvil).

Source

pub const TRAPPED_CHEST: Self

trapped_chest (Trapped Chest).

Source

pub const LIGHT_WEIGHTED_PRESSURE_PLATE: Self

light_weighted_pressure_plate (Weighted Pressure Plate (Light)).

Source

pub const HEAVY_WEIGHTED_PRESSURE_PLATE: Self

heavy_weighted_pressure_plate (Weighted Pressure Plate (Heavy)).

Source

pub const DAYLIGHT_DETECTOR: Self

daylight_detector (Daylight Detector).

Source

pub const REDSTONE_BLOCK: Self

redstone_block (Block of Redstone).

Source

pub const QUARTZ_ORE: Self

quartz_ore (Nether Quartz).

Source

pub const HOPPER: Self

hopper (Hopper).

Source

pub const QUARTZ_BLOCK: Self

quartz_block (Block of Quartz).

Source

pub const QUARTZ_STAIRS: Self

quartz_stairs (Quartz Stairs).

Source

pub const ACTIVATOR_RAIL: Self

activator_rail (Activator Rail).

Source

pub const DROPPER: Self

dropper (Dropper).

Source

pub const STAINED_HARDENED_CLAY: Self

stained_hardened_clay (Stained Clay).

Source

pub const STAINED_GLASS_PANE: Self

stained_glass_pane (Stained Glass Pane).

Source

pub const LEAVES2: Self

leaves2 (Leaves).

Source

pub const LOG2: Self

log2 (Wood).

Source

pub const ACACIA_STAIRS: Self

acacia_stairs (Acacia Wood Stairs).

Source

pub const DARK_OAK_STAIRS: Self

dark_oak_stairs (Dark Oak Wood Stairs).

Source

pub const SLIME: Self

slime (Slime Block).

Source

pub const BARRIER: Self

barrier (Barrier).

Source

pub const IRON_TRAPDOOR: Self

iron_trapdoor (Iron Trapdoor).

Source

pub const PRISMARINE: Self

prismarine (Prismarine).

Source

pub const SEA_LANTERN: Self

sea_lantern (Sea Lantern).

Source

pub const HAY_BLOCK: Self

hay_block (Hay Bale).

Source

pub const CARPET: Self

carpet (Carpet).

Source

pub const HARDENED_CLAY: Self

hardened_clay (Hardened Clay).

Source

pub const COAL_BLOCK: Self

coal_block (Block of Coal).

Source

pub const PACKED_ICE: Self

packed_ice (Packed Ice).

Source

pub const DOUBLE_PLANT: Self

double_plant (Large Flowers).

Source

pub const RED_SANDSTONE: Self

red_sandstone (Red Sandstone).

Source

pub const RED_SANDSTONE_STAIRS: Self

red_sandstone_stairs (Red Sandstone Stairs).

Source

pub const STONE_SLAB2: Self

stone_slab2 (Red Sandstone Slab).

Source

pub const SPRUCE_FENCE_GATE: Self

spruce_fence_gate (Spruce Fence Gate).

Source

pub const BIRCH_FENCE_GATE: Self

birch_fence_gate (Birch Fence Gate).

Source

pub const JUNGLE_FENCE_GATE: Self

jungle_fence_gate (Jungle Fence Gate).

Source

pub const DARK_OAK_FENCE_GATE: Self

dark_oak_fence_gate (Dark Oak Fence Gate).

Source

pub const ACACIA_FENCE_GATE: Self

acacia_fence_gate (Acacia Fence Gate).

Source

pub const SPRUCE_FENCE: Self

spruce_fence (Spruce Fence).

Source

pub const BIRCH_FENCE: Self

birch_fence (Birch Fence).

Source

pub const JUNGLE_FENCE: Self

jungle_fence (Jungle Fence).

Source

pub const DARK_OAK_FENCE: Self

dark_oak_fence (Dark Oak Fence).

Source

pub const ACACIA_FENCE: Self

acacia_fence (Acacia Fence).

Source

pub const IRON_SHOVEL: Self

iron_shovel (Iron Shovel).

Source

pub const IRON_PICKAXE: Self

iron_pickaxe (Iron Pickaxe).

Source

pub const IRON_AXE: Self

iron_axe (Iron Axe).

Source

pub const FLINT_AND_STEEL: Self

flint_and_steel (Flint and Steel).

Source

pub const APPLE: Self

apple (Apple).

Source

pub const BOW: Self

bow (Bow).

Source

pub const ARROW: Self

arrow (Arrow).

Source

pub const COAL: Self

coal (Coal).

Source

pub const DIAMOND: Self

diamond (Diamond).

Source

pub const IRON_INGOT: Self

iron_ingot (Iron Ingot).

Source

pub const GOLD_INGOT: Self

gold_ingot (Gold Ingot).

Source

pub const IRON_SWORD: Self

iron_sword (Iron Sword).

Source

pub const WOODEN_SWORD: Self

wooden_sword (Wooden Sword).

Source

pub const WOODEN_SHOVEL: Self

wooden_shovel (Wooden Shovel).

Source

pub const WOODEN_PICKAXE: Self

wooden_pickaxe (Wooden Pickaxe).

Source

pub const WOODEN_AXE: Self

wooden_axe (Wooden Axe).

Source

pub const STONE_SWORD: Self

stone_sword (Stone Sword).

Source

pub const STONE_SHOVEL: Self

stone_shovel (Stone Shovel).

Source

pub const STONE_PICKAXE: Self

stone_pickaxe (Stone Pickaxe).

Source

pub const STONE_AXE: Self

stone_axe (Stone Axe).

Source

pub const DIAMOND_SWORD: Self

diamond_sword (Diamond Sword).

Source

pub const DIAMOND_SHOVEL: Self

diamond_shovel (Diamond Shovel).

Source

pub const DIAMOND_PICKAXE: Self

diamond_pickaxe (Diamond Pickaxe).

Source

pub const DIAMOND_AXE: Self

diamond_axe (Diamond Axe).

Source

pub const STICK: Self

stick (Stick).

Source

pub const BOWL: Self

bowl (Bowl).

Source

pub const MUSHROOM_STEW: Self

mushroom_stew (Mushroom Stew).

Source

pub const GOLDEN_SWORD: Self

golden_sword (Golden Sword).

Source

pub const GOLDEN_SHOVEL: Self

golden_shovel (Golden Shovel).

Source

pub const GOLDEN_PICKAXE: Self

golden_pickaxe (Golden Pickaxe).

Source

pub const GOLDEN_AXE: Self

golden_axe (Golden Axe).

Source

pub const STRING: Self

string (String).

Source

pub const FEATHER: Self

feather (Feather).

Source

pub const GUNPOWDER: Self

gunpowder (Gunpowder).

Source

pub const WOODEN_HOE: Self

wooden_hoe (Wooden Hoe).

Source

pub const STONE_HOE: Self

stone_hoe (Stone Hoe).

Source

pub const IRON_HOE: Self

iron_hoe (Iron Hoe).

Source

pub const DIAMOND_HOE: Self

diamond_hoe (Diamond Hoe).

Source

pub const GOLDEN_HOE: Self

golden_hoe (Golden Hoe).

Source

pub const WHEAT_SEEDS: Self

wheat_seeds (Seeds).

Source

pub const WHEAT: Self

wheat (Wheat).

Source

pub const BREAD: Self

bread (Bread).

Source

pub const LEATHER_HELMET: Self

leather_helmet (Leather Cap).

Source

pub const LEATHER_CHESTPLATE: Self

leather_chestplate (Leather Tunic).

Source

pub const LEATHER_LEGGINGS: Self

leather_leggings (Leather Pants).

Source

pub const LEATHER_BOOTS: Self

leather_boots (Leather Boots).

Source

pub const CHAINMAIL_HELMET: Self

chainmail_helmet (Chain Helmet).

Source

pub const CHAINMAIL_CHESTPLATE: Self

chainmail_chestplate (Chain Chestplate).

Source

pub const CHAINMAIL_LEGGINGS: Self

chainmail_leggings (Chain Leggings).

Source

pub const CHAINMAIL_BOOTS: Self

chainmail_boots (Chain Boots).

Source

pub const IRON_HELMET: Self

iron_helmet (Iron Helmet).

Source

pub const IRON_CHESTPLATE: Self

iron_chestplate (Iron Chestplate).

Source

pub const IRON_LEGGINGS: Self

iron_leggings (Iron Leggings).

Source

pub const IRON_BOOTS: Self

iron_boots (Iron Boots).

Source

pub const DIAMOND_HELMET: Self

diamond_helmet (Diamond Helmet).

Source

pub const DIAMOND_CHESTPLATE: Self

diamond_chestplate (Diamond Chestplate).

Source

pub const DIAMOND_LEGGINGS: Self

diamond_leggings (Diamond Leggings).

Source

pub const DIAMOND_BOOTS: Self

diamond_boots (Diamond Boots).

Source

pub const GOLDEN_HELMET: Self

golden_helmet (Golden Helmet).

Source

pub const GOLDEN_CHESTPLATE: Self

golden_chestplate (Golden Chestplate).

Source

pub const GOLDEN_LEGGINGS: Self

golden_leggings (Golden Leggings).

Source

pub const GOLDEN_BOOTS: Self

golden_boots (Golden Boots).

Source

pub const FLINT: Self

flint (Flint).

Source

pub const PORKCHOP: Self

porkchop (Raw Porkchop).

Source

pub const COOKED_PORKCHOP: Self

cooked_porkchop (Cooked Porkchop).

Source

pub const PAINTING: Self

painting (Painting).

Source

pub const GOLDEN_APPLE: Self

golden_apple (Golden Apple).

Source

pub const SIGN: Self

sign (Sign).

Source

pub const WOODEN_DOOR: Self

wooden_door (Oak Door).

Source

pub const BUCKET: Self

bucket (Bucket).

Source

pub const WATER_BUCKET: Self

water_bucket (Water Bucket).

Source

pub const LAVA_BUCKET: Self

lava_bucket (Lava Bucket).

Source

pub const MINECART: Self

minecart (Minecart).

Source

pub const SADDLE: Self

saddle (Saddle).

Source

pub const IRON_DOOR: Self

iron_door (Iron Door).

Source

pub const REDSTONE: Self

redstone (Redstone).

Source

pub const SNOWBALL: Self

snowball (Snowball).

Source

pub const BOAT: Self

boat (Boat).

Source

pub const LEATHER: Self

leather (Leather).

Source

pub const MILK_BUCKET: Self

milk_bucket (Milk).

Source

pub const BRICK: Self

brick (Brick).

Source

pub const CLAY_BALL: Self

clay_ball (Clay).

Source

pub const REEDS: Self

reeds (Sugar Canes).

Source

pub const PAPER: Self

paper (Paper).

Source

pub const BOOK: Self

book (Book).

Source

pub const SLIME_BALL: Self

slime_ball (Slimeball).

Source

pub const CHEST_MINECART: Self

chest_minecart (Minecart with Chest).

Source

pub const FURNACE_MINECART: Self

furnace_minecart (Minecart with Furnace).

Source

pub const EGG: Self

egg (Egg).

Source

pub const COMPASS: Self

compass (Compass).

Source

pub const FISHING_ROD: Self

fishing_rod (Fishing Rod).

Source

pub const CLOCK: Self

clock (Clock).

Source

pub const GLOWSTONE_DUST: Self

glowstone_dust (Glowstone Dust).

Source

pub const FISH: Self

fish (Fish).

Source

pub const COOKED_FISH: Self

cooked_fish (Cooked Fish).

Source

pub const DYE: Self

dye (Dye).

Source

pub const BONE: Self

bone (Bone).

Source

pub const SUGAR: Self

sugar (Sugar).

Source

pub const CAKE: Self

cake (Cake).

Source

pub const BED: Self

bed (Bed).

Source

pub const REPEATER: Self

repeater (Redstone Repeater).

Source

pub const COOKIE: Self

cookie (Cookie).

Source

pub const FILLED_MAP: Self

filled_map (Map).

Source

pub const SHEARS: Self

shears (Shears).

Source

pub const MELON: Self

melon (Melon).

Source

pub const PUMPKIN_SEEDS: Self

pumpkin_seeds (Pumpkin Seeds).

Source

pub const MELON_SEEDS: Self

melon_seeds (Melon Seeds).

Source

pub const BEEF: Self

beef (Raw Beef).

Source

pub const COOKED_BEEF: Self

cooked_beef (Steak).

Source

pub const CHICKEN: Self

chicken (Raw Chicken).

Source

pub const COOKED_CHICKEN: Self

cooked_chicken (Cooked Chicken).

Source

pub const ROTTEN_FLESH: Self

rotten_flesh (Rotten Flesh).

Source

pub const ENDER_PEARL: Self

ender_pearl (Ender Pearl).

Source

pub const BLAZE_ROD: Self

blaze_rod (Blaze Rod).

Source

pub const GHAST_TEAR: Self

ghast_tear (Ghast Tear).

Source

pub const GOLD_NUGGET: Self

gold_nugget (Gold Nugget).

Source

pub const NETHER_WART: Self

nether_wart (Nether Wart).

Source

pub const POTION: Self

potion (Potion).

Source

pub const GLASS_BOTTLE: Self

glass_bottle (Glass Bottle).

Source

pub const SPIDER_EYE: Self

spider_eye (Spider Eye).

Source

pub const FERMENTED_SPIDER_EYE: Self

fermented_spider_eye (Fermented Spider Eye).

Source

pub const BLAZE_POWDER: Self

blaze_powder (Blaze Powder).

Source

pub const MAGMA_CREAM: Self

magma_cream (Magma Cream).

Source

pub const BREWING_STAND: Self

brewing_stand (Brewing Stand).

Source

pub const CAULDRON: Self

cauldron (Cauldron).

Source

pub const ENDER_EYE: Self

ender_eye (Eye of Ender).

Source

pub const SPECKLED_MELON: Self

speckled_melon (Glistering Melon).

Source

pub const SPAWN_EGG: Self

spawn_egg (Spawn Egg).

Source

pub const EXPERIENCE_BOTTLE: Self

experience_bottle (Bottle o’ Enchanting).

Source

pub const FIRE_CHARGE: Self

fire_charge (Fire Charge).

Source

pub const WRITABLE_BOOK: Self

writable_book (Book and Quill).

Source

pub const WRITTEN_BOOK: Self

written_book (Written Book).

Source

pub const EMERALD: Self

emerald (Emerald).

Source

pub const ITEM_FRAME: Self

item_frame (Item Frame).

Source

pub const FLOWER_POT: Self

flower_pot (Flower Pot).

Source

pub const CARROT: Self

carrot (Carrot).

Source

pub const POTATO: Self

potato (Potato).

Source

pub const BAKED_POTATO: Self

baked_potato (Baked Potato).

Source

pub const POISONOUS_POTATO: Self

poisonous_potato (Poisonous Potato).

Source

pub const MAP: Self

map (Empty Map).

Source

pub const GOLDEN_CARROT: Self

golden_carrot (Golden Carrot).

Source

pub const SKULL: Self

skull (Skull).

Source

pub const CARROT_ON_A_STICK: Self

carrot_on_a_stick (Carrot on a Stick).

Source

pub const NETHER_STAR: Self

nether_star (Nether Star).

Source

pub const PUMPKIN_PIE: Self

pumpkin_pie (Pumpkin Pie).

Source

pub const FIREWORKS: Self

fireworks (Firework Rocket).

Source

pub const FIREWORK_CHARGE: Self

firework_charge (Firework Star).

Source

pub const ENCHANTED_BOOK: Self

enchanted_book (Enchanted Book).

Source

pub const COMPARATOR: Self

comparator (Redstone Comparator).

Source

pub const NETHERBRICK: Self

netherbrick (Nether Brick).

Source

pub const QUARTZ: Self

quartz (Nether Quartz).

Source

pub const TNT_MINECART: Self

tnt_minecart (Minecart with TNT).

Source

pub const HOPPER_MINECART: Self

hopper_minecart (Minecart with Hopper).

Source

pub const PRISMARINE_SHARD: Self

prismarine_shard (Prismarine Shard).

Source

pub const PRISMARINE_CRYSTALS: Self

prismarine_crystals (Prismarine Crystals).

Source

pub const RABBIT: Self

rabbit (Raw Rabbit).

Source

pub const COOKED_RABBIT: Self

cooked_rabbit (Cooked Rabbit).

Source

pub const RABBIT_STEW: Self

rabbit_stew (Rabbit Stew).

Source

pub const RABBIT_FOOT: Self

rabbit_foot (Rabbit’s Foot).

Source

pub const RABBIT_HIDE: Self

rabbit_hide (Rabbit Hide).

Source

pub const ARMOR_STAND: Self

armor_stand (Armor Stand).

Source

pub const IRON_HORSE_ARMOR: Self

iron_horse_armor (Iron Horse Armor).

Source

pub const GOLDEN_HORSE_ARMOR: Self

golden_horse_armor (Gold Horse Armor).

Source

pub const DIAMOND_HORSE_ARMOR: Self

diamond_horse_armor (Diamond Horse Armor).

Source

pub const LEAD: Self

lead (Lead).

Source

pub const NAME_TAG: Self

name_tag (Name Tag).

Source

pub const COMMAND_BLOCK_MINECART: Self

command_block_minecart (Minecart with Command Block).

Source

pub const MUTTON: Self

mutton (Raw Mutton).

Source

pub const COOKED_MUTTON: Self

cooked_mutton (Cooked Mutton).

Source

pub const BANNER: Self

banner (Banner).

Source

pub const SPRUCE_DOOR: Self

spruce_door (Spruce Door).

Source

pub const BIRCH_DOOR: Self

birch_door (Birch Door).

Source

pub const JUNGLE_DOOR: Self

jungle_door (Jungle Door).

Source

pub const ACACIA_DOOR: Self

acacia_door (Acacia Door).

Source

pub const DARK_OAK_DOOR: Self

dark_oak_door (Dark Oak Door).

Source

pub const RECORD_13: Self

record_13 (13 Disc).

Source

pub const RECORD_CAT: Self

record_cat (Cat Disc).

Source

pub const RECORD_BLOCKS: Self

record_blocks (Blocks Disc).

Source

pub const RECORD_CHIRP: Self

record_chirp (Chirp Disc).

Source

pub const RECORD_FAR: Self

record_far (Far Disc).

Source

pub const RECORD_MALL: Self

record_mall (Mall Disc).

Source

pub const RECORD_MELLOHI: Self

record_mellohi (Mellohi Disc).

Source

pub const RECORD_STAL: Self

record_stal (Stal Disc).

Source

pub const RECORD_STRAD: Self

record_strad (Strad Disc).

Source

pub const RECORD_WARD: Self

record_ward (Ward Disc).

Source

pub const RECORD_11: Self

record_11 (11 Disc).

Source

pub const RECORD_WAIT: Self

record_wait (Wait Disc).

Source§

impl Item

Source

pub fn from_id(id: u16) -> Option<Item>

The item with this id, if it exists in this version.

Source

pub fn from_name(name: &str) -> Option<Item>

Looks an item up by registry name.

Source

pub const fn id(self) -> u16

Item id.

Source

pub fn info(self) -> &'static ItemInfo

Static information.

Source

pub fn all() -> impl ExactSizeIterator<Item = Item>

All items in id order.

Trait Implementations§

Source§

impl Clone for Item

Source§

fn clone(&self) -> Self

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 Item

Source§

impl Debug for Item

Source§

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

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

impl Eq for Item

Source§

impl Hash for Item

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 Item

Source§

fn cmp(&self, other: &Self) -> 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§

fn clamp_to<R>(self, range: R) -> Self
where Self: Sized, R: ClampBounds<Self>,

🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range. Read more
Source§

impl PartialEq for Item

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialOrd for Item

Source§

fn partial_cmp(&self, other: &Self) -> 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 StructuralPartialEq for Item

Auto Trait Implementations§

§

impl Forget for Item

§

impl Freeze for Item

§

impl RefUnwindSafe for Item

§

impl Send for Item

§

impl Sync for Item

§

impl Unpin for Item

§

impl UnsafeUnpin for Item

§

impl UnwindSafe for Item

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.

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.