Package com.mojang.realmsclient.util
Class RealmsUtil
java.lang.Object
com.mojang.realmsclient.util.RealmsUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentconvertToAgePresentation(long pMillis) static Componentstatic Consumer<RealmsServiceException> openScreenAndLogOnFailure(Function<RealmsServiceException, Screen> pScreenSupplier, String pErrorMessage) static Consumer<RealmsServiceException> openScreenOnFailure(Function<RealmsServiceException, Screen> pScreenSupplier) static voidrenderPlayerFace(GuiGraphics pGuiGraphics, int pX, int pY, int pSize, UUID pPlayerUuid) static CompletableFuture<Void> runAsync(RealmsUtil.RealmsIoConsumer pAction, Consumer<RealmsServiceException> pOnError) static <T> CompletableFuture<T> supplyAsync(RealmsUtil.RealmsIoFunction<T> pAction, Consumer<RealmsServiceException> pOnError)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
RIGHT_NOW
-
MINUTES
private static final int MINUTES- See Also:
-
HOURS
private static final int HOURS- See Also:
-
DAYS
private static final int DAYS- See Also:
-
-
Constructor Details
-
RealmsUtil
public RealmsUtil()
-
-
Method Details
-
convertToAgePresentation
-
convertToAgePresentationFromInstant
-
renderPlayerFace
public static void renderPlayerFace(GuiGraphics pGuiGraphics, int pX, int pY, int pSize, UUID pPlayerUuid) -
supplyAsync
public static <T> CompletableFuture<T> supplyAsync(RealmsUtil.RealmsIoFunction<T> pAction, @Nullable Consumer<RealmsServiceException> pOnError) -
runAsync
public static CompletableFuture<Void> runAsync(RealmsUtil.RealmsIoConsumer pAction, @Nullable Consumer<RealmsServiceException> pOnError) -
openScreenOnFailure
public static Consumer<RealmsServiceException> openScreenOnFailure(Function<RealmsServiceException, Screen> pScreenSupplier) -
openScreenAndLogOnFailure
public static Consumer<RealmsServiceException> openScreenAndLogOnFailure(Function<RealmsServiceException, Screen> pScreenSupplier, String pErrorMessage)
-