Package appeng.api.client
Interface AEKeyRenderHandler<T extends AEKey>
public interface AEKeyRenderHandler<T extends AEKey>
Client-side rendering of AE stacks. Must be registered in
AEKeyRendering
for each storage channel!-
Method Summary
Modifier and TypeMethodDescriptionvoid
drawInGui
(net.minecraft.client.Minecraft minecraft, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, T stack) Draw the stack, for example the item or the fluid sprite, but not the amount.void
drawOnBlockFace
(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource buffers, T what, float scale, int combinedLight, net.minecraft.world.level.Level level) Draw the representation of a key in-world on the face of a block.net.minecraft.network.chat.Component
getDisplayName
(T stack) Name of the stack, ignoring the amount.default List
<net.minecraft.network.chat.Component> getTooltip
(T stack) Return the full tooltip, with the name of the stack and any additional lines.
-
Method Details
-
drawInGui
void drawInGui(net.minecraft.client.Minecraft minecraft, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, T stack) Draw the stack, for example the item or the fluid sprite, but not the amount. -
drawOnBlockFace
void drawOnBlockFace(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource buffers, T what, float scale, int combinedLight, net.minecraft.world.level.Level level) Draw the representation of a key in-world on the face of a block. Used for displaying it on screens and monitors. -
getDisplayName
Name of the stack, ignoring the amount. -
getTooltip
Return the full tooltip, with the name of the stack and any additional lines.
-