Package net.minecraft.client.realms
Enum Class SizeUnit
- All Implemented Interfaces:
Serializable
,Comparable<SizeUnit>
,Constable
Moved from RealmsUploadScreen.Unit in 20w10a.
- Mappings:
Namespace Name named net/minecraft/client/realms/SizeUnit
intermediary net/minecraft/class_4428
official fhd
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
convertToUnit
(long bytes, SizeUnit unit) static SizeUnit
getLargestUnit
(long bytes) static String
getUserFriendlyString
(long bytes) static String
humanReadableSize
(long bytes, SizeUnit unit) static SizeUnit
Returns the enum constant of this class with the specified name.static SizeUnit[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
B
- Mappings:
Namespace Name Mixin selector named B
Lnet/minecraft/client/realms/SizeUnit;B:Lnet/minecraft/client/realms/SizeUnit;
intermediary field_20200
Lnet/minecraft/class_4428;field_20200:Lnet/minecraft/class_4428;
official a
Lfhd;a:Lfhd;
-
KB
- Mappings:
Namespace Name Mixin selector named KB
Lnet/minecraft/client/realms/SizeUnit;KB:Lnet/minecraft/client/realms/SizeUnit;
intermediary field_20201
Lnet/minecraft/class_4428;field_20201:Lnet/minecraft/class_4428;
official b
Lfhd;b:Lfhd;
-
MB
- Mappings:
Namespace Name Mixin selector named MB
Lnet/minecraft/client/realms/SizeUnit;MB:Lnet/minecraft/client/realms/SizeUnit;
intermediary field_20202
Lnet/minecraft/class_4428;field_20202:Lnet/minecraft/class_4428;
official c
Lfhd;c:Lfhd;
-
GB
- Mappings:
Namespace Name Mixin selector named GB
Lnet/minecraft/client/realms/SizeUnit;GB:Lnet/minecraft/client/realms/SizeUnit;
intermediary field_20203
Lnet/minecraft/class_4428;field_20203:Lnet/minecraft/class_4428;
official d
Lfhd;d:Lfhd;
-
-
Field Details
-
BASE
private static final int BASE- See Also:
- Mappings:
Namespace Name Mixin selector named BASE
Lnet/minecraft/client/realms/SizeUnit;BASE:I
intermediary field_32055
Lnet/minecraft/class_4428;field_32055:I
official e
Lfhd;e:I
-
-
Constructor Details
-
SizeUnit
private SizeUnit()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getLargestUnit
- Mappings:
Namespace Name Mixin selector named getLargestUnit
Lnet/minecraft/client/realms/SizeUnit;getLargestUnit(J)Lnet/minecraft/client/realms/SizeUnit;
intermediary method_25027
Lnet/minecraft/class_4428;method_25027(J)Lnet/minecraft/class_4428;
official a
Lfhd;a(J)Lfhd;
-
convertToUnit
- Mappings:
Namespace Name Mixin selector named convertToUnit
Lnet/minecraft/client/realms/SizeUnit;convertToUnit(JLnet/minecraft/client/realms/SizeUnit;)D
intermediary method_25028
Lnet/minecraft/class_4428;method_25028(JLnet/minecraft/class_4428;)D
official a
Lfhd;a(JLfhd;)D
-
getUserFriendlyString
- Mappings:
Namespace Name Mixin selector named getUserFriendlyString
Lnet/minecraft/client/realms/SizeUnit;getUserFriendlyString(J)Ljava/lang/String;
intermediary method_25029
Lnet/minecraft/class_4428;method_25029(J)Ljava/lang/String;
official b
Lfhd;b(J)Ljava/lang/String;
-
humanReadableSize
- Mappings:
Namespace Name Mixin selector named humanReadableSize
Lnet/minecraft/client/realms/SizeUnit;humanReadableSize(JLnet/minecraft/client/realms/SizeUnit;)Ljava/lang/String;
intermediary method_25030
Lnet/minecraft/class_4428;method_25030(JLnet/minecraft/class_4428;)Ljava/lang/String;
official b
Lfhd;b(JLfhd;)Ljava/lang/String;
-