Uses of Enum Class
net.minecraft.world.Difficulty
Packages that use Difficulty
Package
Description
-
Uses of Difficulty in com.mojang.realmsclient.dto
Methods in com.mojang.realmsclient.dto with parameters of type DifficultyModifier and TypeMethodDescriptionstatic RealmsWorldOptionsRealmsWorldOptions.createDefaultsWith(GameType pGameMode, Difficulty pDifficulty, boolean pHardcore, String pVersion, String pSlotName) -
Uses of Difficulty in com.mojang.realmsclient.gui.screens.configuration
Fields in com.mojang.realmsclient.gui.screens.configuration declared as DifficultyFields in com.mojang.realmsclient.gui.screens.configuration with type parameters of type DifficultyModifier and TypeFieldDescriptionstatic final List<Difficulty> RealmsSlotOptionsScreen.DIFFICULTIES -
Uses of Difficulty in net.minecraft.client.gui.screens.options
Fields in net.minecraft.client.gui.screens.options with type parameters of type DifficultyModifier and TypeFieldDescriptionprivate @Nullable CycleButton<Difficulty> OptionsScreen.difficultyButtonMethods in net.minecraft.client.gui.screens.options that return types with arguments of type DifficultyModifier and TypeMethodDescriptionstatic CycleButton<Difficulty> OptionsScreen.createDifficultyButton(int pX, int pY, String pName, Minecraft pMinecraft) -
Uses of Difficulty in net.minecraft.client.gui.screens.worldselection
Fields in net.minecraft.client.gui.screens.worldselection declared as DifficultyMethods in net.minecraft.client.gui.screens.worldselection that return DifficultyMethods in net.minecraft.client.gui.screens.worldselection with parameters of type DifficultyModifier and TypeMethodDescriptionvoidWorldCreationUiState.setDifficulty(Difficulty pDifficulty) -
Uses of Difficulty in net.minecraft.client.multiplayer
Fields in net.minecraft.client.multiplayer declared as DifficultyMethods in net.minecraft.client.multiplayer that return DifficultyMethods in net.minecraft.client.multiplayer with parameters of type DifficultyModifier and TypeMethodDescriptionvoidClientLevel.ClientLevelData.setDifficulty(Difficulty pDifficulty) Constructors in net.minecraft.client.multiplayer with parameters of type DifficultyModifierConstructorDescriptionClientLevelData(Difficulty pDifficulty, boolean pHardcore, boolean pIsFlat) -
Uses of Difficulty in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as DifficultyModifier and TypeFieldDescriptionprivate final DifficultyClientboundChangeDifficultyPacket.difficultyThe field for thedifficultyrecord component.private final DifficultyServerboundChangeDifficultyPacket.difficultyThe field for thedifficultyrecord component.Methods in net.minecraft.network.protocol.game that return DifficultyModifier and TypeMethodDescriptionClientboundChangeDifficultyPacket.difficulty()Returns the value of thedifficultyrecord component.ServerboundChangeDifficultyPacket.difficulty()Returns the value of thedifficultyrecord component.Constructors in net.minecraft.network.protocol.game with parameters of type DifficultyModifierConstructorDescriptionClientboundChangeDifficultyPacket(Difficulty difficulty, boolean locked) Creates an instance of aClientboundChangeDifficultyPacketrecord class.ServerboundChangeDifficultyPacket(Difficulty difficulty) Creates an instance of aServerboundChangeDifficultyPacketrecord class. -
Uses of Difficulty in net.minecraft.server
Methods in net.minecraft.server with parameters of type DifficultyModifier and TypeMethodDescriptionvoidMinecraftServer.setDifficulty(Difficulty pDifficulty, boolean pForced) -
Uses of Difficulty in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type DifficultyModifier and TypeMethodDescriptionstatic intDifficultyCommand.setDifficulty(CommandSourceStack pSource, Difficulty pDifficulty) -
Uses of Difficulty in net.minecraft.server.dedicated
Fields in net.minecraft.server.dedicated with type parameters of type DifficultyMethods in net.minecraft.server.dedicated with parameters of type Difficulty -
Uses of Difficulty in net.minecraft.server.jsonrpc.api
Fields in net.minecraft.server.jsonrpc.api with type parameters of type DifficultyModifier and TypeFieldDescriptionstatic final SchemaComponent<Difficulty> Schema.DIFFICULTY_SCHEMA -
Uses of Difficulty in net.minecraft.server.jsonrpc.internalapi
Methods in net.minecraft.server.jsonrpc.internalapi that return DifficultyModifier and TypeMethodDescriptionMinecraftServerSettingsService.getDifficulty()MinecraftServerSettingsServiceImpl.getDifficulty()MinecraftServerSettingsService.setDifficulty(Difficulty pDifficulty, ClientInfo pClientInfo) MinecraftServerSettingsServiceImpl.setDifficulty(Difficulty p_449284_, ClientInfo p_449272_) Methods in net.minecraft.server.jsonrpc.internalapi with parameters of type DifficultyModifier and TypeMethodDescriptionMinecraftServerSettingsService.setDifficulty(Difficulty pDifficulty, ClientInfo pClientInfo) MinecraftServerSettingsServiceImpl.setDifficulty(Difficulty p_449284_, ClientInfo p_449272_) -
Uses of Difficulty in net.minecraft.server.jsonrpc.methods
Methods in net.minecraft.server.jsonrpc.methods that return DifficultyModifier and TypeMethodDescriptionstatic DifficultyServerSettingsService.difficulty(MinecraftApi pApi) static DifficultyServerSettingsService.setDifficulty(MinecraftApi pApi, Difficulty pDifficulty, ClientInfo pClientInfo) Methods in net.minecraft.server.jsonrpc.methods with parameters of type DifficultyModifier and TypeMethodDescriptionstatic DifficultyServerSettingsService.setDifficulty(MinecraftApi pApi, Difficulty pDifficulty, ClientInfo pClientInfo) -
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_IDstatic final StringRepresentable.EnumCodec<Difficulty> Difficulty.CODECstatic final StreamCodec<io.netty.buffer.ByteBuf, Difficulty> Difficulty.STREAM_CODECMethods in net.minecraft.world that return DifficultyModifier and TypeMethodDescriptionstatic DifficultyDifficulty.byId(int pId) Deprecated.static @Nullable DifficultyDifficultyInstance.getDifficulty()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 TypeMethodDescriptionprivate floatDifficultyInstance.calculateDifficulty(Difficulty pDifficulty, long pLevelTime, long pChunkInhabitedTime, float pMoonPhaseFactor) Constructors in net.minecraft.world with parameters of type DifficultyModifierConstructorDescriptionDifficultyInstance(Difficulty pBase, long pLevelTime, long pChunkInhabitedTime, float pMoonPhaseFactor) -
Uses of Difficulty in net.minecraft.world.entity.ai.goal
Fields in net.minecraft.world.entity.ai.goal with type parameters of type DifficultyModifier and TypeFieldDescriptionprivate final Predicate<Difficulty> BreakDoorGoal.validDifficultiesMethods in net.minecraft.world.entity.ai.goal with parameters of type DifficultyModifier and TypeMethodDescriptionprivate booleanBreakDoorGoal.isValidDifficulty(Difficulty pDifficulty) Constructor parameters in net.minecraft.world.entity.ai.goal with type arguments of type DifficultyModifierConstructorDescriptionBreakDoorGoal(Mob pMob, int pDoorBreakTime, Predicate<Difficulty> pValidDifficulties) BreakDoorGoal(Mob pMob, Predicate<Difficulty> pValidDifficulties) -
Uses of Difficulty in net.minecraft.world.entity.monster.illager
Fields in net.minecraft.world.entity.monster.illager with type parameters of type DifficultyModifier and TypeFieldDescription(package private) static final Predicate<Difficulty> Vindicator.DOOR_BREAKING_PREDICATE -
Uses of Difficulty in net.minecraft.world.entity.monster.zombie
Fields in net.minecraft.world.entity.monster.zombie with type parameters of type DifficultyModifier and TypeFieldDescriptionprivate static final Predicate<Difficulty> Zombie.DOOR_BREAKING_PREDICATE -
Uses of Difficulty in net.minecraft.world.entity.raid
Methods in net.minecraft.world.entity.raid with parameters of type DifficultyConstructors in net.minecraft.world.entity.raid with parameters of type Difficulty -
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 TypeMethodDescriptionLevelSettings.difficulty()default DifficultyLevelAccessor.getDifficulty()Methods in net.minecraft.world.level with parameters of type DifficultyConstructors in net.minecraft.world.level with parameters of type DifficultyModifierConstructorDescriptionLevelSettings(String pLevelName, GameType pGameType, boolean pHardcore, Difficulty pDifficulty, boolean pAllowCommands, GameRules pGameRules, WorldDataConfiguration pDataConfiguration) LevelSettings(String pLevelName, GameType pGameType, boolean pHardcore, Difficulty pDifficulty, boolean pAllowCommands, GameRules pGameRules, WorldDataConfiguration pDataConfiguration, com.mojang.serialization.Lifecycle lifecycle) -
Uses of Difficulty in net.minecraft.world.level.storage
Methods in net.minecraft.world.level.storage that return DifficultyModifier and TypeMethodDescriptionDerivedLevelData.getDifficulty()LevelData.getDifficulty()PrimaryLevelData.getDifficulty()WorldData.getDifficulty()Methods in net.minecraft.world.level.storage with parameters of type DifficultyModifier and TypeMethodDescriptionvoidPrimaryLevelData.setDifficulty(Difficulty pDifficulty) voidWorldData.setDifficulty(Difficulty pDifficulty) -
Uses of Difficulty in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type DifficultyModifier and TypeMethodDescriptionstatic voidCommonHooks.onDifficultyChange(Difficulty difficulty, Difficulty oldDifficulty) -
Uses of Difficulty in net.neoforged.neoforge.common.damagesource
Methods in net.neoforged.neoforge.common.damagesource with parameters of type DifficultyModifier and TypeMethodDescriptionfloatIScalingFunction.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
Fields in net.neoforged.neoforge.event declared as DifficultyModifier and TypeFieldDescriptionprivate final DifficultyDifficultyChangeEvent.difficultyprivate final DifficultyDifficultyChangeEvent.oldDifficultyMethods in net.neoforged.neoforge.event that return DifficultyModifier and TypeMethodDescriptionDifficultyChangeEvent.getDifficulty()DifficultyChangeEvent.getOldDifficulty()Constructors in net.neoforged.neoforge.event with parameters of type DifficultyModifierConstructorDescriptionDifficultyChangeEvent(Difficulty difficulty, Difficulty oldDifficulty)