Class CyclingSlotBackground
java.lang.Object
net.minecraft.client.gui.screens.inventory.CyclingSlotBackground
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private int
private List<ResourceLocation>
private final int
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate float
getIconTransitionTransparency
(float p_266904_) void
render
(AbstractContainerMenu p_267293_, GuiGraphics p_282894_, float p_266785_, int p_266711_, int p_266841_) private void
renderIcon
(Slot p_283532_, ResourceLocation p_283004_, float p_282627_, GuiGraphics p_282825_, int p_281375_, int p_283041_) void
tick
(List<ResourceLocation> p_267074_)
-
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
-
tick
private int tick -
iconIndex
private int iconIndex
-
-
Constructor Details
-
CyclingSlotBackground
public CyclingSlotBackground(int p_267314_)
-
-
Method Details
-
tick
-
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_)
-