This class was added by a mod with mod-id cinematic_transitions. Так что если вы хотите использовать эту функцию, вам нужно установить этот мод.

Импорт класса

Link to импорт-класса

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import mods.cinematic_transitions.PlayManager;

Name: playPopUp

Return Type: void

ZenScript
Copy
PlayManager.playPopUp(registryName as string) as void
ПараметрТипОписание
Параметр
registryName
Тип
string
Описание
take the registry name of a PopUp registered using Json, plays the popup provided.

Name: playTransition

Plays transition (black bars on the top and bottom of screen) with no children (popups)

Return Type: void

ZenScript
Copy
// PlayManager.playTransition() as void

PlayManager.playTransition();

Name: playTransition

Return Type: void

ZenScript
Copy
PlayManager.playTransition(childName as string) as void
ПараметрТипОписание
Параметр
childName
Тип
string
Описание
Plays transition with child. Syncs up the child wait duration and transition length to parent's

Link to registerBiomePopUpListener

Name: registerBiomePopUpListener

Registers a listener that triggers given popup when player enters given biome

Return Type: void

ZenScript
Copy
PlayManager.registerBiomePopUpListener(biomeName as string, popUp as string, hasTransition as boolean) as void
ПараметрТипОписание
Параметр
biomeName
Тип
string
Описание
registry name of biome
Параметр
popUp
Тип
string
Описание
registry name of popup
Параметр
hasTransition
Тип
boolean
Описание
whether if transition should be played

Link to registerDimensionPopUpListener

Name: registerDimensionPopUpListener

Registers a listener that triggers given popup when player enters given dimension

Return Type: void

ZenScript
Copy
PlayManager.registerDimensionPopUpListener(dimensionName as string, popUp as string, hasTransition as boolean) as void
ПараметрТипОписание
Параметр
dimensionName
Тип
string
Описание
registry name of dimension
Параметр
popUp
Тип
string
Описание
registry name of popup
Параметр
hasTransition
Тип
boolean
Описание
whether if transition should be played

Link to registerEntityPopUpListener

Name: registerEntityPopUpListener

Registers a listener that triggers given popup when given entity spawns

Return Type: void

ZenScript
Copy
PlayManager.registerEntityPopUpListener(entityName as string, popUp as string, hasTransition as boolean) as void
ПараметрТипОписание
Параметр
entityName
Тип
string
Описание
entity type
Параметр
popUp
Тип
string
Описание
registry name of popup
Параметр
hasTransition
Тип
boolean
Описание
whether if transition should be played

Link to registerStructurePopUpListener

Name: registerStructurePopUpListener

Registers a listener that triggers given popup when player enters given structure

Return Type: void

ZenScript
Copy
PlayManager.registerStructurePopUpListener(structureName as string, popUp as string, hasTransition as boolean) as void
ПараметрТипОписание
Параметр
structureName
Тип
string
Описание
registry name of structure
Параметр
popUp
Тип
string
Описание
registry name of popup
Параметр
hasTransition
Тип
boolean
Описание
whether if transition should be played

Link to setHideInventory

Name: setHideInventory

Return Type: void

ZenScript
Copy
PlayManager.setHideInventory(hideInventory as boolean) as void
ПараметрТипОписание
Параметр
hideInventory
Тип
boolean
Описание
whether if the hotbar, health, etc should be hidden during popup/transition