Interface ISpellIngredientRenderer<T extends ISpellIngredient>
public interface ISpellIngredientRenderer<T extends ISpellIngredient>
Renderer for spell ingredients.
-
Method Summary
Modifier and TypeMethodDescriptiongetFor(SpellIngredientType<? extends ISpellIngredient> type) voidrenderInGui(T ingredient, net.minecraft.client.gui.GuiGraphics graphics, int x, int y, int mouseX, int mouseY) Renders the passed ingredient in a gui.voidrenderInWorld(T ingredient, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight, int packedOverlay) Renders the passed ingredient instance in world.
-
Method Details
-
renderInWorld
void renderInWorld(T ingredient, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight, int packedOverlay) Renders the passed ingredient instance in world.- Parameters:
ingredient- The ingredient to render.
-
renderInGui
void renderInGui(T ingredient, net.minecraft.client.gui.GuiGraphics graphics, int x, int y, int mouseX, int mouseY) Renders the passed ingredient in a gui.- Parameters:
ingredient- The ingredient to render.
-
getFor
static ISpellIngredientRenderer<ISpellIngredient> getFor(SpellIngredientType<? extends ISpellIngredient> type)
-