update class names to official mappings
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user