Uses of Enum Class
net.minecraft.world.Difficulty
Package
Description
The basic AI system for Minecraft living entities.
-
Uses of Difficulty in net.minecraft.client.gui.screen.option
Modifier and TypeFieldDescriptionprivate @Nullable CyclingButtonWidget
<Difficulty> OptionsScreen.difficultyButton
Modifier and TypeMethodDescriptionstatic CyclingButtonWidget
<Difficulty> OptionsScreen.createDifficultyButtonWidget
(int x, int y, String translationKey, MinecraftClient client) -
Uses of Difficulty in net.minecraft.client.gui.screen.world
-
Uses of Difficulty in net.minecraft.client.realms.gui.screen
Modifier and TypeFieldDescriptionstatic final List
<Difficulty> RealmsSlotOptionsScreen.DIFFICULTIES
-
Uses of Difficulty in net.minecraft.client.world
Modifier and TypeMethodDescriptionvoid
ClientWorld.Properties.setDifficulty
(Difficulty difficulty) ModifierConstructorDescriptionProperties
(Difficulty difficulty, boolean hardcore, boolean flatWorld) -
Uses of Difficulty in net.minecraft.entity.ai.goal
Modifier and TypeFieldDescriptionprivate final Predicate
<Difficulty> BreakDoorGoal.difficultySufficientPredicate
Modifier and TypeMethodDescriptionprivate boolean
BreakDoorGoal.isDifficultySufficient
(Difficulty difficulty) ModifierConstructorDescriptionBreakDoorGoal
(MobEntity mob, int maxProgress, Predicate<Difficulty> difficultySufficientPredicate) BreakDoorGoal
(MobEntity mob, Predicate<Difficulty> difficultySufficientPredicate) -
Uses of Difficulty in net.minecraft.entity.mob
Modifier and TypeFieldDescription(package private) static final Predicate
<Difficulty> VindicatorEntity.DIFFICULTY_ALLOWS_DOOR_BREAKING_PREDICATE
private static final Predicate
<Difficulty> ZombieEntity.DOOR_BREAK_DIFFICULTY_CHECKER
-
Uses of Difficulty in net.minecraft.network.packet.c2s.play
-
Uses of Difficulty in net.minecraft.network.packet.s2c.play
ModifierConstructorDescriptionDifficultyS2CPacket
(Difficulty difficulty, boolean difficultyLocked) -
Uses of Difficulty in net.minecraft.server
Modifier and TypeMethodDescriptionvoid
MinecraftServer.setDifficulty
(Difficulty difficulty, boolean forceUpdate) -
Uses of Difficulty in net.minecraft.server.command
Modifier and TypeMethodDescriptionstatic int
DifficultyCommand.execute
(ServerCommandSource source, Difficulty difficulty) -
Uses of Difficulty in net.minecraft.server.dedicated
-
Uses of Difficulty in net.minecraft.village.raid
-
Uses of Difficulty in net.minecraft.world
Modifier and TypeFieldDescriptionprivate static final IntFunction
<Difficulty> Difficulty.BY_ID
static final StringIdentifiable.EnumCodec
<Difficulty> Difficulty.CODEC
Modifier and TypeMethodDescriptionstatic Difficulty
Difficulty.byId
(int id) static @Nullable Difficulty
SaveProperties.getDifficulty()
default Difficulty
WorldAccess.getDifficulty()
WorldProperties.getDifficulty()
LocalDifficulty.getGlobalDifficulty()
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 TypeMethodDescriptionvoid
SaveProperties.setDifficulty
(Difficulty difficulty) private float
LocalDifficulty.setLocalDifficulty
(Difficulty difficulty, long timeOfDay, long inhabitedTime, float moonSize) ModifierConstructorDescriptionLocalDifficulty
(Difficulty difficulty, long timeOfDay, long inhabitedTime, float moonSize) -
Uses of Difficulty in net.minecraft.world.level
Modifier and TypeMethodDescriptionLevelInfo.getDifficulty()
LevelProperties.getDifficulty()
UnmodifiableLevelProperties.getDifficulty()
Modifier and TypeMethodDescriptionvoid
LevelProperties.setDifficulty
(Difficulty difficulty) LevelInfo.withDifficulty
(Difficulty difficulty) ModifierConstructorDescriptionLevelInfo
(String name, GameMode gameMode, boolean hardcore, Difficulty difficulty, boolean allowCommands, GameRules gameRules, DataConfiguration dataConfiguration)