Uses of Enum Class
net.minecraft.world.Difficulty
Packages that use Difficulty
Package
Description
-
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 CyclingButtonWidget<Difficulty>OptionsScreen.difficultyButton -
Uses of Difficulty in net.minecraft.client.gui.screen.world
Fields in net.minecraft.client.gui.screen.world declared as DifficultyFields in net.minecraft.client.gui.screen.world with type parameters of type DifficultyModifier and TypeFieldDescriptionprivate CyclingButtonWidget<Difficulty>CreateWorldScreen.difficultyButtonMethods in net.minecraft.client.gui.screen.world that return Difficulty -
Uses of Difficulty in net.minecraft.client.option
Fields in net.minecraft.client.option declared as Difficulty -
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 Difficulty -
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 TypeMethodDescriptionvoidClientWorld.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 Predicate<Difficulty>BreakDoorGoal.difficultySufficientPredicateMethods in net.minecraft.entity.ai.goal with parameters of type DifficultyModifier and TypeMethodDescriptionprivate booleanBreakDoorGoal.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 Predicate<Difficulty>VindicatorEntity.DIFFICULTY_ALLOWS_DOOR_BREAKING_PREDICATEprivate static 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 TypeMethodDescriptionvoidMinecraftServer.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 intDifficultyCommand.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 DifficultyModifier and TypeFieldDescriptionprivate static Difficulty[]Difficulty.BY_NAMEprivate DifficultyLocalDifficulty.globalDifficultyMethods in net.minecraft.world that return DifficultyModifier and TypeMethodDescriptionstatic @Nullable Difficultystatic DifficultyDifficulty.byOrdinal(int ordinal)SaveProperties.getDifficulty()default DifficultyWorldAccess.getDifficulty()WorldProperties.getDifficulty()LocalDifficulty.getGlobalDifficulty()static DifficultyReturns 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 TypeMethodDescriptionvoidSaveProperties.setDifficulty(Difficulty difficulty)private floatLocalDifficulty.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 TypeMethodDescriptionvoidLevelProperties.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, DataPackSettings dataPackSettings)