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_, PoseStack p_266914_, float p_266785_, int p_266711_, int p_266841_)
    • renderIcon

      private void renderIcon(Slot p_266726_, ResourceLocation p_267015_, float p_267083_, PoseStack p_266980_, int p_266972_, int p_266696_)
    • getIconTransitionTransparency

      private float getIconTransitionTransparency(float p_266904_)