Update buildscript & apply automatic formatting rules

This commit is contained in:
Raven Szewczyk authored and Jason Mitchell committed 2022-06-27 10:23:18 -07:00
1 parent a7683b885d
commit f7a900e910
173 files changed
+4581 -5321

No files matched your search

@@ -6,26 +6,25 @@ import net.minecraft.item.ItemStack;
/**
* Provides more general gui calls as well as functions for more integration between objects
*/
public interface IContainerObjectHandler
{
public interface IContainerObjectHandler {
/**
* Called once per tick in the gui.
* @param gui An instance of the currentscreen
*/
public void guiTick(GuiContainer gui);
/**
* Called when the same gui is reshown.
* @param gui An instance of the currentscreen
*/
public void refresh(GuiContainer gui);
public void refresh(GuiContainer gui);
/**
* Called when the gui is shown
* @param gui An instance of the currentscreen
*/
public void load(GuiContainer gui);
/**
* Do not return an item that is handled somewhere else
* @param gui An instance of the currentscreen
@@ -34,12 +33,12 @@ public interface IContainerObjectHandler
* @return The itemstack from one of your objects that the mouse is hovering over
*/
public ItemStack getStackUnderMouse(GuiContainer gui, int mousex, int mousey);
/**
* @param gui An instance of the currentscreen
* @param mousex The x position of the mouse in pixels from left
* @param mousey The y position of the mouse in pixels from top
* @return true if there is an object of yours obscuring the slot that the mouse would otherwise be hovering over.
* @return true if there is an object of yours obscuring the slot that the mouse would otherwise be hovering over.
*/
public boolean objectUnderMouse(GuiContainer gui, int mousex, int mousey);