Brewing
constBrewing:object
Defined in: client/api.d.ts:1371
Local cauldron inspection and drive. Server-owned brew state arrives through replication, not here.
Type Declaration
Section titled “Type Declaration”allowSpawn()
Section titled “allowSpawn()”allowSpawn(
registryId):number
ESpawnAllowedResponse: 0 allowed, 1 unregistered, 2 locked, 3 dead, 4 consumed, 5 exists, 6 unknown.
Parameters
Section titled “Parameters”registryId
Section titled “registryId”string
Returns
Section titled “Returns”number
begin()
Section titled “begin()”begin(
site,potionId):BrewingSiteInfo|null
Starts a brew from a hand-built recipe — consumes no ingredients.
Parameters
Section titled “Parameters”string | number
potionId
Section titled “potionId”string
Returns
Section titled “Returns”BrewingSiteInfo | null
beginFromRecipe()
Section titled “beginFromRecipe()”beginFromRecipe(
site,potionId):BrewingSiteInfo|null
Starts a brew from the manager’s own row — consumes ingredients natively.
Parameters
Section titled “Parameters”string | number
potionId
Section titled “potionId”string
Returns
Section titled “Returns”BrewingSiteInfo | null
collect()
Section titled “collect()”collect(
site,collectorId?):BrewingSiteInfo|null
CollectPotion — credits the calling client’s own inventory.
Parameters
Section titled “Parameters”string | number
collectorId?
Section titled “collectorId?”string
Returns
Section titled “Returns”BrewingSiteInfo | null
complete()
Section titled “complete()”complete(
site):BrewingSiteInfo|null
InstantlyCompleteBrewing on the site’s state.
Parameters
Section titled “Parameters”string | number
Returns
Section titled “Returns”BrewingSiteInfo | null
conjure()
Section titled “conjure()”conjure(
registryId?,x?,y?,z?,uid?):object|null
Places a potion station locally. Server-owned benches come from the server instead.
Parameters
Section titled “Parameters”registryId?
Section titled “registryId?”string
number
number
number
number
Returns
Section titled “Returns”object | null
destroy()
Section titled “destroy()”destroy(
site,collectorId?):BrewingSiteInfo|null
DestroyPotion — clears the site back to None.
Parameters
Section titled “Parameters”string | number
collectorId?
Section titled “collectorId?”string
Returns
Section titled “Returns”BrewingSiteInfo | null
discover()
Section titled “discover()”discover(
on?):boolean
Counts every UFunction ProcessEvent sees. Dev only — a hash insert per call.
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”boolean
discovered()
Section titled “discovered()”discovered(
max?):string[]
Most-called functions seen since discover(true).
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”string[]
hasSpace()
Section titled “hasSpace()”hasSpace(
site,collectorId?):object|null
{ hasSpace, yieldLeft } for a collector, default Player0.
Parameters
Section titled “Parameters”string | number
collectorId?
Section titled “collectorId?”string
Returns
Section titled “Returns”object | null
itemCount()
Section titled “itemCount()”itemCount(
itemId,holderId?,collectorId?):number
Native inventory count; -1 if unreadable.
Parameters
Section titled “Parameters”itemId
Section titled “itemId”string
holderId?
Section titled “holderId?”string
collectorId?
Section titled “collectorId?”string
Returns
Section titled “Returns”number
multiplier()
Section titled “multiplier()”multiplier():
number
BrewTimeMultiplier; -1 if the manager is missing.
Returns
Section titled “Returns”number
nurtureTime()
Section titled “nurtureTime()”nurtureTime():
object|null
{ ticks, seconds } from the Scheduler’s nurture clock.
Returns
Section titled “Returns”object | null
recipes()
Section titled “recipes()”recipes():
object
{ available, locked } recipe rows from the brewing manager.
Returns
Section titled “Returns”object
sites()
Section titled “sites()”sites():
BrewingSiteInfo[]
Lists every loaded cauldron with its live state.
Returns
Section titled “Returns”spawn()
Section titled “spawn()”spawn(
x?,y?,z?):BrewingSiteInfo|null
Raw SpawnActor of a bare cauldron; its UID is a CRC32 of the position, not chosen.
Parameters
Section titled “Parameters”number
number
number
Returns
Section titled “Returns”BrewingSiteInfo | null
state()
Section titled “state()”state(
site):BrewingSiteInfo|null
State of one cauldron, by index or cauldronId.
Parameters
Section titled “Parameters”string | number
Returns
Section titled “Returns”BrewingSiteInfo | null
watchNative()
Section titled “watchNative()”watchNative():
boolean
Watches the stock UI’s cauldron calls through the ProcessEvent hook. Returns whether the hook is installed.
Returns
Section titled “Returns”boolean