Uses of Enum Class
net.minecraft.world.Difficulty
Packages that use Difficulty
Package
Description
The basic AI system for Minecraft living entities.
-
Uses of Difficulty in net.minecraft.client.gui.screen.option
Fields in net.minecraft.client.gui.screen.option with type parameters of type DifficultyModifier and TypeFieldDescriptionprivate @Nullable CyclingButtonWidget
<Difficulty> OptionsScreen.difficultyButton
Methods in net.minecraft.client.gui.screen.option that return types with arguments of type DifficultyModifier and TypeMethodDescriptionstatic CyclingButtonWidget
<Difficulty> OptionsScreen.createDifficultyButtonWidget
(int x, int y, String translationKey, MinecraftClient client) -
Uses of Difficulty in net.minecraft.client.gui.screen.world
Fields in net.minecraft.client.gui.screen.world declared as DifficultyMethods in net.minecraft.client.gui.screen.world that return DifficultyMethods in net.minecraft.client.gui.screen.world with parameters of type Difficulty -
Uses of Difficulty in net.minecraft.client.realms.dto
Methods in net.minecraft.client.realms.dto with parameters of type DifficultyModifier and TypeMethodDescriptionstatic RealmsWorldOptions
RealmsWorldOptions.create
(GameMode gameMode, Difficulty difficulty, boolean hardcore, String version, String slotName) -
Uses of Difficulty in net.minecraft.client.realms.gui.screen
Fields in net.minecraft.client.realms.gui.screen declared as DifficultyFields in net.minecraft.client.realms.gui.screen with type parameters of type DifficultyModifier and TypeFieldDescriptionstatic final List
<Difficulty> RealmsSlotOptionsScreen.DIFFICULTIES
-
Uses of Difficulty in net.minecraft.client.world
Fields in net.minecraft.client.world declared as DifficultyMethods in net.minecraft.client.world that return DifficultyMethods in net.minecraft.client.world with parameters of type DifficultyModifier and TypeMethodDescriptionvoid
ClientWorld.Properties.setDifficulty
(Difficulty difficulty) Constructors in net.minecraft.client.world with parameters of type DifficultyModifierConstructorDescriptionProperties
(Difficulty difficulty, boolean hardcore, boolean flatWorld) -
Uses of Difficulty in net.minecraft.entity.ai.goal
Fields in net.minecraft.entity.ai.goal with type parameters of type DifficultyModifier and TypeFieldDescriptionprivate final Predicate
<Difficulty> BreakDoorGoal.difficultySufficientPredicate
Methods in net.minecraft.entity.ai.goal with parameters of type DifficultyModifier and TypeMethodDescriptionprivate boolean
BreakDoorGoal.isDifficultySufficient
(Difficulty difficulty) Constructor parameters in net.minecraft.entity.ai.goal with type arguments of type DifficultyModifierConstructorDescriptionBreakDoorGoal
(MobEntity mob, int maxProgress, Predicate<Difficulty> difficultySufficientPredicate) BreakDoorGoal
(MobEntity mob, Predicate<Difficulty> difficultySufficientPredicate) -
Uses of Difficulty in net.minecraft.entity.mob
Fields in net.minecraft.entity.mob with type parameters of type DifficultyModifier 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
Fields in net.minecraft.network.packet.c2s.play declared as DifficultyMethods in net.minecraft.network.packet.c2s.play that return DifficultyConstructors in net.minecraft.network.packet.c2s.play with parameters of type Difficulty -
Uses of Difficulty in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as DifficultyMethods in net.minecraft.network.packet.s2c.play that return DifficultyConstructors in net.minecraft.network.packet.s2c.play with parameters of type DifficultyModifierConstructorDescriptionDifficultyS2CPacket
(Difficulty difficulty, boolean difficultyLocked) -
Uses of Difficulty in net.minecraft.server
Methods in net.minecraft.server with parameters of type DifficultyModifier and TypeMethodDescriptionvoid
MinecraftServer.setDifficulty
(Difficulty difficulty, boolean forceUpdate) -
Uses of Difficulty in net.minecraft.server.command
Methods in net.minecraft.server.command with parameters of type DifficultyModifier and TypeMethodDescriptionstatic int
DifficultyCommand.execute
(ServerCommandSource source, Difficulty difficulty) -
Uses of Difficulty in net.minecraft.server.dedicated
Fields in net.minecraft.server.dedicated declared as Difficulty -
Uses of Difficulty in net.minecraft.village.raid
Methods in net.minecraft.village.raid with parameters of type Difficulty -
Uses of Difficulty in net.minecraft.world
Fields in net.minecraft.world declared as DifficultyFields in net.minecraft.world with type parameters of type DifficultyModifier and TypeFieldDescriptionprivate static final IntFunction
<Difficulty> Difficulty.BY_ID
static final StringIdentifiable.EnumCodec
<Difficulty> Difficulty.CODEC
Methods in net.minecraft.world that return DifficultyModifier 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.Methods in net.minecraft.world with parameters of type DifficultyModifier and TypeMethodDescriptionvoid
SaveProperties.setDifficulty
(Difficulty difficulty) private float
LocalDifficulty.setLocalDifficulty
(Difficulty difficulty, long timeOfDay, long inhabitedTime, float moonSize) Constructors in net.minecraft.world with parameters of type DifficultyModifierConstructorDescriptionLocalDifficulty
(Difficulty difficulty, long timeOfDay, long inhabitedTime, float moonSize) -
Uses of Difficulty in net.minecraft.world.level
Fields in net.minecraft.world.level declared as DifficultyMethods in net.minecraft.world.level that return DifficultyModifier and TypeMethodDescriptionLevelInfo.getDifficulty()
LevelProperties.getDifficulty()
UnmodifiableLevelProperties.getDifficulty()
Methods in net.minecraft.world.level with parameters of type DifficultyModifier and TypeMethodDescriptionvoid
LevelProperties.setDifficulty
(Difficulty difficulty) LevelInfo.withDifficulty
(Difficulty difficulty) Constructors in net.minecraft.world.level with parameters of type DifficultyModifierConstructorDescriptionLevelInfo
(String name, GameMode gameMode, boolean hardcore, Difficulty difficulty, boolean allowCommands, GameRules gameRules, DataConfiguration dataConfiguration)