Uses of Enum Class
net.minecraft.world.Difficulty
Package
Description
-
Uses of Difficulty in net.minecraft.client
-
Uses of Difficulty in net.minecraft.client.gui.screen
Modifier and TypeFieldDescriptionprivate Difficulty
OptionsScreen.currentDifficulty
private Difficulty
CreateWorldScreen.effectiveDifficulty
private Difficulty
CreateWorldScreen.selectedDifficulty
Modifier and TypeMethodDescriptionprivate ITextComponent
OptionsScreen.getDifficultyText
(Difficulty p_238630_1_) -
Uses of Difficulty in net.minecraft.client.world
Modifier and TypeMethodDescriptionvoid
ClientWorld.ClientWorldInfo.setDifficulty
(Difficulty p_239156_1_) ModifierConstructorDescriptionClientWorldInfo
(Difficulty p_i232338_1_, boolean p_i232338_2_, boolean p_i232338_3_) -
Uses of Difficulty in net.minecraft.command.impl
Modifier and TypeMethodDescriptionstatic int
DifficultyCommand.setDifficulty
(CommandSource p_198345_0_, Difficulty p_198345_1_) -
Uses of Difficulty in net.minecraft.entity.ai.goal
Modifier and TypeFieldDescriptionprivate final Predicate<Difficulty>
BreakDoorGoal.validDifficulties
Modifier and TypeMethodDescriptionprivate boolean
BreakDoorGoal.isValidDifficulty
(Difficulty p_220696_1_) ModifierConstructorDescriptionBreakDoorGoal
(MobEntity p_i50333_1_, int p_i50333_2_, Predicate<Difficulty> p_i50333_3_) BreakDoorGoal
(MobEntity p_i50332_1_, Predicate<Difficulty> p_i50332_2_) -
Uses of Difficulty in net.minecraft.entity.monster
Modifier and TypeFieldDescriptionprivate static final Predicate<Difficulty>
VindicatorEntity.DOOR_BREAKING_PREDICATE
private static final Predicate<Difficulty>
ZombieEntity.DOOR_BREAKING_PREDICATE
-
Uses of Difficulty in net.minecraft.network.play.client
-
Uses of Difficulty in net.minecraft.network.play.server
ModifierConstructorDescriptionSServerDifficultyPacket
(Difficulty p_i46963_1_, boolean p_i46963_2_) -
Uses of Difficulty in net.minecraft.server
Modifier and TypeMethodDescriptionvoid
MinecraftServer.setDifficulty
(Difficulty p_147139_1_, boolean p_147139_2_) -
Uses of Difficulty in net.minecraft.server.dedicated
-
Uses of Difficulty in net.minecraft.world
Modifier and TypeFieldDescriptionprivate final Difficulty
DifficultyInstance.base
private static final Difficulty[]
Difficulty.BY_ID
private final Difficulty
WorldSettings.difficulty
Modifier and TypeMethodDescriptionstatic Difficulty
Difficulty.byId
(int p_151523_0_) static Difficulty
WorldSettings.difficulty()
DifficultyInstance.getDifficulty()
default Difficulty
IWorld.getDifficulty()
Difficulty.nextById()
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_180169_1_, long p_180169_2_, long p_180169_4_, float p_180169_6_) WorldSettings.withDifficulty
(Difficulty p_234948_1_) ModifierConstructorDescriptionDifficultyInstance
(Difficulty p_i45904_1_, long p_i45904_2_, long p_i45904_4_, float p_i45904_6_) WorldSettings
(String p_i231620_1_, GameType p_i231620_2_, boolean p_i231620_3_, Difficulty p_i231620_4_, boolean p_i231620_5_, GameRules p_i231620_6_, DatapackCodec p_i231620_7_) -
Uses of Difficulty in net.minecraft.world.raid
-
Uses of Difficulty in net.minecraft.world.storage
Modifier and TypeMethodDescriptionDerivedWorldInfo.getDifficulty()
IServerConfiguration.getDifficulty()
IWorldInfo.getDifficulty()
ServerWorldInfo.getDifficulty()
Modifier and TypeMethodDescriptionvoid
IServerConfiguration.setDifficulty
(Difficulty p_230409_1_) void
ServerWorldInfo.setDifficulty
(Difficulty p_230409_1_) -
Uses of Difficulty in net.minecraftforge.common
Modifier and TypeMethodDescriptionstatic void
ForgeHooks.onDifficultyChange
(Difficulty difficulty, Difficulty oldDifficulty) -
Uses of Difficulty in net.minecraftforge.event
Modifier and TypeFieldDescriptionprivate final Difficulty
DifficultyChangeEvent.difficulty
private final Difficulty
DifficultyChangeEvent.oldDifficulty
Modifier and TypeMethodDescriptionDifficultyChangeEvent.getDifficulty()
DifficultyChangeEvent.getOldDifficulty()
ModifierConstructorDescriptionDifficultyChangeEvent
(Difficulty difficulty, Difficulty oldDifficulty)