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 p_267314_)
  • Method Details

    • tick

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

      public void render(AbstractContainerMenu p_267293_, GuiGraphics p_282894_, float p_266785_, int p_266711_, int p_266841_)
    • renderIcon

      private void renderIcon(Slot p_283532_, ResourceLocation p_283004_, float p_282627_, GuiGraphics p_282825_, int p_281375_, int p_283041_)
    • getIconTransitionTransparency

      private float getIconTransitionTransparency(float p_266904_)