Uses of Class
net.minecraft.world.DifficultyInstance
Packages that use DifficultyInstance
Package
Description
-
Uses of DifficultyInstance in net.minecraft.server.level
Methods in net.minecraft.server.level that return DifficultyInstanceModifier and TypeMethodDescriptionServerLevel.getCurrentDifficultyAt(BlockPos p_454657_) WorldGenRegion.getCurrentDifficultyAt(BlockPos pos) -
Uses of DifficultyInstance in net.minecraft.world.entity
Methods in net.minecraft.world.entity with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionprotected voidMob.enchantSpawnedArmor(ServerLevelAccessor level, RandomSource random, EquipmentSlot slot, DifficultyInstance difficulty) private voidMob.enchantSpawnedEquipment(ServerLevelAccessor level, EquipmentSlot slot, RandomSource random, float enchantChance, DifficultyInstance difficulty) protected voidMob.enchantSpawnedWeapon(ServerLevelAccessor level, RandomSource random, DifficultyInstance difficulty) @Nullable SpawnGroupDataAgeableMob.finalizeSpawn(ServerLevelAccessor p_146746_, DifficultyInstance p_146747_, EntitySpawnReason p_363316_, @Nullable SpawnGroupData p_146749_) @Nullable SpawnGroupDataMob.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData spawnGroupData) Deprecated.Override-Only.protected voidMob.populateDefaultEquipmentEnchantments(ServerLevelAccessor level, RandomSource random, DifficultyInstance difficulty) protected voidMob.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionAxolotl.finalizeSpawn(ServerLevelAccessor p_149132_, DifficultyInstance p_149133_, EntitySpawnReason p_361790_, @Nullable SpawnGroupData p_149135_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionCamel.finalizeSpawn(ServerLevelAccessor p_249190_, DifficultyInstance p_251264_, EntitySpawnReason p_364651_, @Nullable SpawnGroupData p_249259_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.chicken
Methods in net.minecraft.world.entity.animal.chicken with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionChicken.finalizeSpawn(ServerLevelAccessor p_479246_, DifficultyInstance p_479546_, EntitySpawnReason p_478295_, @Nullable SpawnGroupData p_481650_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.cow
Methods in net.minecraft.world.entity.animal.cow with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionCow.finalizeSpawn(ServerLevelAccessor p_479111_, DifficultyInstance p_480094_, EntitySpawnReason p_481877_, @Nullable SpawnGroupData p_481471_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.dolphin
Methods in net.minecraft.world.entity.animal.dolphin with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataDolphin.finalizeSpawn(ServerLevelAccessor p_479150_, DifficultyInstance p_481882_, EntitySpawnReason p_478942_, @Nullable SpawnGroupData p_481012_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.equine
Methods in net.minecraft.world.entity.animal.equine with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionprivate @Nullable AbstractHorseSkeletonTrapGoal.createHorse(DifficultyInstance difficulty) private @Nullable SkeletonSkeletonTrapGoal.createSkeleton(DifficultyInstance difficulty, AbstractHorse horse) private voidSkeletonTrapGoal.enchant(Skeleton skeleton, EquipmentSlot slot, DifficultyInstance difficulty) @Nullable SpawnGroupDataAbstractHorse.finalizeSpawn(ServerLevelAccessor p_481728_, DifficultyInstance p_480010_, EntitySpawnReason p_481245_, @Nullable SpawnGroupData p_478762_) @Nullable SpawnGroupDataHorse.finalizeSpawn(ServerLevelAccessor p_479107_, DifficultyInstance p_479178_, EntitySpawnReason p_479054_, @Nullable SpawnGroupData p_479757_) @Nullable SpawnGroupDataLlama.finalizeSpawn(ServerLevelAccessor p_481498_, DifficultyInstance p_481989_, EntitySpawnReason p_480269_, @Nullable SpawnGroupData p_480615_) @Nullable SpawnGroupDataTraderLlama.finalizeSpawn(ServerLevelAccessor p_480785_, DifficultyInstance p_478024_, EntitySpawnReason p_481276_, @Nullable SpawnGroupData p_480982_) @Nullable SpawnGroupDataZombieHorse.finalizeSpawn(ServerLevelAccessor p_479493_, DifficultyInstance p_481210_, EntitySpawnReason p_482098_, @Nullable SpawnGroupData p_481475_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.feline
Methods in net.minecraft.world.entity.animal.feline with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataCat.finalizeSpawn(ServerLevelAccessor p_479018_, DifficultyInstance p_478283_, EntitySpawnReason p_481509_, @Nullable SpawnGroupData p_480915_) @Nullable SpawnGroupDataOcelot.finalizeSpawn(ServerLevelAccessor p_477941_, DifficultyInstance p_479506_, EntitySpawnReason p_481225_, @Nullable SpawnGroupData p_481908_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.fish
Methods in net.minecraft.world.entity.animal.fish with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataAbstractSchoolingFish.finalizeSpawn(ServerLevelAccessor p_478891_, DifficultyInstance p_479199_, EntitySpawnReason p_480856_, @Nullable SpawnGroupData p_481772_) @Nullable SpawnGroupDataSalmon.finalizeSpawn(ServerLevelAccessor p_479696_, DifficultyInstance p_479293_, EntitySpawnReason p_478583_, @Nullable SpawnGroupData p_481140_) @Nullable SpawnGroupDataTropicalFish.finalizeSpawn(ServerLevelAccessor p_480327_, DifficultyInstance p_479255_, EntitySpawnReason p_481359_, @Nullable SpawnGroupData p_481706_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.fox
Methods in net.minecraft.world.entity.animal.fox with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataFox.finalizeSpawn(ServerLevelAccessor p_478921_, DifficultyInstance p_477940_, EntitySpawnReason p_480579_, @Nullable SpawnGroupData p_479774_) protected voidFox.populateDefaultEquipmentSlots(RandomSource p_481278_, DifficultyInstance p_480592_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionFrog.finalizeSpawn(ServerLevelAccessor p_218488_, DifficultyInstance p_218489_, EntitySpawnReason p_361013_, @Nullable SpawnGroupData p_218491_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.goat
Methods in net.minecraft.world.entity.animal.goat with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionGoat.finalizeSpawn(ServerLevelAccessor p_149365_, DifficultyInstance p_149366_, EntitySpawnReason p_360901_, @Nullable SpawnGroupData p_149368_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.golem
Methods in net.minecraft.world.entity.animal.golem with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataCopperGolem.finalizeSpawn(ServerLevelAccessor p_480601_, DifficultyInstance p_477985_, EntitySpawnReason p_479087_, @Nullable SpawnGroupData p_478229_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.nautilus
Methods in net.minecraft.world.entity.animal.nautilus with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionAbstractNautilus.finalizeSpawn(ServerLevelAccessor p_456241_, DifficultyInstance p_455836_, EntitySpawnReason p_456131_, @Nullable SpawnGroupData p_455985_) ZombieNautilus.finalizeSpawn(ServerLevelAccessor p_467810_, DifficultyInstance p_469369_, EntitySpawnReason p_469505_, @Nullable SpawnGroupData p_467165_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.panda
Methods in net.minecraft.world.entity.animal.panda with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataPanda.finalizeSpawn(ServerLevelAccessor p_482023_, DifficultyInstance p_480729_, EntitySpawnReason p_477927_, @Nullable SpawnGroupData p_478134_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.parrot
Methods in net.minecraft.world.entity.animal.parrot with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataParrot.finalizeSpawn(ServerLevelAccessor p_480706_, DifficultyInstance p_481783_, EntitySpawnReason p_479894_, @Nullable SpawnGroupData p_480556_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.pig
Methods in net.minecraft.world.entity.animal.pig with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionPig.finalizeSpawn(ServerLevelAccessor p_478479_, DifficultyInstance p_481884_, EntitySpawnReason p_480771_, @Nullable SpawnGroupData p_478284_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.polarbear
Methods in net.minecraft.world.entity.animal.polarbear with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionPolarBear.finalizeSpawn(ServerLevelAccessor p_478339_, DifficultyInstance p_478045_, EntitySpawnReason p_479664_, @Nullable SpawnGroupData p_480338_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.rabbit
Methods in net.minecraft.world.entity.animal.rabbit with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataRabbit.finalizeSpawn(ServerLevelAccessor p_480653_, DifficultyInstance p_482053_, EntitySpawnReason p_480307_, @Nullable SpawnGroupData p_481416_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.sheep
Methods in net.minecraft.world.entity.animal.sheep with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataSheep.finalizeSpawn(ServerLevelAccessor p_404937_, DifficultyInstance p_405503_, EntitySpawnReason p_405554_, @Nullable SpawnGroupData p_405662_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.squid
Methods in net.minecraft.world.entity.animal.squid with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataSquid.finalizeSpawn(ServerLevelAccessor p_478346_, DifficultyInstance p_480811_, EntitySpawnReason p_481727_, @Nullable SpawnGroupData p_480347_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.turtle
Methods in net.minecraft.world.entity.animal.turtle with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataTurtle.finalizeSpawn(ServerLevelAccessor p_477950_, DifficultyInstance p_481603_, EntitySpawnReason p_479654_, @Nullable SpawnGroupData p_481163_) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.wolf
Methods in net.minecraft.world.entity.animal.wolf with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataWolf.finalizeSpawn(ServerLevelAccessor p_406251_, DifficultyInstance p_406357_, EntitySpawnReason p_406333_, @Nullable SpawnGroupData p_406273_) -
Uses of DifficultyInstance in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataPatrollingMonster.finalizeSpawn(ServerLevelAccessor p_33049_, DifficultyInstance p_33050_, EntitySpawnReason p_364305_, @Nullable SpawnGroupData p_33052_) Phantom.finalizeSpawn(ServerLevelAccessor p_33126_, DifficultyInstance p_33127_, EntitySpawnReason p_364084_, @Nullable SpawnGroupData p_33129_) @Nullable SpawnGroupDataShulker.finalizeSpawn(ServerLevelAccessor p_149780_, DifficultyInstance p_149781_, EntitySpawnReason p_363202_, @Nullable SpawnGroupData p_149783_) @Nullable SpawnGroupDataSlime.finalizeSpawn(ServerLevelAccessor p_33601_, DifficultyInstance p_33602_, EntitySpawnReason p_361992_, @Nullable SpawnGroupData p_33604_) @Nullable SpawnGroupDataStrider.finalizeSpawn(ServerLevelAccessor p_33887_, DifficultyInstance p_33888_, EntitySpawnReason p_360626_, @Nullable SpawnGroupData p_33890_) @Nullable SpawnGroupDataVex.finalizeSpawn(ServerLevelAccessor p_34002_, DifficultyInstance p_34003_, EntitySpawnReason p_364407_, @Nullable SpawnGroupData p_34005_) @Nullable SpawnGroupDataZoglin.finalizeSpawn(ServerLevelAccessor p_362960_, DifficultyInstance p_365250_, EntitySpawnReason p_363042_, @Nullable SpawnGroupData p_360432_) protected voidVex.populateDefaultEquipmentSlots(RandomSource p_219135_, DifficultyInstance p_219136_) private SpawnGroupDataStrider.spawnJockey(ServerLevelAccessor level, DifficultyInstance difficulty, Mob jockey, @Nullable SpawnGroupData spawnData) -
Uses of DifficultyInstance in net.minecraft.world.entity.monster.hoglin
Methods in net.minecraft.world.entity.monster.hoglin with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataHoglin.finalizeSpawn(ServerLevelAccessor p_34508_, DifficultyInstance p_34509_, EntitySpawnReason p_364113_, @Nullable SpawnGroupData p_34511_) -
Uses of DifficultyInstance in net.minecraft.world.entity.monster.illager
Methods in net.minecraft.world.entity.monster.illager with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionprotected voidPillager.enchantSpawnedWeapon(ServerLevelAccessor p_481461_, RandomSource p_479437_, DifficultyInstance p_480205_) Illusioner.finalizeSpawn(ServerLevelAccessor p_480751_, DifficultyInstance p_481479_, EntitySpawnReason p_478167_, @Nullable SpawnGroupData p_481045_) @Nullable SpawnGroupDataPillager.finalizeSpawn(ServerLevelAccessor p_481053_, DifficultyInstance p_482114_, EntitySpawnReason p_481428_, @Nullable SpawnGroupData p_478218_) @Nullable SpawnGroupDataVindicator.finalizeSpawn(ServerLevelAccessor p_479899_, DifficultyInstance p_479154_, EntitySpawnReason p_480414_, @Nullable SpawnGroupData p_481963_) protected voidPillager.populateDefaultEquipmentSlots(RandomSource p_479316_, DifficultyInstance p_478815_) protected voidVindicator.populateDefaultEquipmentSlots(RandomSource p_477953_, DifficultyInstance p_479533_) -
Uses of DifficultyInstance in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataPiglin.finalizeSpawn(ServerLevelAccessor p_34717_, DifficultyInstance p_34718_, EntitySpawnReason p_361787_, @Nullable SpawnGroupData p_34720_) @Nullable SpawnGroupDataPiglinBrute.finalizeSpawn(ServerLevelAccessor p_35058_, DifficultyInstance p_35059_, EntitySpawnReason p_364915_, @Nullable SpawnGroupData p_35061_) protected voidPiglin.populateDefaultEquipmentSlots(RandomSource p_219189_, DifficultyInstance p_219190_) protected voidPiglinBrute.populateDefaultEquipmentSlots(RandomSource p_219209_, DifficultyInstance p_219210_) -
Uses of DifficultyInstance in net.minecraft.world.entity.monster.skeleton
Methods in net.minecraft.world.entity.monster.skeleton with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataAbstractSkeleton.finalizeSpawn(ServerLevelAccessor p_480580_, DifficultyInstance p_480574_, EntitySpawnReason p_481793_, @Nullable SpawnGroupData p_478585_) @Nullable SpawnGroupDataWitherSkeleton.finalizeSpawn(ServerLevelAccessor p_479867_, DifficultyInstance p_478360_, EntitySpawnReason p_481272_, @Nullable SpawnGroupData p_481025_) protected voidWitherSkeleton.populateDefaultEquipmentEnchantments(ServerLevelAccessor p_480793_, RandomSource p_481983_, DifficultyInstance p_480847_) protected voidAbstractSkeleton.populateDefaultEquipmentSlots(RandomSource p_480198_, DifficultyInstance p_481704_) protected voidWitherSkeleton.populateDefaultEquipmentSlots(RandomSource p_481541_, DifficultyInstance p_478176_) -
Uses of DifficultyInstance in net.minecraft.world.entity.monster.spider
Methods in net.minecraft.world.entity.monster.spider with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataCaveSpider.finalizeSpawn(ServerLevelAccessor p_481241_, DifficultyInstance p_479489_, EntitySpawnReason p_479465_, @Nullable SpawnGroupData p_482086_) @Nullable SpawnGroupDataSpider.finalizeSpawn(ServerLevelAccessor p_478692_, DifficultyInstance p_479487_, EntitySpawnReason p_481376_, @Nullable SpawnGroupData p_480575_) -
Uses of DifficultyInstance in net.minecraft.world.entity.monster.warden
Methods in net.minecraft.world.entity.monster.warden with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataWarden.finalizeSpawn(ServerLevelAccessor p_219400_, DifficultyInstance p_219401_, EntitySpawnReason p_360351_, @Nullable SpawnGroupData p_219403_) -
Uses of DifficultyInstance in net.minecraft.world.entity.monster.zombie
Methods in net.minecraft.world.entity.monster.zombie with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionDrowned.finalizeSpawn(ServerLevelAccessor p_479591_, DifficultyInstance p_479303_, EntitySpawnReason p_481609_, @Nullable SpawnGroupData p_481694_) @Nullable SpawnGroupDataHusk.finalizeSpawn(ServerLevelAccessor p_481590_, DifficultyInstance p_480270_, EntitySpawnReason p_478215_, @Nullable SpawnGroupData p_480515_) @Nullable SpawnGroupDataZombie.finalizeSpawn(ServerLevelAccessor p_478549_, DifficultyInstance p_481659_, EntitySpawnReason p_478522_, @Nullable SpawnGroupData p_479167_) @Nullable SpawnGroupDataZombieVillager.finalizeSpawn(ServerLevelAccessor p_482360_, DifficultyInstance p_482357_, EntitySpawnReason p_482369_, @Nullable SpawnGroupData p_482358_) protected voidDrowned.populateDefaultEquipmentSlots(RandomSource p_478286_, DifficultyInstance p_480174_) protected voidZombie.populateDefaultEquipmentSlots(RandomSource p_478944_, DifficultyInstance p_477998_) voidZombifiedPiglin.populateDefaultEquipmentSlots(RandomSource p_480608_, DifficultyInstance p_479856_) -
Uses of DifficultyInstance in net.minecraft.world.entity.npc.villager
Methods in net.minecraft.world.entity.npc.villager with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataAbstractVillager.finalizeSpawn(ServerLevelAccessor p_480749_, DifficultyInstance p_481930_, EntitySpawnReason p_477981_, @Nullable SpawnGroupData p_481717_) @Nullable SpawnGroupDataVillager.finalizeSpawn(ServerLevelAccessor p_479460_, DifficultyInstance p_481788_, EntitySpawnReason p_480000_, @Nullable SpawnGroupData p_481743_) -
Uses of DifficultyInstance in net.minecraft.world.entity.raid
Methods in net.minecraft.world.entity.raid with parameters of type DifficultyInstanceModifier and TypeMethodDescription@Nullable SpawnGroupDataRaider.finalizeSpawn(ServerLevelAccessor p_37856_, DifficultyInstance p_37857_, EntitySpawnReason p_362502_, @Nullable SpawnGroupData p_37859_) private intRaid.getPotentialBonusSpawns(Raid.RaiderType raiderType, RandomSource random, int wave, DifficultyInstance difficulty, boolean shouldSpawnBonusGroup) -
Uses of DifficultyInstance in net.minecraft.world.item.enchantment
Methods in net.minecraft.world.item.enchantment with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionstatic voidEnchantmentHelper.enchantItemFromProvider(ItemStack stack, RegistryAccess registries, ResourceKey<EnchantmentProvider> key, DifficultyInstance difficulty, RandomSource random) -
Uses of DifficultyInstance in net.minecraft.world.item.enchantment.providers
Methods in net.minecraft.world.item.enchantment.providers with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionvoidEnchantmentProvider.enchant(ItemStack stack, ItemEnchantments.Mutable enchantments, RandomSource random, DifficultyInstance difficulty) voidEnchantmentsByCost.enchant(ItemStack p_345483_, ItemEnchantments.Mutable p_346331_, RandomSource p_344794_, DifficultyInstance p_348577_) voidEnchantmentsByCostWithDifficulty.enchant(ItemStack p_344777_, ItemEnchantments.Mutable p_344895_, RandomSource p_346012_, DifficultyInstance p_348635_) voidSingleEnchantment.enchant(ItemStack p_346218_, ItemEnchantments.Mutable p_345570_, RandomSource p_345742_, DifficultyInstance p_348562_) -
Uses of DifficultyInstance in net.minecraft.world.level
Methods in net.minecraft.world.level that return DifficultyInstance -
Uses of DifficultyInstance in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionstatic @Nullable SpawnGroupDataEventHooks.finalizeMobSpawn(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnType, @Nullable SpawnGroupData spawnData) Finalizes the spawn of a mob by firing theFinalizeSpawnEventand callingMob.finalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.EntitySpawnReason, net.minecraft.world.entity.SpawnGroupData)with the result.static FinalizeSpawnEventEventHooks.finalizeMobSpawnSpawner(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnType, @Nullable SpawnGroupData spawnData, IOwnedSpawner spawner, boolean def) Finalizes the spawn of a mob by firing theFinalizeSpawnEventand callingMob.finalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.EntitySpawnReason, net.minecraft.world.entity.SpawnGroupData)with the result. -
Uses of DifficultyInstance in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as DifficultyInstanceMethods in net.neoforged.neoforge.event.entity.living that return DifficultyInstanceModifier and TypeMethodDescriptionFinalizeSpawnEvent.getDifficulty()Retrieves theDifficultyInstancefor the chunk where the mob is about to be spawned.Methods in net.neoforged.neoforge.event.entity.living with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionvoidFinalizeSpawnEvent.setDifficulty(DifficultyInstance inst) Sets the difficulty instance for this event, which will be propagated toMob.finalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.EntitySpawnReason, net.minecraft.world.entity.SpawnGroupData)unless cancelled.Constructors in net.neoforged.neoforge.event.entity.living with parameters of type DifficultyInstanceModifierConstructorDescriptionFinalizeSpawnEvent(Mob entity, ServerLevelAccessor level, double x, double y, double z, DifficultyInstance difficulty, EntitySpawnReason spawnType, @Nullable SpawnGroupData spawnData, @Nullable com.mojang.datafixers.util.Either<BlockEntity, Entity> spawner)