cachedWindow
context(tileEntity: TileEntity)
fun cachedWindow(texture: RegistryEntry.Nova<GuiTexture>? = null, bounds: AABBdc = tileEntity.block.toAABBd(), expireAfterClose: Duration = 1.minutes, window: NormalSplitWindowDsl.() -> Unit): TileEntityMenu
fun cachedWindow(texture: RegistryEntry.Nova<GuiTexture>? = null, bounds: AABBdc = tileEntity.block.toAABBd(), expireAfterClose: Duration = 1.minutes, window: NormalSplitWindowDsl.() -> Unit): TileEntityMenu
Shortcut for creating a TileEntityMenu using the standard WindowDsl with an optional texture that automatically sets the title text to the tile entity's block name and is cached with expireAfterClose. Any window opened under the menu will be automatically closed once the viewer is out of the interaction range with bounds.
See also
context(tileEntity: TileEntity)
fun <T : WindowDsl> cachedWindow(windowDsl: (Player, T.() -> Unit) -> Window, texture: RegistryEntry.Nova<GuiTexture>? = null, bounds: AABBdc = tileEntity.block.toAABBd(), expireAfterClose: Duration = 1.minutes, window: T.() -> Unit): TileEntityMenu
fun <T : WindowDsl> cachedWindow(windowDsl: (Player, T.() -> Unit) -> Window, texture: RegistryEntry.Nova<GuiTexture>? = null, bounds: AABBdc = tileEntity.block.toAABBd(), expireAfterClose: Duration = 1.minutes, window: T.() -> Unit): TileEntityMenu
Shortcut for creating a TileEntityMenu using WindowDsl of a custom type with an optional texture that automatically sets the title text to the tile entity's block name and is cached with expireAfterClose. Any window opened under the menu will be automatically closed once the viewer is out of the interaction range with bounds.