update class names to official mappings

This commit is contained in:
2022-07-02 22:16:49 +02:00
parent 95916ca608
commit c5791690f6
15 changed files with 60 additions and 52 deletions
@@ -1,8 +1,8 @@
package de.skate702.craftingkeys.util;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.gui.screen.inventory.ContainerScreen;
import net.minecraft.inventory.container.Slot;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen;
import net.minecraft.world.inventory.Slot;
/**
* This class provides methods to interact with the Mouse and key input.
@@ -27,8 +27,8 @@ public class InputUtil {
* @return Returns the slot (or null)
*/
public static Slot getSlotAtMousePosition(Screen screen) {
if (screen instanceof ContainerScreen) {
return ((ContainerScreen) screen).getSlotUnderMouse();
if (screen instanceof AbstractContainerScreen) {
return ((AbstractContainerScreen) screen).getSlotUnderMouse();
} else {
Logger.debug("getSlotAtMousePosition(gui)", "guiContainer == null");
return null;