effects

package
v0.0.0-...-18e7427 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Code generated by gen_effects.go DO NOT EDIT. Package effects stores information about potion effects in Minecraft.

Index

Constants

This section is empty.

Variables

View Source
var (
	Speed = Effect{
		ID:          1,
		DisplayName: "Speed",
		Name:        "Speed",
		Type:        "good",
	}
	Slowness = Effect{
		ID:          2,
		DisplayName: "Slowness",
		Name:        "Slowness",
		Type:        "bad",
	}
	Haste = Effect{
		ID:          3,
		DisplayName: "Haste",
		Name:        "Haste",
		Type:        "good",
	}
	MiningFatigue = Effect{
		ID:          4,
		DisplayName: "Mining Fatigue",
		Name:        "MiningFatigue",
		Type:        "bad",
	}
	Strength = Effect{
		ID:          5,
		DisplayName: "Strength",
		Name:        "Strength",
		Type:        "good",
	}
	InstantHealth = Effect{
		ID:          6,
		DisplayName: "Instant Health",
		Name:        "InstantHealth",
		Type:        "good",
	}
	InstantDamage = Effect{
		ID:          7,
		DisplayName: "Instant Damage",
		Name:        "InstantDamage",
		Type:        "bad",
	}
	JumpBoost = Effect{
		ID:          8,
		DisplayName: "Jump Boost",
		Name:        "JumpBoost",
		Type:        "good",
	}
	Nausea = Effect{
		ID:          9,
		DisplayName: "Nausea",
		Name:        "Nausea",
		Type:        "bad",
	}
	Regeneration = Effect{
		ID:          10,
		DisplayName: "Regeneration",
		Name:        "Regeneration",
		Type:        "good",
	}
	Resistance = Effect{
		ID:          11,
		DisplayName: "Resistance",
		Name:        "Resistance",
		Type:        "good",
	}
	FireResistance = Effect{
		ID:          12,
		DisplayName: "Fire Resistance",
		Name:        "FireResistance",
		Type:        "good",
	}
	WaterBreathing = Effect{
		ID:          13,
		DisplayName: "Water Breathing",
		Name:        "WaterBreathing",
		Type:        "good",
	}
	Invisibility = Effect{
		ID:          14,
		DisplayName: "Invisibility",
		Name:        "Invisibility",
		Type:        "good",
	}
	Blindness = Effect{
		ID:          15,
		DisplayName: "Blindness",
		Name:        "Blindness",
		Type:        "bad",
	}
	NightVision = Effect{
		ID:          16,
		DisplayName: "Night Vision",
		Name:        "NightVision",
		Type:        "good",
	}
	Hunger = Effect{
		ID:          17,
		DisplayName: "Hunger",
		Name:        "Hunger",
		Type:        "bad",
	}
	Weakness = Effect{
		ID:          18,
		DisplayName: "Weakness",
		Name:        "Weakness",
		Type:        "bad",
	}
	Poison = Effect{
		ID:          19,
		DisplayName: "Poison",
		Name:        "Poison",
		Type:        "bad",
	}
	Wither = Effect{
		ID:          20,
		DisplayName: "Wither",
		Name:        "Wither",
		Type:        "bad",
	}
	HealthBoost = Effect{
		ID:          21,
		DisplayName: "Health Boost",
		Name:        "HealthBoost",
		Type:        "good",
	}
	Absorption = Effect{
		ID:          22,
		DisplayName: "Absorption",
		Name:        "Absorption",
		Type:        "good",
	}
	Saturation = Effect{
		ID:          23,
		DisplayName: "Saturation",
		Name:        "Saturation",
		Type:        "good",
	}
	Glowing = Effect{
		ID:          24,
		DisplayName: "Glowing",
		Name:        "Glowing",
		Type:        "bad",
	}
	Levitation = Effect{
		ID:          25,
		DisplayName: "Levitation",
		Name:        "Levitation",
		Type:        "bad",
	}
	Luck = Effect{
		ID:          26,
		DisplayName: "Luck",
		Name:        "Luck",
		Type:        "good",
	}
	BadLuck = Effect{
		ID:          27,
		DisplayName: "Bad Luck",
		Name:        "BadLuck",
		Type:        "bad",
	}
	SlowFalling = Effect{
		ID:          28,
		DisplayName: "Slow Falling",
		Name:        "SlowFalling",
		Type:        "good",
	}
	ConduitPower = Effect{
		ID:          29,
		DisplayName: "Conduit Power",
		Name:        "ConduitPower",
		Type:        "good",
	}
	DolphinsGrace = Effect{
		ID:          30,
		DisplayName: "Dolphin's Grace",
		Name:        "DolphinsGrace",
		Type:        "good",
	}
	BadOmen = Effect{
		ID:          31,
		DisplayName: "Bad Omen",
		Name:        "BadOmen",
		Type:        "bad",
	}
	HeroOfTheVillage = Effect{
		ID:          32,
		DisplayName: "Hero of the Village",
		Name:        "HeroOfTheVillage",
		Type:        "good",
	}
	Darkness = Effect{
		ID:          33,
		DisplayName: "Darkness",
		Name:        "Darkness",
		Type:        "bad",
	}
)

ByID is an index of minecraft items by their ID.

View Source
var ByName = map[string]Effect{
	"Speed":            Speed,
	"Slowness":         Slowness,
	"Haste":            Haste,
	"MiningFatigue":    MiningFatigue,
	"Strength":         Strength,
	"InstantHealth":    InstantHealth,
	"InstantDamage":    InstantDamage,
	"JumpBoost":        JumpBoost,
	"Nausea":           Nausea,
	"Regeneration":     Regeneration,
	"Resistance":       Resistance,
	"FireResistance":   FireResistance,
	"WaterBreathing":   WaterBreathing,
	"Invisibility":     Invisibility,
	"Blindness":        Blindness,
	"NightVision":      NightVision,
	"Hunger":           Hunger,
	"Weakness":         Weakness,
	"Poison":           Poison,
	"Wither":           Wither,
	"HealthBoost":      HealthBoost,
	"Absorption":       Absorption,
	"Saturation":       Saturation,
	"Glowing":          Glowing,
	"Levitation":       Levitation,
	"Luck":             Luck,
	"BadLuck":          BadLuck,
	"SlowFalling":      SlowFalling,
	"ConduitPower":     ConduitPower,
	"DolphinsGrace":    DolphinsGrace,
	"BadOmen":          BadOmen,
	"HeroOfTheVillage": HeroOfTheVillage,
	"Darkness":         Darkness,
}

ByName is an index of minecraft items by their name.

Functions

This section is empty.

Types

type Effect

type Effect struct {
	ID          int32
	DisplayName string
	Name        string
	Type        string
}

Item describes information about a type of item.

type EffectStatus

type EffectStatus struct {
	ID            int32
	Amplifier     byte
	Duration      int32
	ShowParticles bool
	ShowIcon      bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL