Interface IClientRegistry

All Known Implementing Classes:
ClientRegistryImpl

public interface IClientRegistry
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    drawPressureGauge(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.client.gui.Font fontRenderer, float minPressure, float maxPressure, float dangerPressure, float minWorkingPressure, float currentPressure, int xPos, int yPos)
    Draw a Pressure Gauge in GUI context, the same as in many PneumaticCraft machine GUI's.
    getAnimatedStat(net.minecraft.client.gui.screens.Screen gui, int backgroundColor)
    Creates a GuiAnimatedStat without icon.
    getAnimatedStat(net.minecraft.client.gui.screens.Screen gui, net.minecraft.resources.ResourceLocation iconTexture, int backgroundColor)
    Creates a GuiAnimatedStat which uses a texture location as static icon.
    getAnimatedStat(net.minecraft.client.gui.screens.Screen gui, net.minecraft.world.item.ItemStack iconStack, int backgroundColor)
    Creates a GuiAnimatedStat which uses an itemstack as static icon.
    void
    registerRenderOverride(net.minecraft.world.level.ItemLike entry, IAssemblyRenderOverriding renderOverride)
    Register some custom item rendering behaviour for an item when held in an Assembly machine.
    void
    registerRenderOverride(net.minecraft.world.level.ItemLike entry, IChargingStationRenderOverride renderOverride)
    Register some custom item rendering behaviour for an item when held in a Charging Station.
  • Method Details

    • getAnimatedStat

      IGuiAnimatedStat getAnimatedStat(net.minecraft.client.gui.screens.Screen gui, int backgroundColor)
      Creates a GuiAnimatedStat without icon.
      Parameters:
      gui - the owning GUI screen
      backgroundColor - background color for the stat in ARGB format
      Returns:
      a new stat widget
    • getAnimatedStat

      IGuiAnimatedStat getAnimatedStat(net.minecraft.client.gui.screens.Screen gui, net.minecraft.world.item.ItemStack iconStack, int backgroundColor)
      Creates a GuiAnimatedStat which uses an itemstack as static icon.
      Parameters:
      gui - the owning GUI screen
      iconStack - an itemstack to use as the stat widget's icon
      backgroundColor - background color for the stat in ARGB format
      Returns:
      a new stat widget
    • getAnimatedStat

      IGuiAnimatedStat getAnimatedStat(net.minecraft.client.gui.screens.Screen gui, net.minecraft.resources.ResourceLocation iconTexture, int backgroundColor)
      Creates a GuiAnimatedStat which uses a texture location as static icon.
      Parameters:
      gui - the owning GUI screen
      iconTexture - a texture to use as the stat widget's icon
      backgroundColor - background color for the stat in ARGB format
      Returns:
      a new stat widget
    • drawPressureGauge

      void drawPressureGauge(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.client.gui.Font fontRenderer, float minPressure, float maxPressure, float dangerPressure, float minWorkingPressure, float currentPressure, int xPos, int yPos)
      Draw a Pressure Gauge in GUI context, the same as in many PneumaticCraft machine GUI's.
      Parameters:
      graphics - the GUI draw context
      fontRenderer - fontrenderer used to draw the numbers of the pressure gauge.
      minPressure - The minimal pressure that needs to be displayed (this is -1 in most applications).
      maxPressure - The maximal pressure that needs to be rendered (see PressureTier for standard pressure thresholds)
      dangerPressure - The transition pressure from green to red (see PressureTier for standard pressure thresholds)
      minWorkingPressure - The transition pressure from yellow to green (varies per machine).
      currentPressure - The pressure that the needle should point to.
      xPos - x position of the gauge.
      yPos - y position of the gauge.
    • registerRenderOverride

      void registerRenderOverride(@Nonnull net.minecraft.world.level.ItemLike entry, @Nonnull IAssemblyRenderOverriding renderOverride)
      Register some custom item rendering behaviour for an item when held in an Assembly machine.
      Parameters:
      entry - an item or block
      renderOverride - customized rendering behaviour for that item
    • registerRenderOverride

      void registerRenderOverride(@Nonnull net.minecraft.world.level.ItemLike entry, @Nonnull IChargingStationRenderOverride renderOverride)
      Register some custom item rendering behaviour for an item when held in a Charging Station.
      Parameters:
      entry - an item or block
      renderOverride - customized rendering behaviour for that item