Enum SpawnGroup
#[non_exhaustive]pub enum SpawnGroup {
Ageable(AgeableGroup),
Zombie {
baby: bool,
jockey: bool,
tried_camel: Option<bool>,
},
Spider {
effect: Option<Identifier>,
},
Horse {
ageable: AgeableGroup,
variant: String,
},
Llama {
ageable: AgeableGroup,
variant: String,
},
Fox {
ageable: AgeableGroup,
variant: String,
},
Rabbit {
ageable: AgeableGroup,
variant: String,
},
Axolotl {
ageable: AgeableGroup,
variants: [String; 2],
},
Wolf {
ageable: AgeableGroup,
variant: Identifier,
},
School {
leader: EntityRef,
tropical: Option<TropicalVariant>,
},
}Expand description
SpawnGroupData: what the mobs of one pack share, handed from one member’s finalization to
the next. Variants are named as vanilla saves them (creamy, snow, lucy); a name the
game does not know drops the group.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Ageable(AgeableGroup)
AgeableMob.AgeableMobGroupData, for the ageable mobs with no group of their own.
Zombie
Zombie.ZombieGroupData, and Husk.HuskGroupData’s camel try.
Fields
Spider
Spider.SpiderEffectsGroupData: the effect a spider spawns with, if any.
Fields
effect: Option<Identifier>The effect (minecraft:speed).
Horse
Horse.HorseGroupData: the coat colour.
Llama
Llama.LlamaGroupData.
Fox
Fox.FoxGroupData.
Rabbit
Rabbit.RabbitGroupData.
Axolotl
Axolotl.AxolotlGroupData: the two variants a member picks between.
Wolf
Wolf.WolfPackData.
Fields
ageable: AgeableGroupThe ageable part.
variant: IdentifierThe minecraft:wolf_variant registry entry.
School
AbstractSchoolingFish.SchoolSpawnGroupData: the school’s leader, and for tropical
fish the look the school shares.
Fields
tropical: Option<TropicalVariant>The tropical fish look; None for other fish.
Trait Implementations§
§impl Clone for SpawnGroup
impl Clone for SpawnGroup
§fn clone(&self) -> SpawnGroup
fn clone(&self) -> SpawnGroup
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more