Class RadawayEffectRenderer

java.lang.Object
com.hbm_m.effect.render.RadawayEffectRenderer

public final class RadawayEffectRenderer extends Object
Платформонезависимый рендерер иконки RadawayEffect. Вся логика рисования сосредоточена здесь. Forge вызывает через IClientMobEffectExtensions, Fabric — через Mixin.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final net.minecraft.resources.ResourceLocation
     
    static final int
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    renderHud(net.minecraft.client.gui.GuiGraphics gfx, int x, int y, int blitOffset, float alpha)
    HUD (Forge): x, y — левый верх фона 24×24.
    static void
    renderIcon(net.minecraft.client.gui.GuiGraphics gfx, int x, int y, int blitOffset, float alpha)
    Левый верх 18×18 иконки (как у ванильного GuiGraphics#blit(..., 18, 18, sprite)).
    static void
    renderInventory(net.minecraft.client.gui.GuiGraphics gfx, int x, int y, int blitOffset)
    Инвентарь (Forge): x — уже позиция иконки, y — верх строки фона (32px).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • renderIcon

      public static void renderIcon(net.minecraft.client.gui.GuiGraphics gfx, int x, int y, int blitOffset, float alpha)
      Левый верх 18×18 иконки (как у ванильного GuiGraphics#blit(..., 18, 18, sprite)).
    • renderInventory

      public static void renderInventory(net.minecraft.client.gui.GuiGraphics gfx, int x, int y, int blitOffset)
      Инвентарь (Forge): x — уже позиция иконки, y — верх строки фона (32px). Ваниль: blit(x, y + 7, …, 18, 18, sprite).
    • renderHud

      public static void renderHud(net.minecraft.client.gui.GuiGraphics gfx, int x, int y, int blitOffset, float alpha)
      HUD (Forge): x, y — левый верх фона 24×24. Ваниль: blit(x + 3, y + 3, …, 18, 18, sprite).