Class CyclingSlotBackground

java.lang.Object
net.minecraft.client.gui.screens.inventory.CyclingSlotBackground

public class CyclingSlotBackground extends Object
  • Field Details

    • ICON_CHANGE_TICK_RATE

      private static final int ICON_CHANGE_TICK_RATE
      See Also:
    • ICON_SIZE

      private static final int ICON_SIZE
      See Also:
    • ICON_TRANSITION_TICK_DURATION

      private static final int ICON_TRANSITION_TICK_DURATION
      See Also:
    • slotIndex

      private final int slotIndex
    • icons

      private List<ResourceLocation> icons
    • tick

      private int tick
    • iconIndex

      private int iconIndex
  • Constructor Details

    • CyclingSlotBackground

      public CyclingSlotBackground(int pSlotIndex)
  • Method Details

    • tick

      public void tick(List<ResourceLocation> pIcons)
    • render

      public void render(AbstractContainerMenu pContainerMenu, GuiGraphics pGuiGraphics, float pPartialTick, int pX, int pY)
    • renderIcon

      private void renderIcon(Slot pSlot, ResourceLocation pIcon, float pAlpha, GuiGraphics pGuiGraphics, int pX, int pY)
    • getIconTransitionTransparency

      private float getIconTransitionTransparency(float pPartialTick)