MixinRecipeBookGui.java 616 B

12345678910111213141516171819202122
  1. package me.shedaniel.rei.mixin;
  2. import me.shedaniel.rei.listeners.IMixinRecipeBookGui;
  3. import net.minecraft.client.gui.recipebook.RecipeBookGui;
  4. import net.minecraft.client.gui.widget.RecipeBookGhostSlots;
  5. import org.spongepowered.asm.mixin.Final;
  6. import org.spongepowered.asm.mixin.Mixin;
  7. import org.spongepowered.asm.mixin.Shadow;
  8. @Mixin(RecipeBookGui.class)
  9. public class MixinRecipeBookGui implements IMixinRecipeBookGui {
  10. @Shadow
  11. @Final
  12. protected RecipeBookGhostSlots ghostSlots;
  13. @Override
  14. public RecipeBookGhostSlots rei_getGhostSlots() {
  15. return ghostSlots;
  16. }
  17. }