Repository navigation
Add APIs for Stocking Input Bus/Hatch - #222
Merged
Merged
Conversation
Added the following methods to Stocking Input Bus (ME), Advanced Stocking Input Bus (ME), Stocking Input Hatch (ME), and Advanced Stocking Input Hatch (ME). getSlotSize():number -- Returns the number of slots this input bus/hatch can be configured for. getConfiguration(slot:number):table -- Returns the item configured for the specified slot. setConfiguration(slot:number[, detail:table]):boolean -- Configures the ME input bus/hatch. isAdvanced():boolean -- Returns whether this is the advanced variant of the input bus/hatch. getAutoStock():boolean -- Returns whether this input bus/hatch enables the auto-pull feature. setAutoStock(enabled:boolean):boolean -- Sets whether this input bus/hatch enables the auto-pull feature. getMinAutoPullStackSize():number -- Returns the minimum amount of this input bus/hatch. setMinAutoPullStackSize(min:number):boolean -- Sets the minimum amount of this input bus/hatch. getRefreshTime():number -- Returns the slot refresh time of this input bus/hatch. setRefreshTime(ticks:number):boolean -- Sets the slot refresh time of this input bus/hatch. getAdditionalConnection():boolean -- Returns whether ME channels can connect to any side. setAdditionalConnection(enabled:boolean):boolean -- Sets whether ME channels can connect to any side.
Added the following methods to Stocking Input Bus (ME), Advanced Stocking Input Bus (ME), Stocking Input Hatch (ME), and Advanced Stocking Input Hatch (ME). getSlotSize():number -- Returns the number of slots this input bus/hatch can be configured for. getConfiguration(slot:number):table -- Returns the item configured for the specified slot. setConfiguration(slot:number[, detail:table]):boolean -- Configures the ME input bus/hatch. isAdvanced():boolean -- Returns whether this is the advanced variant of the input bus/hatch. getAutoStock():boolean -- Returns whether this input bus/hatch enables the auto-pull feature. setAutoStock(enabled:boolean):boolean -- Sets whether this input bus/hatch enables the auto-pull feature. getMinAutoPullStackSize():number -- Returns the minimum amount of this input bus/hatch. setMinAutoPullStackSize(min:number):boolean -- Sets the minimum amount of this input bus/hatch. getRefreshTime():number -- Returns the slot refresh time of this input bus/hatch. setRefreshTime(ticks:number):boolean -- Sets the slot refresh time of this input bus/hatch. getAdditionalConnection():boolean -- Returns whether ME channels can connect to any side. setAdditionalConnection(enabled:boolean):boolean -- Sets whether ME channels can connect to any side.
DreamYao520
requested changes
Sep 21, 2026
DreamYao520
requested changes
Sep 21, 2026
Stricter argument validation. getAutoStock / setAutoStock were renamed to getAutoPull / setAutoPull. getMinAutoPullStackSize / setMinAutoPullStackSize were renamed to getMinAmount / setMinAmount.
Author
|
Argument validation were stricter. getAutoStock / setAutoStock were renamed to getAutoPull / setAutoPull. |
DreamYao520
approved these changes
Sep 21, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Added the following methods to Stocking Input Bus (ME), Advanced Stocking Input Bus (ME), Stocking Input Hatch (ME), and Advanced Stocking Input Hatch (ME).
getSlotSize():number -- Returns the number of slots this input bus/hatch can be configured for.
getConfiguration(slot:number):table -- Returns the item configured for the specified slot.
setConfiguration(slot:number[, detail:table]):boolean -- Configures the ME input bus/hatch.
isAdvanced():boolean -- Returns whether this is the advanced variant of the input bus/hatch.
getAutoStock():boolean -- Returns whether this input bus/hatch enables the auto-pull feature.
setAutoStock(enabled:boolean):boolean -- Sets whether this input bus/hatch enables the auto-pull feature.
getMinAutoPullStackSize():number -- Returns the minimum amount of this input bus/hatch.
setMinAutoPullStackSize(min:number):boolean -- Sets the minimum amount of this input bus/hatch.
getRefreshTime():number -- Returns the slot refresh time of this input bus/hatch.
setRefreshTime(ticks:number):boolean -- Sets the slot refresh time of this input bus/hatch.
getAdditionalConnection():boolean -- Returns whether ME channels can connect to any side.
setAdditionalConnection(enabled:boolean):boolean -- Sets whether ME channels can connect to any side.
Checklist