Skip to content

Add APIs for Stocking Input Bus/Hatch - #222

Merged
Dream-Master merged 5 commits into
GTNewHorizons:masterfrom
hxync:master
Sep 21, 2026
Merged

Dream-Master merged 5 commits into
GTNewHorizons:masterfrom
hxync:master

Conversation

@hxync

@hxync hxync commented Sep 20, 2026

Copy link
Copy Markdown

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

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 DreamYao520 added Enhancement Improve an existing mechanic. Please explain the change with a before/after comparison. New Feature Add something new. Please explain in detail how it works. labels Sep 21, 2026
Stricter argument validation.

getAutoStock / setAutoStock were renamed to getAutoPull / setAutoPull.

getMinAutoPullStackSize / setMinAutoPullStackSize were renamed to getMinAmount / setMinAmount.
@hxync

hxync commented Sep 21, 2026

Copy link
Copy Markdown
Author

Argument validation were stricter.

getAutoStock / setAutoStock were renamed to getAutoPull / setAutoPull.
getMinAutoPullStackSize / setMinAutoPullStackSize were renamed to getMinAmount / setMinAmount.

@hxync
hxync requested a review from DreamYao520 September 21, 2026 05:08
@Dream-Master
Dream-Master merged commit a3ac185 into GTNewHorizons:master Sep 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Improve an existing mechanic. Please explain the change with a before/after comparison. New Feature Add something new. Please explain in detail how it works.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants