Uses of Enum Class
net.minecraft.world.Difficulty
Package
Description
-
Uses of Difficulty in com.mojang.realmsclient.gui.screens
Modifier and TypeFieldDescriptionstatic final List
<Difficulty> RealmsSlotOptionsScreen.DIFFICULTIES
-
Uses of Difficulty in net.minecraft.client.gui.screens.options
Modifier and TypeMethodDescriptionstatic CycleButton
<Difficulty> OptionsScreen.createDifficultyButton
(int p_346201_, int p_346398_, String p_346029_, Minecraft p_345232_) -
Uses of Difficulty in net.minecraft.client.gui.screens.worldselection
-
Uses of Difficulty in net.minecraft.client.multiplayer
Modifier and TypeMethodDescriptionvoid
ClientLevel.ClientLevelData.setDifficulty
(Difficulty p_104852_) ModifierConstructorDescriptionClientLevelData
(Difficulty p_104843_, boolean p_104844_, boolean p_104845_) -
Uses of Difficulty in net.minecraft.network.protocol.game
Modifier and TypeFieldDescriptionprivate final Difficulty
ClientboundChangeDifficultyPacket.difficulty
private final Difficulty
ServerboundChangeDifficultyPacket.difficulty
Modifier and TypeMethodDescriptionClientboundChangeDifficultyPacket.getDifficulty()
ServerboundChangeDifficultyPacket.getDifficulty()
ModifierConstructorDescriptionClientboundChangeDifficultyPacket
(Difficulty p_131809_, boolean p_131810_) ServerboundChangeDifficultyPacket
(Difficulty p_133817_) -
Uses of Difficulty in net.minecraft.server
Modifier and TypeMethodDescriptionvoid
MinecraftServer.setDifficulty
(Difficulty p_129828_, boolean p_129829_) -
Uses of Difficulty in net.minecraft.server.commands
Modifier and TypeMethodDescriptionstatic int
DifficultyCommand.setDifficulty
(CommandSourceStack p_136945_, Difficulty p_136946_) -
Uses of Difficulty in net.minecraft.server.dedicated
-
Uses of Difficulty in net.minecraft.world
Modifier and TypeFieldDescriptionprivate static final IntFunction
<Difficulty> Difficulty.BY_ID
static final StringRepresentable.EnumCodec
<Difficulty> Difficulty.CODEC
Modifier and TypeMethodDescriptionstatic Difficulty
Difficulty.byId
(int p_19030_) static Difficulty
DifficultyInstance.getDifficulty()
static Difficulty
Returns the enum constant of this class with the specified name.static Difficulty[]
Difficulty.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionprivate float
DifficultyInstance.calculateDifficulty
(Difficulty p_19052_, long p_19053_, long p_19054_, float p_19055_) ModifierConstructorDescriptionDifficultyInstance
(Difficulty p_19044_, long p_19045_, long p_19046_, float p_19047_) -
Uses of Difficulty in net.minecraft.world.entity.ai.goal
Modifier and TypeFieldDescriptionprivate final Predicate
<Difficulty> BreakDoorGoal.validDifficulties
Modifier and TypeMethodDescriptionprivate boolean
BreakDoorGoal.isValidDifficulty
(Difficulty p_25095_) ModifierConstructorDescriptionBreakDoorGoal
(Mob p_25087_, int p_25088_, Predicate<Difficulty> p_25089_) BreakDoorGoal
(Mob p_25091_, Predicate<Difficulty> p_25092_) -
Uses of Difficulty in net.minecraft.world.entity.monster
Modifier and TypeFieldDescription(package private) static final Predicate
<Difficulty> Vindicator.DOOR_BREAKING_PREDICATE
private static final Predicate
<Difficulty> Zombie.DOOR_BREAKING_PREDICATE
-
Uses of Difficulty in net.minecraft.world.entity.raid
-
Uses of Difficulty in net.minecraft.world.level
Modifier and TypeMethodDescriptionLevelSettings.difficulty()
default Difficulty
LevelAccessor.getDifficulty()
ModifierConstructorDescriptionLevelSettings
(String p_250485_, GameType p_250207_, boolean p_251631_, Difficulty p_252122_, boolean p_248961_, GameRules p_248536_, WorldDataConfiguration p_249797_) LevelSettings
(String p_250485_, GameType p_250207_, boolean p_251631_, Difficulty p_252122_, boolean p_248961_, GameRules p_248536_, WorldDataConfiguration p_249797_, com.mojang.serialization.Lifecycle lifecycle) -
Uses of Difficulty in net.minecraft.world.level.storage
Modifier and TypeMethodDescriptionDerivedLevelData.getDifficulty()
LevelData.getDifficulty()
PrimaryLevelData.getDifficulty()
WorldData.getDifficulty()
Modifier and TypeMethodDescriptionvoid
PrimaryLevelData.setDifficulty
(Difficulty p_78521_) void
WorldData.setDifficulty
(Difficulty p_78633_) -
Uses of Difficulty in net.neoforged.neoforge.common
Modifier and TypeMethodDescriptionstatic void
CommonHooks.onDifficultyChange
(Difficulty difficulty, Difficulty oldDifficulty) -
Uses of Difficulty in net.neoforged.neoforge.common.damagesource
Modifier and TypeMethodDescriptionfloat
IScalingFunction.scaleDamage
(DamageSource source, Player target, float amount, Difficulty difficulty) Scales the incoming damage amount based on the current difficulty.
Only damage dealt to players is scaled, other damage is not impacted. -
Uses of Difficulty in net.neoforged.neoforge.event
Modifier and TypeFieldDescriptionprivate final Difficulty
DifficultyChangeEvent.difficulty
private final Difficulty
DifficultyChangeEvent.oldDifficulty
Modifier and TypeMethodDescriptionDifficultyChangeEvent.getDifficulty()
DifficultyChangeEvent.getOldDifficulty()
ModifierConstructorDescriptionDifficultyChangeEvent
(Difficulty difficulty, Difficulty oldDifficulty) -
Uses of Difficulty in net.neoforged.testframework.gametest
Modifier and TypeMethodDescriptionvoid
ExtendedGameTestHelper.requireDifficulty
(Difficulty difficulty)