mirror of
https://github.com/GTNewHorizons/MouseTweaks.git
synced 2026-11-25 22:34:40 +00:00
Remove the Minecraft src reference from the API interface.
This commit is contained in:
1 parent
d0d2eebbc6
commit
cb3624ca6e
3 files changed
+8
-10
No files matched your search
+1
-1
@@ -3,7 +3,7 @@
|
||||
"modid": "mod_MouseTweaks",
|
||||
"name": "Mouse Tweaks",
|
||||
"description": "Have you ever been tired of right clicking while crafting furnaces, chests or whatever? My client-side mod solves this problem! Just hold your right mouse button in one inventory slot and drag your mouse toward another. Also works with left mouse button! Credits: LiteLoader and some mods' source code, which I used as a reference to how to do certain stuff when I was unsure",
|
||||
"version": "2.3.4",
|
||||
"version": "2.3.5",
|
||||
"mcversion": "1.6.4",
|
||||
"url": "http://www.minecraftforum.net/topic/1518185-",
|
||||
"updateUrl": "",
|
||||
|
||||
@@ -94,7 +94,7 @@ public class ModCompatibility extends DeobfuscationLayer
|
||||
switch ( modGuiContainerID )
|
||||
{
|
||||
case Constants.MTMODGUICONTAINER:
|
||||
return ((IMTModGuiContainer) guiScreen).getModSlot( modContainer, slotNumber );
|
||||
return asSlot( ((IMTModGuiContainer) guiScreen).getModSlot( modContainer, slotNumber ) );
|
||||
|
||||
case Constants.FORESTRY:
|
||||
return getSlot( asContainer( modContainer ), slotNumber );
|
||||
@@ -152,7 +152,7 @@ public class ModCompatibility extends DeobfuscationLayer
|
||||
switch ( modGuiContainerID )
|
||||
{
|
||||
case Constants.MTMODGUICONTAINER:
|
||||
return ((IMTModGuiContainer) guiScreen).getModSelectedSlot( modContainer, slotCount );
|
||||
return asSlot( ((IMTModGuiContainer) guiScreen).getModSelectedSlot( modContainer, slotCount ) );
|
||||
|
||||
case Constants.FORESTRY:
|
||||
return asSlot( Reflection.forestry.invokeMethod( guiScreen, "getSlotAtPosition", getRequiredMouseX(), getRequiredMouseY() ) );
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
package yalter.mousetweaks.api;
|
||||
|
||||
import net.minecraft.src.Slot;
|
||||
|
||||
public interface IMTModGuiContainer {
|
||||
|
||||
/**
|
||||
@@ -33,7 +31,7 @@ public interface IMTModGuiContainer {
|
||||
*
|
||||
* @return True, if the given slot is a crafting output slot, false otherwise.
|
||||
*/
|
||||
public boolean isCraftingOutputSlot(Object modContainer, Slot slot);
|
||||
public boolean isCraftingOutputSlot(Object modContainer, Object slot);
|
||||
|
||||
/**
|
||||
* Returns the container of this GuiContainer. If multiple containers are used, returns the one that is used at the moment of the method execution.
|
||||
@@ -59,7 +57,7 @@ public interface IMTModGuiContainer {
|
||||
*
|
||||
* @return The slot from the given container with the given slot number.
|
||||
*/
|
||||
public Slot getModSlot(Object modContainer, int slotNumber);
|
||||
public Object getModSlot(Object modContainer, int slotNumber);
|
||||
|
||||
/**
|
||||
* Returns the currently selected slot (the one under the player's mouse cursor) of the given container, which has the given number of slots.
|
||||
@@ -69,7 +67,7 @@ public interface IMTModGuiContainer {
|
||||
*
|
||||
* @return The slot that is currently selected. Null, if none are.
|
||||
*/
|
||||
public Slot getModSelectedSlot(Object modContainer, int slotCount);
|
||||
public Object getModSelectedSlot(Object modContainer, int slotCount);
|
||||
|
||||
/**
|
||||
* The method that clicks the given slot of the given container with the given mouse button and shift key state.
|
||||
@@ -79,7 +77,7 @@ public interface IMTModGuiContainer {
|
||||
* @param mouseButton The mouse button. 0 is the left one, 1 is the right one.
|
||||
* @param shiftPressed True if the shift key is pressed, false otherwise.
|
||||
*/
|
||||
public void clickModSlot(Object modContainer, Slot slot, int mouseButton, boolean shiftPressed);
|
||||
public void clickModSlot(Object modContainer, Object slot, int mouseButton, boolean shiftPressed);
|
||||
|
||||
/**
|
||||
* The method that disables the built-in RMB drag mechanic, if required, in this GuiContainer, with the given first slot in the given container to click if shouldClick is set to true (in vanilla circumstances - your RMB dragging mechanic might work differently).
|
||||
@@ -88,6 +86,6 @@ public interface IMTModGuiContainer {
|
||||
* @param firstSlot The first slot.
|
||||
* @param shouldClick True, if the first slot is to be clicked.
|
||||
*/
|
||||
public void disableRMBDragIfRequired(Object modContainer, Slot firstSlot, boolean shouldClick);
|
||||
public void disableRMBDragIfRequired(Object modContainer, Object firstSlot, boolean shouldClick);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user