ghast-data 0.2.3

Static Minecraft Java Edition game data for the ghast client library: blocks, block states, collision shapes, items, entities, biomes, enchantments, foods (generated from PrismarineJS minecraft-data)
Documentation
//! Status effects.
//!
//! @generated by `cargo run -p ghast-codegen-data` from PrismarineJS minecraft-data 3.119.0 — do not edit.
//! Sources: pc/1.16.1/effects.json.

#![allow(clippy::all, clippy::pedantic, clippy::nursery, missing_docs)]

use crate::common::EffectInfo;

pub(crate) static EFFECTS: [EffectInfo; 32] = [
    EffectInfo { id: 1, name: "Speed", display_name: "Speed", good: true },
    EffectInfo { id: 2, name: "Slowness", display_name: "Slowness", good: false },
    EffectInfo { id: 3, name: "Haste", display_name: "Haste", good: true },
    EffectInfo { id: 4, name: "MiningFatigue", display_name: "Mining Fatigue", good: false },
    EffectInfo { id: 5, name: "Strength", display_name: "Strength", good: true },
    EffectInfo { id: 6, name: "InstantHealth", display_name: "Instant Health", good: true },
    EffectInfo { id: 7, name: "InstantDamage", display_name: "Instant Damage", good: false },
    EffectInfo { id: 8, name: "JumpBoost", display_name: "Jump Boost", good: true },
    EffectInfo { id: 9, name: "Nausea", display_name: "Nausea", good: false },
    EffectInfo { id: 10, name: "Regeneration", display_name: "Regeneration", good: true },
    EffectInfo { id: 11, name: "Resistance", display_name: "Resistance", good: true },
    EffectInfo { id: 12, name: "FireResistance", display_name: "Fire Resistance", good: true },
    EffectInfo { id: 13, name: "WaterBreathing", display_name: "Water Breathing", good: true },
    EffectInfo { id: 14, name: "Invisibility", display_name: "Invisibility", good: true },
    EffectInfo { id: 15, name: "Blindness", display_name: "Blindness", good: false },
    EffectInfo { id: 16, name: "NightVision", display_name: "Night Vision", good: true },
    EffectInfo { id: 17, name: "Hunger", display_name: "Hunger", good: false },
    EffectInfo { id: 18, name: "Weakness", display_name: "Weakness", good: false },
    EffectInfo { id: 19, name: "Poison", display_name: "Poison", good: false },
    EffectInfo { id: 20, name: "Wither", display_name: "Wither", good: false },
    EffectInfo { id: 21, name: "HealthBoost", display_name: "Health Boost", good: true },
    EffectInfo { id: 22, name: "Absorption", display_name: "Absorption", good: true },
    EffectInfo { id: 23, name: "Saturation", display_name: "Saturation", good: true },
    EffectInfo { id: 24, name: "Glowing", display_name: "Glowing", good: false },
    EffectInfo { id: 25, name: "Levitation", display_name: "Levitation", good: false },
    EffectInfo { id: 26, name: "Luck", display_name: "Luck", good: true },
    EffectInfo { id: 27, name: "BadLuck", display_name: "Bad Luck", good: false },
    EffectInfo { id: 28, name: "SlowFalling", display_name: "Slow Falling", good: true },
    EffectInfo { id: 29, name: "ConduitPower", display_name: "Conduit Power", good: true },
    EffectInfo { id: 30, name: "DolphinsGrace", display_name: "Dolphin's Grace", good: true },
    EffectInfo { id: 31, name: "BadOmen", display_name: "Bad Omen", good: true },
    EffectInfo { id: 32, name: "HeroOfTheVillage", display_name: "Hero Of The Village", good: true },
];

pub(crate) static EFFECT_NAMES: [(&str, u8); 32] = [
    ("Absorption", 22),
    ("BadLuck", 27),
    ("BadOmen", 31),
    ("Blindness", 15),
    ("ConduitPower", 29),
    ("DolphinsGrace", 30),
    ("FireResistance", 12),
    ("Glowing", 24),
    ("Haste", 3),
    ("HealthBoost", 21),
    ("HeroOfTheVillage", 32),
    ("Hunger", 17),
    ("InstantDamage", 7),
    ("InstantHealth", 6),
    ("Invisibility", 14),
    ("JumpBoost", 8),
    ("Levitation", 25),
    ("Luck", 26),
    ("MiningFatigue", 4),
    ("Nausea", 9),
    ("NightVision", 16),
    ("Poison", 19),
    ("Regeneration", 10),
    ("Resistance", 11),
    ("Saturation", 23),
    ("SlowFalling", 28),
    ("Slowness", 2),
    ("Speed", 1),
    ("Strength", 5),
    ("WaterBreathing", 13),
    ("Weakness", 18),
    ("Wither", 20),
];