Class ClientPlatformUtil

java.lang.Object
com.refinedmods.refinedstorage.common.util.ClientPlatformUtil

public final class ClientPlatformUtil extends Object
  • Method Details

    • getClientLevel

      public static @Nullable net.minecraft.world.level.Level getClientLevel()
    • addMessageToast

      public static void addMessageToast(net.minecraft.network.chat.Component title, net.minecraft.network.chat.Component message)
    • autocraftingPreviewResponseReceived

      public static void autocraftingPreviewResponseReceived(UUID id, Preview preview)
    • autocraftingPreviewResponseReceived

      public static void autocraftingPreviewResponseReceived(UUID id, TreePreview preview)
    • autocraftingPreviewCancelResponseReceived

      public static void autocraftingPreviewCancelResponseReceived()
    • autocraftingResponseReceived

      public static void autocraftingResponseReceived(UUID id, boolean success)
    • autocraftingPreviewMaxAmountResponseReceived

      public static void autocraftingPreviewMaxAmountResponseReceived(long maxAmount)
    • openCraftingPreview

      public static void openCraftingPreview(List<ResourceAmount> requests, @Nullable Object parentScreen)
    • autocraftingTaskCompleted

      public static void autocraftingTaskCompleted(PlatformResourceKey resource, long amount)
    • renderSlotHighlightBack

      public static void renderSlotHighlightBack(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y)
    • renderSlotHighlightFront

      public static void renderSlotHighlightFront(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y)
    • getRotation

      public static net.minecraft.client.renderer.block.dispatch.BlockModelRotation getRotation(OrientedDirection direction)
    • getFluidSprite

      public static net.minecraft.client.renderer.texture.TextureAtlasSprite getFluidSprite(FluidResource fluidResource)
    • getFluidSprite

      public static net.minecraft.client.renderer.texture.TextureAtlasSprite getFluidSprite(net.minecraft.client.renderer.block.FluidModel fluidModel)
    • getClientPlayer

      public static @Nullable net.minecraft.world.entity.player.Player getClientPlayer()
    • isCommand

      public static boolean isCommand()
    • isCommandOrControlDown

      public static boolean isCommandOrControlDown()