Package vazkii.botania.api.configdata
Class LooniumMobSpawnData.Builder
java.lang.Object
vazkii.botania.api.configdata.LooniumMobSpawnData.Builder
- Enclosing class:
LooniumMobSpawnData
-
Method Summary
Modifier and TypeMethodDescriptionattributeModifiers(LooniumMobAttributeModifier... attributeModifiers) A list of attribute modifiers to apply to the mob.build()effectsToApply(LooniumMobEffectToApply... effectsToApply) A list of potion effects to apply to the mob.equipmentTable(net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> equipmentTable) A loot table to define equipment to apply to the mob after it spawned.nbt(net.minecraft.nbt.CompoundTag nbt) Custom NBT data to apply to the mob before finalizing its spawning.Force conversion of a baby mob to be reverted.Make the mob spawn as a baby.
-
Method Details
-
spawnAsBaby
Make the mob spawn as a baby. (This will not prevent AgeableMobs from growing up.) -
spawnAsAdult
Force conversion of a baby mob to be reverted. This may have unintended side effects, like an adult zombie sitting on a chicken or an adult piglin not having a weapon. The latter case can usually be taken care of via an equipment table. -
nbt
Custom NBT data to apply to the mob before finalizing its spawning. -
equipmentTable
public LooniumMobSpawnData.Builder equipmentTable(net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> equipmentTable) A loot table to define equipment to apply to the mob after it spawned. -
effectsToApply
A list of potion effects to apply to the mob. (These are applied instead of any mob effects from the structure configuration.) -
attributeModifiers
public LooniumMobSpawnData.Builder attributeModifiers(LooniumMobAttributeModifier... attributeModifiers) A list of attribute modifiers to apply to the mob. (These are applied instead of any attribute modifiers from the structure configuration.) -
build
-