Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will add lines to TConstruct_at, so doing gradlew clean may be necessary.
- Loading branch information
Showing
4 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/main/java/tconstruct/smeltery/gui/ActiveContainerGui.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package tconstruct.smeltery.gui; | ||
|
||
import net.minecraft.client.gui.inventory.GuiContainer; | ||
import net.minecraft.inventory.Slot; | ||
import tconstruct.smeltery.inventory.ActiveContainer; | ||
import tconstruct.smeltery.inventory.ActiveSlot; | ||
|
||
public abstract class ActiveContainerGui extends GuiContainer | ||
{ | ||
|
||
public ActiveContainerGui(ActiveContainer p_i1072_1_) | ||
{ | ||
super(p_i1072_1_); | ||
} | ||
|
||
@Override | ||
public void func_146977_a (Slot slot) | ||
{ | ||
if (!(slot instanceof ActiveSlot) || ((ActiveSlot) slot).getActive()) | ||
{ | ||
super.func_146977_a(slot); | ||
} | ||
} | ||
|
||
@Override | ||
public boolean isMouseOverSlot (Slot slot, int mouseX, int mouseY) | ||
{ | ||
if (!(slot instanceof ActiveSlot) || ((ActiveSlot) slot).getActive()) | ||
{ | ||
return super.isMouseOverSlot(slot, mouseX, mouseY); | ||
} | ||
return false; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters