-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove redundant menu subclasses and fix inconsistent layout for MEGA…
… Interface and Pattern Provider
- Loading branch information
Showing
8 changed files
with
49 additions
and
45 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
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
14 changes: 0 additions & 14 deletions
14
src/main/java/gripe/_90/megacells/menu/MEGAInterfaceMenu.java
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/main/java/gripe/_90/megacells/menu/MEGAPatternProviderMenu.java
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
src/main/java/gripe/_90/megacells/mixin/PatternProviderMenuAccessor.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,20 @@ | ||
package gripe._90.megacells.mixin; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Invoker; | ||
|
||
import net.minecraft.world.entity.player.Inventory; | ||
import net.minecraft.world.inventory.MenuType; | ||
|
||
import appeng.helpers.patternprovider.PatternProviderLogicHost; | ||
import appeng.menu.implementations.PatternProviderMenu; | ||
|
||
// TODO: Remove that pointless extra constructor from upstream AE2 so that this can also go | ||
@Mixin(PatternProviderMenu.class) | ||
public interface PatternProviderMenuAccessor { | ||
@Invoker(value = "<init>") | ||
static PatternProviderMenu create( | ||
MenuType<? extends PatternProviderMenu> menuType, int id, Inventory ip, PatternProviderLogicHost host) { | ||
throw new AssertionError(); | ||
} | ||
} |
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
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