generated from CleanroomMC/TemplateDevEnv
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
31 additions
and
19 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
10 changes: 10 additions & 0 deletions
10
src/main/java/com/cleanroommc/bogosorter/common/sort/IGuiButtonAccessor.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,10 @@ | ||
package com.cleanroommc.bogosorter.common.sort; | ||
|
||
import net.minecraft.client.gui.GuiButton; | ||
|
||
import java.util.List; | ||
|
||
public interface IGuiButtonAccessor { | ||
|
||
List<GuiButton> getButtons(); | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/cleanroommc/bogosorter/core/mixin/GuiContainerMixin.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,18 @@ | ||
package com.cleanroommc.bogosorter.core.mixin; | ||
|
||
import com.cleanroommc.bogosorter.common.sort.IGuiButtonAccessor; | ||
import net.minecraft.client.gui.GuiButton; | ||
import net.minecraft.client.gui.GuiScreen; | ||
import net.minecraft.client.gui.inventory.GuiContainer; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
|
||
import java.util.List; | ||
|
||
@Mixin(GuiContainer.class) | ||
public class GuiContainerMixin extends GuiScreen implements IGuiButtonAccessor { | ||
|
||
@Override | ||
public List<GuiButton> getButtons() { | ||
return buttonList; | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
src/main/java/com/cleanroommc/bogosorter/core/mixin/GuiScreenAccessor.java
This file was deleted.
Oops, something went wrong.
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