Package appeng.api.client
Class AEKeyRendering
java.lang.Object
appeng.api.client.AEKeyRendering
Registry for
AEKeyRenderHandler. Also contains convenience functions to render a stack without having to
query the render handler first.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrawInGui(net.minecraft.client.Minecraft minecraft, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, AEKey what) static voiddrawOnBlockFace(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource buffers, AEKey what, float scale, int combinedLightIn, net.minecraft.world.level.Level level) static @Nullable AEKeyRenderHandler<?> static net.minecraft.network.chat.ComponentgetDisplayName(AEKey stack) static AEKeyRenderHandler<?> getOrThrow(AEKeyType channel) static List<net.minecraft.network.chat.Component> getTooltip(AEKey stack) static <T extends AEKey>
voidregister(AEKeyType channel, Class<T> keyClass, AEKeyRenderHandler<T> handler)
-
Constructor Details
-
AEKeyRendering
public AEKeyRendering()
-
-
Method Details
-
register
public static <T extends AEKey> void register(AEKeyType channel, Class<T> keyClass, AEKeyRenderHandler<T> handler) -
get
-
getOrThrow
-
drawInGui
public static void drawInGui(net.minecraft.client.Minecraft minecraft, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, AEKey what) -
drawOnBlockFace
public static void drawOnBlockFace(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource buffers, AEKey what, float scale, int combinedLightIn, net.minecraft.world.level.Level level) -
getDisplayName
-
getTooltip
-