Final patching

Signed-off-by: cpw <[email protected]>
This commit is contained in:
Anthony Anderson authored and cpw committed 2020-06-25 17:55:54 -04:00
1 parent 80eb12e59d
commit ca2ed1ff7a
139 files changed
+1034 -4067

No files matched your search

@@ -225,72 +225,6 @@ public class GuiScreenEvent extends Event
}
}
@Deprecated // Remove in 1.16
public static class ActionPerformedEvent extends GuiScreenEvent
{
private Button button;
private List<Button> buttonList;
public ActionPerformedEvent(Screen gui, Button button, List<Button> buttonList)
{
super(gui);
this.setButton(button);
this.setButtonList(new ArrayList<Button>(buttonList));
}
/**
* The button that was clicked.
*/
public Button getButton()
{
return button;
}
public void setButton(Button button)
{
this.button = button;
}
/**
* A COPY of the {@link #buttonList} field from the GuiScreen referenced by {@link #gui}.
*/
public List<Button> getButtonList()
{
return buttonList;
}
public void setButtonList(List<Button> buttonList)
{
this.buttonList = buttonList;
}
/**
* This event fires once it has been determined that a GuiButton object has been clicked.
* Cancel this event to bypass {@link GuiScreen#actionPerformed(GuiButton)}.
* Replace button with a different button from buttonList to have that button's action executed.
*/
@Cancelable
public static class Pre extends ActionPerformedEvent
{
public Pre(Screen gui, Button button, List<Button> buttonList)
{
super(gui, button, buttonList);
}
}
/**
* This event fires after {@link GuiScreen#actionPerformed(GuiButton)} provided that the active
* screen has not been changed as a result of {@link GuiScreen#actionPerformed(GuiButton)}.
*/
public static class Post extends ActionPerformedEvent
{
public Post(Screen gui, Button button, List<Button> buttonList)
{
super(gui, button, buttonList);
}
}
}
public static abstract class MouseInputEvent extends GuiScreenEvent
{
private final double mouseX;