-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
105 additions
and
3 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
15 changes: 15 additions & 0 deletions
15
...acy_tweaks/mixin/client/tweak/legacy_ui/screen/container/RecipeBookComponentAccessor.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,15 @@ | ||
package xyz.violaflower.legacy_tweaks.mixin.client.tweak.legacy_ui.screen.container; | ||
|
||
import net.minecraft.client.gui.screens.recipebook.RecipeBookComponent; | ||
import net.minecraft.client.gui.screens.recipebook.RecipeBookPage; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
import org.spongepowered.asm.mixin.gen.Invoker; | ||
|
||
@Mixin(RecipeBookComponent.class) | ||
public interface RecipeBookComponentAccessor { | ||
@Accessor | ||
RecipeBookPage getRecipeBookPage(); | ||
@Invoker | ||
void callUpdateCollections(boolean resetPage); | ||
} |
14 changes: 14 additions & 0 deletions
14
...r/legacy_tweaks/mixin/client/tweak/legacy_ui/screen/container/RecipeBookPageAccessor.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,14 @@ | ||
package xyz.violaflower.legacy_tweaks.mixin.client.tweak.legacy_ui.screen.container; | ||
|
||
import net.minecraft.client.gui.screens.recipebook.RecipeBookPage; | ||
import net.minecraft.client.gui.screens.recipebook.RecipeCollection; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
import java.util.List; | ||
|
||
@Mixin(RecipeBookPage.class) | ||
public interface RecipeBookPageAccessor { | ||
@Accessor | ||
List<RecipeCollection> getRecipeCollections(); | ||
} |
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
Binary file added
BIN
+404 Bytes
...rces/assets/legacy_tweaks/textures/gui/container/crafting_highlight_l_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+145 Bytes
src/main/resources/assets/legacy_tweaks/textures/gui/container/warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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