Package net.minecraft.client.realms
Enum SizeUnit
- All Implemented Interfaces:
Serializable,Comparable<SizeUnit>,java.lang.constant.Constable
@Environment(CLIENT) public enum SizeUnit extends Enum<SizeUnit>
Moved from RealmsUploadScreen.Unit in 20w10a.
- Mappings:
Namespace Name official dprintermediary net/minecraft/class_4428named net/minecraft/client/realms/SizeUnit
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private static intfield_32055 -
Constructor Summary
Constructors Modifier Constructor Description privateSizeUnit() -
Method Summary
Modifier and Type Method Description static doubleconvertToUnit(long bytes, SizeUnit unit)static SizeUnitgetLargestUnit(long bytes)static StringgetUserFriendlyString(long bytes)static StringhumanReadableSize(long bytes, SizeUnit unit)static SizeUnitvalueOf(String name)Returns the enum constant of this type with the specified name.static SizeUnit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
B
- Mappings:
Namespace Name Mixin selector official aLdpr;a:Ldpr;intermediary field_20200Lnet/minecraft/class_4428;field_20200:Lnet/minecraft/class_4428;named BLnet/minecraft/client/realms/SizeUnit;B:Lnet/minecraft/client/realms/SizeUnit;
-
KB
- Mappings:
Namespace Name Mixin selector official bLdpr;b:Ldpr;intermediary field_20201Lnet/minecraft/class_4428;field_20201:Lnet/minecraft/class_4428;named KBLnet/minecraft/client/realms/SizeUnit;KB:Lnet/minecraft/client/realms/SizeUnit;
-
MB
- Mappings:
Namespace Name Mixin selector official cLdpr;c:Ldpr;intermediary field_20202Lnet/minecraft/class_4428;field_20202:Lnet/minecraft/class_4428;named MBLnet/minecraft/client/realms/SizeUnit;MB:Lnet/minecraft/client/realms/SizeUnit;
-
GB
- Mappings:
Namespace Name Mixin selector official dLdpr;d:Ldpr;intermediary field_20203Lnet/minecraft/class_4428;field_20203:Lnet/minecraft/class_4428;named GBLnet/minecraft/client/realms/SizeUnit;GB:Lnet/minecraft/client/realms/SizeUnit;
-
-
Field Details
-
field_32055
private static final int field_32055- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official eLdpr;e:Iintermediary field_32055Lnet/minecraft/class_4428;field_32055:Inamed field_32055Lnet/minecraft/client/realms/SizeUnit;field_32055:I
-
-
Constructor Details
-
SizeUnit
private SizeUnit()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getLargestUnit
- Mappings:
Namespace Name Mixin selector official aLdpr;a(J)Ldpr;intermediary method_25027Lnet/minecraft/class_4428;method_25027(J)Lnet/minecraft/class_4428;named getLargestUnitLnet/minecraft/client/realms/SizeUnit;getLargestUnit(J)Lnet/minecraft/client/realms/SizeUnit;
-
convertToUnit
- Mappings:
Namespace Name Mixin selector official aLdpr;a(JLdpr;)Dintermediary method_25028Lnet/minecraft/class_4428;method_25028(JLnet/minecraft/class_4428;)Dnamed convertToUnitLnet/minecraft/client/realms/SizeUnit;convertToUnit(JLnet/minecraft/client/realms/SizeUnit;)D
-
getUserFriendlyString
- Mappings:
Namespace Name Mixin selector official bLdpr;b(J)Ljava/lang/String;intermediary method_25029Lnet/minecraft/class_4428;method_25029(J)Ljava/lang/String;named getUserFriendlyStringLnet/minecraft/client/realms/SizeUnit;getUserFriendlyString(J)Ljava/lang/String;
-
humanReadableSize
- Mappings:
Namespace Name Mixin selector official bLdpr;b(JLdpr;)Ljava/lang/String;intermediary method_25030Lnet/minecraft/class_4428;method_25030(JLnet/minecraft/class_4428;)Ljava/lang/String;named humanReadableSizeLnet/minecraft/client/realms/SizeUnit;humanReadableSize(JLnet/minecraft/client/realms/SizeUnit;)Ljava/lang/String;
-