Package net.minecraft.world
Class LocalDifficulty
java.lang.Object
net.minecraft.world.LocalDifficulty
@Immutable public class LocalDifficulty extends Object
- Mappings:
Namespace Name official apo
intermediary net/minecraft/class_1266
named net/minecraft/world/LocalDifficulty
-
Field Summary
Fields Modifier and Type Field Description private Difficulty
globalDifficulty
private float
localDifficulty
-
Constructor Summary
Constructors Constructor Description LocalDifficulty(Difficulty difficulty, long timeOfDay, long inhabitedTime, float moonSize)
-
Method Summary
Modifier and Type Method Description float
getClampedLocalDifficulty()
Difficulty
getGlobalDifficulty()
float
getLocalDifficulty()
boolean
isHarderThan(float difficulty)
private float
setLocalDifficulty(Difficulty difficulty, long timeOfDay, long inhabitedTime, float moonSize)
-
Field Details
-
globalDifficulty
- Mappings:
Namespace Name Mixin selector official a
Lapo;a:Lapn;
intermediary field_5798
Lnet/minecraft/class_1266;field_5798:Lnet/minecraft/class_1267;
named globalDifficulty
Lnet/minecraft/world/LocalDifficulty;globalDifficulty:Lnet/minecraft/world/Difficulty;
-
localDifficulty
private final float localDifficulty- Mappings:
Namespace Name Mixin selector official b
Lapo;b:F
intermediary field_5799
Lnet/minecraft/class_1266;field_5799:F
named localDifficulty
Lnet/minecraft/world/LocalDifficulty;localDifficulty:F
-
-
Constructor Details
-
LocalDifficulty
- Mappings:
Namespace Name Mixin selector official <init>
Lapo;<init>(Lapn;JJF)V
intermediary <init>
Lnet/minecraft/class_1266;<init>(Lnet/minecraft/class_1267;JJF)V
named <init>
Lnet/minecraft/world/LocalDifficulty;<init>(Lnet/minecraft/world/Difficulty;JJF)V
-
-
Method Details
-
getGlobalDifficulty
- Mappings:
Namespace Name Mixin selector official a
Lapo;a()Lapn;
intermediary method_5454
Lnet/minecraft/class_1266;method_5454()Lnet/minecraft/class_1267;
named getGlobalDifficulty
Lnet/minecraft/world/LocalDifficulty;getGlobalDifficulty()Lnet/minecraft/world/Difficulty;
-
getLocalDifficulty
public float getLocalDifficulty()- Mappings:
Namespace Name Mixin selector official b
Lapo;b()F
intermediary method_5457
Lnet/minecraft/class_1266;method_5457()F
named getLocalDifficulty
Lnet/minecraft/world/LocalDifficulty;getLocalDifficulty()F
-
isHarderThan
public boolean isHarderThan(float difficulty)- Mappings:
Namespace Name Mixin selector official a
Lapo;a(F)Z
intermediary method_5455
Lnet/minecraft/class_1266;method_5455(F)Z
named isHarderThan
Lnet/minecraft/world/LocalDifficulty;isHarderThan(F)Z
-
getClampedLocalDifficulty
public float getClampedLocalDifficulty()- Mappings:
Namespace Name Mixin selector official d
Lapo;d()F
intermediary method_5458
Lnet/minecraft/class_1266;method_5458()F
named getClampedLocalDifficulty
Lnet/minecraft/world/LocalDifficulty;getClampedLocalDifficulty()F
-
setLocalDifficulty
private float setLocalDifficulty(Difficulty difficulty, long timeOfDay, long inhabitedTime, float moonSize)- Mappings:
Namespace Name Mixin selector official a
Lapo;a(Lapn;JJF)F
intermediary method_5456
Lnet/minecraft/class_1266;method_5456(Lnet/minecraft/class_1267;JJF)F
named setLocalDifficulty
Lnet/minecraft/world/LocalDifficulty;setLocalDifficulty(Lnet/minecraft/world/Difficulty;JJF)F
-