Class LooniumMobSpawnData.Builder

java.lang.Object
vazkii.botania.api.configdata.LooniumMobSpawnData.Builder
Enclosing class:
LooniumMobSpawnData

public static class LooniumMobSpawnData.Builder extends Object
  • Method Details

    • spawnAsBaby

      public LooniumMobSpawnData.Builder spawnAsBaby()
      Make the mob spawn as a baby. (This will not prevent AgeableMobs from growing up.)
    • spawnAsAdult

      public LooniumMobSpawnData.Builder 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

      public LooniumMobSpawnData.Builder nbt(net.minecraft.nbt.CompoundTag 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

      public LooniumMobSpawnData.Builder effectsToApply(LooniumMobEffectToApply... 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

      public LooniumMobSpawnData build()