package me.shedaniel.rei.gui.widget; import com.google.common.collect.Lists; import me.shedaniel.cloth.api.ClientUtils; import java.awt.*; import java.util.LinkedList; import java.util.List; public class QueuedTooltip { private Point location; private List text; private QueuedTooltip(Point location, List text) { this.location = location; this.text = new LinkedList<>(text); } public static QueuedTooltip create(Point location, List text) { return new QueuedTooltip(location, text); } public static QueuedTooltip create(Point location, String... text) { return QueuedTooltip.create(location, Lists.newArrayList(text)); } public static QueuedTooltip create(List text) { return QueuedTooltip.create(ClientUtils.getMouseLocation(), text); } public static QueuedTooltip create(String... text) { return QueuedTooltip.create(ClientUtils.getMouseLocation(), text); } public Point getLocation() { return location; } public int getX() { return getLocation().x; } public int getY() { return getLocation().y; } public List getText() { return text; } }