Class ClientPlatformUtil
java.lang.Object
com.refinedmods.refinedstorage.common.util.ClientPlatformUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddMessageToast(net.minecraft.network.chat.Component title, net.minecraft.network.chat.Component message) static voidstatic voidautocraftingPreviewMaxAmountResponseReceived(long maxAmount) static voidautocraftingPreviewResponseReceived(UUID id, Preview preview) static voidautocraftingPreviewResponseReceived(UUID id, TreePreview preview) static voidautocraftingResponseReceived(UUID id, boolean success) static voidautocraftingTaskCompleted(PlatformResourceKey resource, long amount) static @Nullable net.minecraft.world.level.Levelstatic @Nullable net.minecraft.world.entity.player.Playerstatic net.minecraft.client.renderer.texture.TextureAtlasSpritegetFluidSprite(FluidResource fluidResource) static net.minecraft.client.renderer.texture.TextureAtlasSpritegetFluidSprite(net.minecraft.client.renderer.block.FluidModel fluidModel) static net.minecraft.client.renderer.block.dispatch.BlockModelRotationgetRotation(OrientedDirection direction) static booleanstatic booleanstatic voidopenCraftingPreview(List<ResourceAmount> requests, @Nullable Object parentScreen) static voidrenderSlotHighlightBack(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y) static voidrenderSlotHighlightFront(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y)
-
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
-
autocraftingPreviewResponseReceived
-
autocraftingPreviewCancelResponseReceived
public static void autocraftingPreviewCancelResponseReceived() -
autocraftingResponseReceived
-
autocraftingPreviewMaxAmountResponseReceived
public static void autocraftingPreviewMaxAmountResponseReceived(long maxAmount) -
openCraftingPreview
public static void openCraftingPreview(List<ResourceAmount> requests, @Nullable Object parentScreen) -
autocraftingTaskCompleted
-
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()
-