Class MobVariantGenerator.Builder
java.lang.Object
net.rebel459.unified.api.data.helper.HelperGenerator
net.rebel459.unified.api.data.helper.HelperGenerator.Builder
net.rebel459.unified.api.data.helper.MobVariantGenerator.Builder
- Enclosing class:
MobVariantGenerator
-
Nested Class Summary
Nested classes/interfaces inherited from class HelperGenerator
HelperGenerator.Builder -
Method Summary
Modifier and TypeMethodDescriptionaddAttackEffect(net.minecraft.world.effect.MobEffectInstance effect) addAttribute(net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute> attribute, net.minecraft.world.entity.ai.attributes.AttributeModifier modifier) addSpawnCondition(net.minecraft.world.entity.variant.PriorityProvider.Selector<net.minecraft.world.entity.variant.SpawnContext, net.minecraft.world.entity.variant.SpawnCondition> condition) addTextureReplacement(net.minecraft.resources.Identifier original, net.minecraft.resources.Identifier replacement) setAdultTexture(net.minecraft.resources.Identifier replacement) setAmbientSound(net.minecraft.sounds.SoundEvent sound) setBabyTexture(net.minecraft.resources.Identifier replacement) setDeathSound(net.minecraft.sounds.SoundEvent sound) setEatSound(net.minecraft.sounds.SoundEvent sound) setHurtSound(net.minecraft.sounds.SoundEvent sound) setLootTable(net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> lootTable) setSpawnChance(float chance) setSpawnConditions(List<net.minecraft.world.entity.variant.PriorityProvider.Selector<net.minecraft.world.entity.variant.SpawnContext, net.minecraft.world.entity.variant.SpawnCondition>> conditions) setStepSound(net.minecraft.sounds.SoundEvent sound) shouldBurnInDaylight(boolean burnInDaylight)
-
Method Details
-
addTextureReplacement
public MobVariantGenerator.Builder addTextureReplacement(net.minecraft.resources.Identifier original, net.minecraft.resources.Identifier replacement) -
setAdultTexture
-
setBabyTexture
-
setAmbientSound
-
setHurtSound
-
setEatSound
-
setDeathSound
-
setStepSound
-
setSpawnConditions
public MobVariantGenerator.Builder setSpawnConditions(List<net.minecraft.world.entity.variant.PriorityProvider.Selector<net.minecraft.world.entity.variant.SpawnContext, net.minecraft.world.entity.variant.SpawnCondition>> conditions) -
addSpawnCondition
public MobVariantGenerator.Builder addSpawnCondition(net.minecraft.world.entity.variant.PriorityProvider.Selector<net.minecraft.world.entity.variant.SpawnContext, net.minecraft.world.entity.variant.SpawnCondition> condition) -
setSpawnChance
-
addAttribute
public MobVariantGenerator.Builder addAttribute(net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute> attribute, net.minecraft.world.entity.ai.attributes.AttributeModifier modifier) -
addAttackEffect
public MobVariantGenerator.Builder addAttackEffect(net.minecraft.world.effect.MobEffectInstance effect) -
shouldBurnInDaylight
-
setLootTable
public MobVariantGenerator.Builder setLootTable(net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> lootTable)
-