Enum Class SizeUnit

java.lang.Object
java.lang.Enum<SizeUnit>
net.minecraft.client.realms.SizeUnit
All Implemented Interfaces:
Serializable, Comparable<SizeUnit>, Constable

@Environment(CLIENT) public enum SizeUnit extends Enum<SizeUnit>
Moved from RealmsUploadScreen.Unit in 20w10a.
Mappings:
Namespace Name
official dsh
intermediary net/minecraft/class_4428
named net/minecraft/client/realms/SizeUnit
  • Enum Constant Details

    • B

      public static final SizeUnit B
      Mappings:
      Namespace Name Mixin selector
      official a Ldsh;a:Ldsh;
      intermediary field_20200 Lnet/minecraft/class_4428;field_20200:Lnet/minecraft/class_4428;
      named B Lnet/minecraft/client/realms/SizeUnit;B:Lnet/minecraft/client/realms/SizeUnit;
    • KB

      public static final SizeUnit KB
      Mappings:
      Namespace Name Mixin selector
      official b Ldsh;b:Ldsh;
      intermediary field_20201 Lnet/minecraft/class_4428;field_20201:Lnet/minecraft/class_4428;
      named KB Lnet/minecraft/client/realms/SizeUnit;KB:Lnet/minecraft/client/realms/SizeUnit;
    • MB

      public static final SizeUnit MB
      Mappings:
      Namespace Name Mixin selector
      official c Ldsh;c:Ldsh;
      intermediary field_20202 Lnet/minecraft/class_4428;field_20202:Lnet/minecraft/class_4428;
      named MB Lnet/minecraft/client/realms/SizeUnit;MB:Lnet/minecraft/client/realms/SizeUnit;
    • GB

      public static final SizeUnit GB
      Mappings:
      Namespace Name Mixin selector
      official d Ldsh;d:Ldsh;
      intermediary field_20203 Lnet/minecraft/class_4428;field_20203:Lnet/minecraft/class_4428;
      named GB Lnet/minecraft/client/realms/SizeUnit;GB:Lnet/minecraft/client/realms/SizeUnit;
  • Field Details

    • BASE

      private static final int BASE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Ldsh;e:I
      intermediary field_32055 Lnet/minecraft/class_4428;field_32055:I
      named BASE Lnet/minecraft/client/realms/SizeUnit;BASE:I
  • Constructor Details

    • SizeUnit

      private SizeUnit()
  • Method Details

    • values

      public static SizeUnit[] 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

      public static SizeUnit valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getLargestUnit

      public static SizeUnit getLargestUnit(long bytes)
      Mappings:
      Namespace Name Mixin selector
      official a Ldsh;a(J)Ldsh;
      intermediary method_25027 Lnet/minecraft/class_4428;method_25027(J)Lnet/minecraft/class_4428;
      named getLargestUnit Lnet/minecraft/client/realms/SizeUnit;getLargestUnit(J)Lnet/minecraft/client/realms/SizeUnit;
    • convertToUnit

      public static double convertToUnit(long bytes, SizeUnit unit)
      Mappings:
      Namespace Name Mixin selector
      official a Ldsh;a(JLdsh;)D
      intermediary method_25028 Lnet/minecraft/class_4428;method_25028(JLnet/minecraft/class_4428;)D
      named convertToUnit Lnet/minecraft/client/realms/SizeUnit;convertToUnit(JLnet/minecraft/client/realms/SizeUnit;)D
    • getUserFriendlyString

      public static String getUserFriendlyString(long bytes)
      Mappings:
      Namespace Name Mixin selector
      official b Ldsh;b(J)Ljava/lang/String;
      intermediary method_25029 Lnet/minecraft/class_4428;method_25029(J)Ljava/lang/String;
      named getUserFriendlyString Lnet/minecraft/client/realms/SizeUnit;getUserFriendlyString(J)Ljava/lang/String;
    • humanReadableSize

      public static String humanReadableSize(long bytes, SizeUnit unit)
      Mappings:
      Namespace Name Mixin selector
      official b Ldsh;b(JLdsh;)Ljava/lang/String;
      intermediary method_25030 Lnet/minecraft/class_4428;method_25030(JLnet/minecraft/class_4428;)Ljava/lang/String;
      named humanReadableSize Lnet/minecraft/client/realms/SizeUnit;humanReadableSize(JLnet/minecraft/client/realms/SizeUnit;)Ljava/lang/String;