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_, PoseStack p_266914_, float p_266785_, int p_266711_, int p_266841_) private void
renderIcon
(Slot p_266726_, ResourceLocation p_267015_, float p_267083_, PoseStack p_266980_, int p_266972_, int p_266696_) 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_, 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_)
-