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 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) AgeableMob.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, SpawnGroupData spawnGroupData) Mob.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, 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
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 voidFox.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 AbstractHorseSkeletonTrapGoal.createHorse(DifficultyInstance difficulty) private SkeletonSkeletonTrapGoal.createSkeleton(DifficultyInstance difficulty, AbstractHorse horse) private voidSkeletonTrapGoal.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 voidPillager.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 voidWitherSkeleton.populateDefaultEquipmentEnchantments(ServerLevelAccessor level, RandomSource random, DifficultyInstance difficulty) protected voidAbstractSkeleton.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) protected voidDrowned.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) protected voidPillager.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) protected voidVex.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) protected voidVindicator.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) protected voidWitherSkeleton.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) protected voidZombie.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) protected voidZombifiedPiglin.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) private SpawnGroupDataStrider.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 voidPiglin.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) protected voidPiglinBrute.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 intRaid.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 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 stack, ItemEnchantments.Mutable enchantments, RandomSource random, DifficultyInstance difficulty) voidEnchantmentsByCostWithDifficulty.enchant(ItemStack stack, ItemEnchantments.Mutable enchantments, RandomSource random, DifficultyInstance difficulty) voidSingleEnchantment.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 SpawnGroupDataEventHooks.finalizeMobSpawn(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType 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.MobSpawnType, net.minecraft.world.entity.SpawnGroupData)with the result.static FinalizeSpawnEventEventHooks.finalizeMobSpawnSpawner(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType 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.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 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.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)