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 level, RandomSource random, EquipmentSlot slot, DifficultyInstance difficulty) private void
Mob.enchantSpawnedEquipment
(ServerLevelAccessor level, EquipmentSlot slot, RandomSource random, float enchantChance, DifficultyInstance difficulty) protected void
Mob.enchantSpawnedWeapon
(ServerLevelAccessor level, RandomSource random, DifficultyInstance difficulty) AgeableMob.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Mob.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Deprecated.Override-Only.protected void
Mob.populateDefaultEquipmentEnchantments
(ServerLevelAccessor level, RandomSource random, DifficultyInstance difficulty) protected void
Mob.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) -
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 level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Cat.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Dolphin.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Fox.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Ocelot.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Panda.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Parrot.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) PolarBear.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Rabbit.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Sheep.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) TropicalFish.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Turtle.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Wolf.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) protected void
Fox.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 level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) -
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 level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) -
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 level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) -
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 level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) -
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 difficulty) private Skeleton
SkeletonTrapGoal.createSkeleton
(DifficultyInstance difficulty, AbstractHorse horse) private void
SkeletonTrapGoal.enchant
(Skeleton skeleton, EquipmentSlot slot, DifficultyInstance difficulty) AbstractHorse.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Horse.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Llama.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) TraderLlama.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) -
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 level, RandomSource random, DifficultyInstance difficulty) AbstractSkeleton.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) CaveSpider.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Drowned.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Illusioner.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) PatrollingMonster.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Phantom.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Pillager.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Shulker.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Slime.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Spider.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Strider.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Vex.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Vindicator.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) WitherSkeleton.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Zombie.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) ZombieVillager.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) protected void
WitherSkeleton.populateDefaultEquipmentEnchantments
(ServerLevelAccessor level, RandomSource random, DifficultyInstance difficulty) protected void
AbstractSkeleton.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) protected void
Drowned.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) protected void
Pillager.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) protected void
Vex.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) protected void
Vindicator.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) protected void
WitherSkeleton.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) protected void
Zombie.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) protected void
ZombifiedPiglin.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) private SpawnGroupData
Strider.spawnJockey
(ServerLevelAccessor serverLevel, DifficultyInstance difficulty, Mob jockey, 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 TypeMethodDescriptionHoglin.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) -
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 level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) PiglinBrute.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) protected void
Piglin.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) protected void
PiglinBrute.populateDefaultEquipmentSlots
(RandomSource random, DifficultyInstance difficulty) -
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 level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) -
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 level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Villager.finalizeSpawn
(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) -
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 level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) private int
Raid.getPotentialBonusSpawns
(Raid.RaiderType raiderType, RandomSource random, int wave, DifficultyInstance p_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 void
EnchantmentHelper.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 TypeMethodDescriptionvoid
EnchantmentProvider.enchant
(ItemStack stack, ItemEnchantments.Mutable enchantments, RandomSource random, DifficultyInstance difficulty) void
EnchantmentsByCost.enchant
(ItemStack stack, ItemEnchantments.Mutable enchantments, RandomSource random, DifficultyInstance difficulty) void
EnchantmentsByCostWithDifficulty.enchant
(ItemStack stack, ItemEnchantments.Mutable enchantments, RandomSource random, DifficultyInstance difficulty) void
SingleEnchantment.enchant
(ItemStack stack, ItemEnchantments.Mutable enchantments, RandomSource random, DifficultyInstance difficulty) -
Uses of DifficultyInstance in net.minecraft.world.level
Methods in net.minecraft.world.level that return DifficultyInstanceModifier and TypeMethodDescriptionLevel.getCurrentDifficultyAt
(BlockPos pos) LevelAccessor.getCurrentDifficultyAt
(BlockPos pos) -
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)