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 pos) 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 chance, DifficultyInstance difficulty) protected voidMob.enchantSpawnedWeapon(ServerLevelAccessor level, RandomSource random, DifficultyInstance difficulty) AgeableMob.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Mob.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Deprecated.Override-Only.protected voidMob.populateDefaultEquipmentEnchantments(ServerLevelAccessor level, RandomSource random, DifficultyInstance localDifficulty) 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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.dolphin
Methods in net.minecraft.world.entity.animal.dolphin with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionDolphin.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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) SkeletonTrapGoal.createSkeleton(DifficultyInstance difficulty, AbstractHorse horse) private voidSkeletonTrapGoal.enchant(Skeleton skeleton, EquipmentSlot slot, DifficultyInstance difficulty) AbstractHorse.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Horse.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Llama.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) TraderLlama.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) ZombieHorse.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.feline
Methods in net.minecraft.world.entity.animal.feline with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionCat.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Ocelot.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.fish
Methods in net.minecraft.world.entity.animal.fish with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionAbstractSchoolingFish.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Salmon.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) TropicalFish.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.fox
Methods in net.minecraft.world.entity.animal.fox with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionFox.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) protected voidFox.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) -
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, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.golem
Methods in net.minecraft.world.entity.animal.golem with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionCopperGolem.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) ZombieNautilus.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.panda
Methods in net.minecraft.world.entity.animal.panda with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionPanda.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.parrot
Methods in net.minecraft.world.entity.animal.parrot with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionParrot.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.rabbit
Methods in net.minecraft.world.entity.animal.rabbit with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionRabbit.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.sheep
Methods in net.minecraft.world.entity.animal.sheep with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionSheep.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.squid
Methods in net.minecraft.world.entity.animal.squid with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionSquid.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.turtle
Methods in net.minecraft.world.entity.animal.turtle with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionTurtle.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.animal.wolf
Methods in net.minecraft.world.entity.animal.wolf with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionWolf.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
Uses of DifficultyInstance in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionPatrollingMonster.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Phantom.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Shulker.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Slime.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Strider.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Vex.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Zoglin.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) protected voidVex.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) private SpawnGroupDataStrider.spawnJockey(ServerLevelAccessor level, DifficultyInstance difficulty, Mob jockey, @Nullable SpawnGroupData jockeyGroupData) -
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, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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 level, RandomSource random, DifficultyInstance difficulty) Illusioner.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Pillager.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Vindicator.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) protected voidPillager.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) protected voidVindicator.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) -
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, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) PiglinBrute.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) protected voidPiglin.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) protected voidPiglinBrute.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) -
Uses of DifficultyInstance in net.minecraft.world.entity.monster.skeleton
Methods in net.minecraft.world.entity.monster.skeleton with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionAbstractSkeleton.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) WitherSkeleton.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) protected voidWitherSkeleton.populateDefaultEquipmentEnchantments(ServerLevelAccessor level, RandomSource random, DifficultyInstance localDifficulty) protected voidAbstractSkeleton.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) protected voidWitherSkeleton.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) -
Uses of DifficultyInstance in net.minecraft.world.entity.monster.spider
Methods in net.minecraft.world.entity.monster.spider with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionCaveSpider.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Spider.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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 level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Husk.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Zombie.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) ZombieVillager.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) protected voidDrowned.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) protected voidZombie.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) voidZombifiedPiglin.populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty) -
Uses of DifficultyInstance in net.minecraft.world.entity.npc.villager
Methods in net.minecraft.world.entity.npc.villager with parameters of type DifficultyInstanceModifier and TypeMethodDescriptionAbstractVillager.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) Villager.finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) -
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, EntitySpawnReason spawnReason, @Nullable SpawnGroupData groupData) private intRaid.getPotentialBonusSpawns(Raid.RaiderType type, RandomSource random, int wav, DifficultyInstance difficultyInstance, boolean isBonusWave) -
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 itemStack, RegistryAccess registryAccess, ResourceKey<EnchantmentProvider> providerKey, 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 item, ItemEnchantments.Mutable itemEnchantments, RandomSource random, DifficultyInstance difficulty) voidEnchantmentsByCost.enchant(ItemStack item, ItemEnchantments.Mutable itemEnchantments, RandomSource random, DifficultyInstance difficulty) voidEnchantmentsByCostWithDifficulty.enchant(ItemStack item, ItemEnchantments.Mutable itemEnchantments, RandomSource random, DifficultyInstance difficulty) voidSingleEnchantment.enchant(ItemStack item, ItemEnchantments.Mutable itemEnchantments, RandomSource random, DifficultyInstance difficulty) -
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(ServerLevelAccessor, DifficultyInstance, EntitySpawnReason, 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(ServerLevelAccessor, DifficultyInstance, EntitySpawnReason, 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(ServerLevelAccessor, DifficultyInstance, EntitySpawnReason, 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)