blob: 753c7c061cd893335e9c551029d08334696b6be7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package com.anthonyhilyard.iceberg.events;
import java.util.List;
import com.mojang.datafixers.util.Either;
import net.minecraft.network.chat.FormattedText;
import net.minecraft.world.inventory.tooltip.TooltipComponent;
import net.minecraft.world.item.ItemStack;
import net.minecraftforge.client.event.RenderTooltipEvent.GatherComponents;
public class GatherComponentsExtEvent extends GatherComponents
{
private final int index;
public GatherComponentsExtEvent(ItemStack itemStack, int screenWidth, int screenHeight, List<Either<FormattedText, TooltipComponent>> tooltipElements, int maxWidth, int index)
{
super(itemStack, screenWidth, screenHeight, tooltipElements, maxWidth);
this.index = index;
}
public int getIndex() { return index; }
}
|