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 DifficultyInstance -
Uses of DifficultyInstance in net.minecraft.world.entity
Methods in net.minecraft.world.entity with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionprotected void
Mob.enchantSpawnedArmor
(ServerLevelAccessor pLevel, RandomSource pRandom, EquipmentSlot pSlot, DifficultyInstance pDifficulty) private void
Mob.enchantSpawnedEquipment
(ServerLevelAccessor pLevel, EquipmentSlot pSlot, RandomSource pRandom, float pEnchantChance, DifficultyInstance pDifficulty) protected void
Mob.enchantSpawnedWeapon
(ServerLevelAccessor pLevel, RandomSource pRandom, DifficultyInstance pDifficulty) AgeableMob.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Mob.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Deprecated.Override-Only.protected void
Mob.populateDefaultEquipmentEnchantments
(ServerLevelAccessor pLevel, RandomSource pRandom, DifficultyInstance pDifficulty) protected void
Mob.populateDefaultEquipmentSlots
(RandomSource pRandom, DifficultyInstance pDifficulty) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionAbstractSchoolingFish.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Cat.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Dolphin.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Fox.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Ocelot.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Panda.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Parrot.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) PolarBear.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Rabbit.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Sheep.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) TropicalFish.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Turtle.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Wolf.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) protected void
Fox.populateDefaultEquipmentSlots
(RandomSource pRandom, DifficultyInstance pDifficulty) -
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 pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) -
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 pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) -
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 pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) -
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 pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionprivate AbstractHorse
SkeletonTrapGoal.createHorse
(DifficultyInstance pDifficulty) private Skeleton
SkeletonTrapGoal.createSkeleton
(DifficultyInstance pDifficulty, AbstractHorse pHorse) private void
SkeletonTrapGoal.enchant
(Skeleton pSkeleton, EquipmentSlot pSlot, DifficultyInstance pDifficulty) AbstractHorse.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Horse.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Llama.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) TraderLlama.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionprotected void
Pillager.enchantSpawnedWeapon
(ServerLevelAccessor pLevel, RandomSource pRandom, DifficultyInstance pDifficulty) AbstractSkeleton.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) CaveSpider.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Drowned.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Illusioner.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) PatrollingMonster.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Phantom.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Pillager.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Shulker.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Slime.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Spider.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Strider.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Vex.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Vindicator.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) WitherSkeleton.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Zombie.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) ZombieVillager.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) protected void
WitherSkeleton.populateDefaultEquipmentEnchantments
(ServerLevelAccessor pLevel, RandomSource pRandom, DifficultyInstance pDifficulty) protected void
AbstractSkeleton.populateDefaultEquipmentSlots
(RandomSource pRandom, DifficultyInstance pDifficulty) protected void
Drowned.populateDefaultEquipmentSlots
(RandomSource pRandom, DifficultyInstance pDifficulty) protected void
Pillager.populateDefaultEquipmentSlots
(RandomSource pRandom, DifficultyInstance pDifficulty) protected void
Vex.populateDefaultEquipmentSlots
(RandomSource pRandom, DifficultyInstance pDifficulty) protected void
Vindicator.populateDefaultEquipmentSlots
(RandomSource pRandom, DifficultyInstance pDifficulty) protected void
WitherSkeleton.populateDefaultEquipmentSlots
(RandomSource pRandom, DifficultyInstance pDifficulty) protected void
Zombie.populateDefaultEquipmentSlots
(RandomSource pRandom, DifficultyInstance pDifficulty) protected void
ZombifiedPiglin.populateDefaultEquipmentSlots
(RandomSource pRandom, DifficultyInstance pDifficulty) private SpawnGroupData
Strider.spawnJockey
(ServerLevelAccessor pServerLevel, DifficultyInstance pDifficulty, Mob pJockey, SpawnGroupData pSpawnData) -
Uses of DifficultyInstance in net.minecraft.world.entity.monster.hoglin
Methods in net.minecraft.world.entity.monster.hoglin with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionHoglin.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionPiglin.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) PiglinBrute.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) protected void
Piglin.populateDefaultEquipmentSlots
(RandomSource pRandom, DifficultyInstance pDifficulty) protected void
PiglinBrute.populateDefaultEquipmentSlots
(RandomSource pRandom, DifficultyInstance pDifficulty) -
Uses of DifficultyInstance in net.minecraft.world.entity.monster.warden
Methods in net.minecraft.world.entity.monster.warden with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionWarden.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.npc
Methods in net.minecraft.world.entity.npc with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionAbstractVillager.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) Villager.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.raid
Methods in net.minecraft.world.entity.raid with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionRaider.finalizeSpawn
(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pSpawnType, SpawnGroupData pSpawnGroupData) private int
Raid.getPotentialBonusSpawns
(Raid.RaiderType pRaiderType, RandomSource pRandom, int pWave, DifficultyInstance pDifficulty, boolean pShouldSpawnBonusGroup) -
Uses of DifficultyInstance in net.minecraft.world.item.enchantment
Methods in net.minecraft.world.item.enchantment with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionstatic void
EnchantmentHelper.enchantItemFromProvider
(ItemStack pStack, RegistryAccess pRegistries, ResourceKey<EnchantmentProvider> pKey, DifficultyInstance pDifficulty, RandomSource pRandom) -
Uses of DifficultyInstance in net.minecraft.world.item.enchantment.providers
Methods in net.minecraft.world.item.enchantment.providers with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionvoid
EnchantmentProvider.enchant
(ItemStack pStack, ItemEnchantments.Mutable pEnchantments, RandomSource pRandom, DifficultyInstance pDifficulty) void
EnchantmentsByCost.enchant
(ItemStack pStack, ItemEnchantments.Mutable pEnchantments, RandomSource pRandom, DifficultyInstance pDifficulty) void
EnchantmentsByCostWithDifficulty.enchant
(ItemStack pStack, ItemEnchantments.Mutable pEnchantments, RandomSource pRandom, DifficultyInstance pDifficulty) void
SingleEnchantment.enchant
(ItemStack pStack, ItemEnchantments.Mutable pEnchantments, RandomSource pRandom, DifficultyInstance pDifficulty) -
Uses of DifficultyInstance in net.minecraft.world.level
Methods in net.minecraft.world.level that return DifficultyInstanceModifier and TypeMethodDescriptionLevel.getCurrentDifficultyAt
(BlockPos pPos) LevelAccessor.getCurrentDifficultyAt
(BlockPos pPos) -
Uses of DifficultyInstance in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionstatic @Nullable SpawnGroupData
EventHooks.finalizeMobSpawn
(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, @Nullable SpawnGroupData spawnData) Finalizes the spawn of a mob by firing theFinalizeSpawnEvent
and callingMob.finalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.MobSpawnType, net.minecraft.world.entity.SpawnGroupData)
with the result.static FinalizeSpawnEvent
EventHooks.finalizeMobSpawnSpawner
(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, @Nullable SpawnGroupData spawnData, IOwnedSpawner spawner, boolean def) Finalizes the spawn of a mob by firing theFinalizeSpawnEvent
and callingMob.finalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.MobSpawnType, 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 theDifficultyInstance
for the chunk where the mob is about to be spawned.Methods in net.neoforged.neoforge.event.entity.living with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionvoid
FinalizeSpawnEvent.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.MobSpawnType, 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, MobSpawnType spawnType, @Nullable SpawnGroupData spawnData, @Nullable com.mojang.datafixers.util.Either<BlockEntity, Entity> spawner)