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 pLevel, RandomSource pRandom, EquipmentSlot pSlot, DifficultyInstance pDifficulty) private voidMob.enchantSpawnedEquipment(ServerLevelAccessor pLevel, EquipmentSlot pSlot, RandomSource pRandom, float pEnchantChance, DifficultyInstance pDifficulty) protected voidMob.enchantSpawnedWeapon(ServerLevelAccessor pLevel, RandomSource pRandom, DifficultyInstance pDifficulty) AgeableMob.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Mob.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Deprecated.Override-Only.protected voidMob.populateDefaultEquipmentEnchantments(ServerLevelAccessor pLevel, RandomSource pRandom, DifficultyInstance pDifficulty) protected voidMob.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, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Cat.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Chicken.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Cow.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Dolphin.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Fox.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Ocelot.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Panda.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Parrot.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Pig.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) PolarBear.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Rabbit.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Salmon.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Squid.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) TropicalFish.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Turtle.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) protected voidFox.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, EntitySpawnReason pSpawnReason, 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, EntitySpawnReason pSpawnReason, 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, EntitySpawnReason pSpawnReason, 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, EntitySpawnReason pSpawnReason, 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 AbstractHorseSkeletonTrapGoal.createHorse(DifficultyInstance pDifficulty) private SkeletonSkeletonTrapGoal.createSkeleton(DifficultyInstance pDifficulty, AbstractHorse pHorse) private voidSkeletonTrapGoal.enchant(Skeleton pSkeleton, EquipmentSlot pSlot, DifficultyInstance pDifficulty) AbstractHorse.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Horse.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Llama.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) TraderLlama.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) -
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 pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) -
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 pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, 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 voidPillager.enchantSpawnedWeapon(ServerLevelAccessor pLevel, RandomSource pRandom, DifficultyInstance pDifficulty) AbstractSkeleton.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) CaveSpider.finalizeSpawn(ServerLevelAccessor p_32259_, DifficultyInstance p_32260_, EntitySpawnReason p_363852_, SpawnGroupData p_32262_) Drowned.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Illusioner.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) PatrollingMonster.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Phantom.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Pillager.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Shulker.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Slime.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Spider.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Strider.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Vex.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Vindicator.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) WitherSkeleton.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Zoglin.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Zombie.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) ZombieVillager.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) protected voidWitherSkeleton.populateDefaultEquipmentEnchantments(ServerLevelAccessor pLevel, RandomSource pRandom, DifficultyInstance pDifficulty) protected voidAbstractSkeleton.populateDefaultEquipmentSlots(RandomSource pRandom, DifficultyInstance pDifficulty) protected voidDrowned.populateDefaultEquipmentSlots(RandomSource pRandom, DifficultyInstance pDifficulty) protected voidPillager.populateDefaultEquipmentSlots(RandomSource pRandom, DifficultyInstance pDifficulty) protected voidVex.populateDefaultEquipmentSlots(RandomSource pRandom, DifficultyInstance pDifficulty) protected voidVindicator.populateDefaultEquipmentSlots(RandomSource pRandom, DifficultyInstance pDifficulty) protected voidWitherSkeleton.populateDefaultEquipmentSlots(RandomSource pRandom, DifficultyInstance pDifficulty) protected voidZombie.populateDefaultEquipmentSlots(RandomSource pRandom, DifficultyInstance pDifficulty) protected voidZombifiedPiglin.populateDefaultEquipmentSlots(RandomSource pRandom, DifficultyInstance pDifficulty) private SpawnGroupDataStrider.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, EntitySpawnReason pSpawnReason, 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, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) PiglinBrute.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) protected voidPiglin.populateDefaultEquipmentSlots(RandomSource pRandom, DifficultyInstance pDifficulty) protected voidPiglinBrute.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, EntitySpawnReason pSpawnReason, 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, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) Villager.finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, EntitySpawnReason pSpawnReason, 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, EntitySpawnReason pSpawnReason, SpawnGroupData pSpawnGroupData) private intRaid.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 voidEnchantmentHelper.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 TypeMethodDescriptionvoidEnchantmentProvider.enchant(ItemStack pStack, ItemEnchantments.Mutable pEnchantments, RandomSource pRandom, DifficultyInstance pDifficulty) voidEnchantmentsByCost.enchant(ItemStack pStack, ItemEnchantments.Mutable pEnchantments, RandomSource pRandom, DifficultyInstance pDifficulty) voidEnchantmentsByCostWithDifficulty.enchant(ItemStack pStack, ItemEnchantments.Mutable pEnchantments, RandomSource pRandom, DifficultyInstance pDifficulty) voidSingleEnchantment.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 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)