diff options
Diffstat (limited to 'src/main/java/com/anthonyhilyard/iceberg/events/GatherComponentsExtEvent.java')
-rw-r--r-- | src/main/java/com/anthonyhilyard/iceberg/events/GatherComponentsExtEvent.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/java/com/anthonyhilyard/iceberg/events/GatherComponentsExtEvent.java b/src/main/java/com/anthonyhilyard/iceberg/events/GatherComponentsExtEvent.java new file mode 100644 index 0000000..753c7c0 --- /dev/null +++ b/src/main/java/com/anthonyhilyard/iceberg/events/GatherComponentsExtEvent.java @@ -0,0 +1,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; } +} |