-
Notifications
You must be signed in to change notification settings - Fork 206
ME hatch refactor and MUI port #2824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Zorbatron
wants to merge
147
commits into
master
Choose a base branch
from
zb/me-hatch-mui2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 94 commits
Commits
Show all changes
147 commits
Select commit
Hold shift + click to select a range
4e2b59e
start on input bus
Zorbatron 7ace9e0
Merge branch 'master' into zb/me-hatch-mui2
Zorbatron b911ee4
Item Input: extra slot, circuit, arrow
Zorbatron 4ea4d7a
Item Input: extra slot, circuit, arrow
Zorbatron 035b97b
Finalize AEHostablePart split
Zorbatron 86431e7
Fix TOP/WAILA providers
Zorbatron 673a818
Wrong super call from ctrl c+v :icant:
Zorbatron 292edfe
Add if the part can connect from all sides to TOP/WAILA
Zorbatron 29b3661
Start on config and display widget
Zorbatron 89d276a
Sprinkle in some nullables
Zorbatron 0d62422
Item slot jei dragging (ish, just logging for now :troll:)
Zorbatron bc1ccf1
Use the probably more proper tooltip making method
Zorbatron 1118599
Merge branch 'master' into zb/me-hatch-mui2
Zorbatron 2a9d4ba
This doesn't need to be dynamic
Zorbatron 1027d09
JEI dropping works (no item rendering yet)
Zorbatron 05e49ec
Chat we're rending items now :caught:
Zorbatron b38b8a6
Item tooltips (not dynamic oops)
Zorbatron 2c3b55f
Extract the sync handler out pt1
Zorbatron 501314b
Sync work pt2
Zorbatron 009447e
Sync work pt3 and tooltips that actually work
Zorbatron ba1c854
Remove redundant code, remove MUI0 code from ME Input Buses, and impl…
Zorbatron 14f6f12
Merge branch 'master' into zb/me-hatch-mui2
Zorbatron 58b0362
Scrolling (almost why no sync ug)
Zorbatron c2da636
Fix the cache not being set to a copy which caused scrolling to get a…
Zorbatron 9e70ef5
Set MTE dirty when setting the config to prevent it from being lost i…
Zorbatron ff3e645
Stocking auto pull
Zorbatron 727566d
Fluid display slot
Zorbatron 30de112
Fluid config slot
Zorbatron 6cedd49
More fluid stuff, a couple fixes. Um it almost works but the renderin…
Zorbatron dae9d07
wowie spotless
Zorbatron 9814db3
Fix wrong child ordering in fluid hatch
Zorbatron 4b47b31
Slot hover overlay
Zorbatron 07c000a
Fix stocking auto pull button size
Zorbatron 00f65fe
Proper spacing on the center widgets
Zorbatron 09c8491
Merge branch 'master' into zb/me-hatch-mui2
Zorbatron 1a19ecb
Erm tons of sync handler changes
Zorbatron 4e621c6
Code dedup pt2
Zorbatron 4a02368
Sync work pt4 (use one sync handler for all 16 config slots instead o…
Zorbatron d5f2839
Move overlay stuff into drawOverlay
Zorbatron b1e6851
Amount select popup
Zorbatron dc84c37
better drawing widget
Zorbatron 0aef783
Better amount entering
Zorbatron 301f9e0
more popup changes
Zorbatron 87ce226
popup changes pt2 - better drawer again
Zorbatron d6462c9
popup changes pt3 - proper draw-er
Zorbatron eb83040
Various tooltip changes, and give the popup slot tooltips
Zorbatron 2b39f26
Logo was the wrong size in the hatches
Zorbatron b0938a9
Don't allot amount popup to be opened if stocking
Zorbatron 6583559
Use better ID name
Zorbatron ec253b7
Move cache and byte buf adapter initialization into AESyncHandler cli…
Zorbatron 0a237f0
Remove unused onClient field
Zorbatron 04a00bf
Set IDs manually
Zorbatron 75e107e
Port only allowing a stack if no other slot in the bus/hatch if no ot…
Zorbatron a911fab
Remove redundant constructor for me input bus and hatch
Zorbatron 1872e45
Setting popup start
Zorbatron d02ae2a
Simpler amount panel syncing
Zorbatron 091a3b8
Actually good settings popup
Zorbatron fcf4218
Use the proper method for creating popup panels (that share the sync …
Zorbatron 071b3fa
YAY NO MORE DESYNCING!! WOOHOO HEEHEEHAA!!!
Zorbatron d820421
Remove useless override
Zorbatron 4c5bc26
Merge remote-tracking branch 'origin/zb/me-hatch-mui2' into zb/me-hat…
Zorbatron 90d7865
Remove tooltip since it didn't even work somehow
Zorbatron 7e73d0f
spotbees
Zorbatron 02ae4b2
Merge branch 'master' into zb/me-hatch-mui2
Zorbatron 173134e
Fix margin being off by 1px
Zorbatron 4060f82
Start on JEI recipe transfer refactor
Zorbatron 94f8edc
mixin stuff
Zorbatron 79b9ae3
Progress I think
Zorbatron c82070c
more mixin stuff
Zorbatron bf840f0
Hoo-rah it works
Zorbatron 181d916
Make only crafting recipes have the + button in the crafting station
Zorbatron b37ee24
Probably works
Zorbatron c4c55a3
Separate the MUI2 accessor methods out into a utility class
Zorbatron ecedea2
Spotless
Zorbatron e376f17
Fix critical math error in collapseItemList
Zorbatron b36f631
Clear unused slots
Zorbatron a490d62
Do recipe transfer stuff for fluids
Zorbatron 5862646
Check that the stack isn't empty before adding it to the inputs list
Zorbatron 6c9534e
Fix grammatical error in javadoc
Zorbatron a7242a0
Remove unused data codes since I used MUI2 SyncHandlers for them instead
Zorbatron 08787b7
Rename IAEStackByteBufAdapter to AEStackByteBufAdapter since it's a c…
Zorbatron 2978b24
Use `GTUtility.safeCastLongToInt` in `AESyncHandler#getConfigAmount(i…
Zorbatron 8707fa5
Use the bus/hatch item as the settings popup icon
Zorbatron 7cbf921
Pull the preview widget implementations into their own class
Zorbatron 8c50044
Delete the old MUI0 AE2 widgets
Zorbatron 765f255
Improve JEIUtil and collapse methods. Separate ghost circuit items out.
Zorbatron ad31cc7
Slightly more efficient config setting from recipe transfer
Zorbatron 1d9f1b5
Remove duplicate call and redundant method
Zorbatron 55b574c
use hasconfig
Zorbatron 1b7140f
Reduce copying and use override convenience method
Zorbatron 267b9d0
Spotless
Zorbatron 63106cc
Move the tier of the stocking parts into the constructor too
Zorbatron 331e14b
Fix usage of I18n on servers
Zorbatron 2feeffe
Fix regression in 55b574c4 which broke scrolling
Zorbatron 97e7904
Use childIf
Zorbatron ce3aae6
Use RecipeTransferErrorInternal#INSTANCE for hiding the + button
Zorbatron 3bdd129
Delete EmptyWidget
Zorbatron de60ad0
Doubling and dividing, no texture or lang
Zorbatron 9d1033e
Minor SH changes
Zorbatron 2308b1e
Work on better multiplier controls
Zorbatron ec62614
Fix that opening JEI would brick popup panels
Zorbatron ed2f617
Use / instead of ÷ because it wasn't centered in the button
Zorbatron b730d76
Add overlay to multiplier button (looks kinda ugly tbh)
Zorbatron 3e6f5ed
spotless
Zorbatron 3b0d467
Merge branch 'master' into zb/me-hatch-mui2
Zorbatron 2f0e868
Post merge shenanigans
Zorbatron 2b022ad
Do todo after mui2 multis merged
Zorbatron 5b8e431
Merge branch 'master' into zb/me-hatch-mui2
Zorbatron 2ac3140
spotless
Zorbatron 0f3a919
Port ME output parts pt1
Zorbatron d9f8842
Merge branch 'master' into zb/me-hatch-mui2
Zorbatron 7f0747c
Add .run to gitignore
Zorbatron d944751
Post merge spotless
Zorbatron f852cff
Post merge fixes
Zorbatron 54c9b80
Just write amount next to item
Zorbatron 77ed01b
change comment wording
Zorbatron 61ff047
Fix text lines getting cut off
Zorbatron 59e3eec
exposed outside its defined visibility scope!!!
Zorbatron 681adcd
Fix the extra slot item in input buses not dropping
Zorbatron debdba8
Fix the width of the online text widget being too thin if the gui was…
Zorbatron c4564be
Use L instead of x for the amount in ME output hatches
Zorbatron d8d2a82
Revert nullability change to IntCircuitIngredient
Zorbatron 64bca50
Address TODO in GTUtility
Zorbatron 654e3f4
Check NBT in `WrappedItemStack#equals`
Zorbatron 4002e42
Fix the amount text and always show the scroll tooltip
Zorbatron e4666ef
Add line separator between fluid/item description and scroll control …
Zorbatron 274c4b9
Add mod name to item tooltips
Zorbatron 0656f02
Add the mod name to all MUI2 item slots and our fluid slots
Zorbatron cb63af8
Input parts code dedup pt1
Zorbatron 9b3e7fc
Fix handler init stuff
Zorbatron 2d2c600
Circuit slot in input hatches
Zorbatron ecaeafc
Actually add the circuit handler to the multiblock abilities list
Zorbatron e02acdd
Fix notifiables
Zorbatron 0a4bf36
addline and lang
Zorbatron 1ce17aa
Fix stocking hatches duping like crazy (Agh I want to redo how ARL se…
Zorbatron e929025
visibility change of getAEHandler
Zorbatron a62f2f2
Add fluid name (fogor) to tooltip on amount popup and mod name
Zorbatron 5f213f9
Support `long`s in input parts (only in buffering)
Zorbatron 97e6990
create RecipeSyncHandler to simplify recipe transfer in GregTechGuiSc…
ghzdude 4f43375
remove mixins that are now unused
ghzdude c766a6d
Merge branch 'master' into zb/me-hatch-mui2
Zorbatron 013a3b5
Just get it compiling again
Zorbatron 326824a
Merge branch 'master' into zb/me-hatch-mui2
Zorbatron 8317f81
Delete wrapped stacks from output hatches
Zorbatron e7a962c
remove IsGuiActuallyClosing
Zorbatron 6418f71
Explode wrapped item/fluid stacks
Zorbatron d86f5e1
fix a few things
Zorbatron File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
8 changes: 8 additions & 0 deletions
8
src/main/java/gregtech/api/metatileentity/IAEStatusProvider.java
This file contains hidden or 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,8 @@ | ||
| package gregtech.api.metatileentity; | ||
|
|
||
| public interface IAEStatusProvider { | ||
|
|
||
| boolean isOnline(); | ||
|
|
||
| boolean allowsExtraConnections(); | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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
69 changes: 0 additions & 69 deletions
69
src/main/java/gregtech/api/mui/GregTechGuiTransferHandler.java
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,46 @@ | ||
| package gregtech.api.mui; | ||
|
|
||
| import net.minecraft.client.Minecraft; | ||
| import net.minecraftforge.fml.relauncher.Side; | ||
| import net.minecraftforge.fml.relauncher.SideOnly; | ||
|
|
||
| import mezz.jei.api.gui.IRecipeLayout; | ||
| import mezz.jei.api.recipe.transfer.IRecipeTransferError; | ||
| import org.jetbrains.annotations.NotNull; | ||
|
|
||
| /** | ||
| * For receiving a JEI recipe transfer (the + button in a recipe). <br> | ||
| * Implement this on a {@link com.cleanroommc.modularui.value.sync.SyncHandler} and ensure it's registered to the | ||
| * {@link com.cleanroommc.modularui.value.sync.PanelSyncManager}. <br> | ||
| * If there are multiple sync handlers implementing this, the handler that will be used to receive the recipe is | ||
| * indeterminate. | ||
| */ | ||
| public interface IJEIRecipeReceiver { | ||
|
|
||
| /** | ||
| * Return this the recipe is invalid for the receiver to hide the + button. | ||
| */ | ||
| IRecipeTransferError DEFAULT_JEI_ERROR = new IRecipeTransferError() { | ||
|
|
||
| @Override | ||
| public @NotNull Type getType() { | ||
| return Type.INTERNAL; | ||
| } | ||
|
|
||
| @Override | ||
| public void showError(@NotNull Minecraft minecraft, int mouseX, int mouseY, | ||
| @NotNull IRecipeLayout recipeLayout, int recipeX, int recipeY) { | ||
| // nothing to show, just hide the + button | ||
| } | ||
| }; | ||
Zorbatron marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| /** | ||
| * @param recipeLayout the recipe layout that contains the recipe category, and the item and fluid stacks | ||
| * @param maxTransfer if the receiver should try to move as many ingredients as possible to the crafting slots, ie | ||
| * a crafting table | ||
| * @param simulate if this recipe should only be simulated being transferred | ||
| * @return a {@link IRecipeTransferError} if something isn't right, or null if it's okay to transfer this recipe | ||
| */ | ||
| @SideOnly(Side.CLIENT) | ||
| IRecipeTransferError receiveRecipe(@NotNull IRecipeLayout recipeLayout, boolean maxTransfer, boolean simulate); | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.