Package-level declarations

Types

Link copied to clipboard
open class Canvas(canvasItem: RegistryEntry.Paper<ItemType>, itemResolution: Int, image: BufferedImage) : Supplier<Item>

An Item supplier for the canvasItem that splits image into square parts of itemResolutionxitemResolution px.

Link copied to clipboard
class EnergyBar(height: Int, energy: Provider<Long>, maxEnergy: Provider<Long>, getEnergyPlus: () -> Long, getEnergyMinus: () -> Long, item: Provider<ItemType> = DefaultGuiItems.BAR_RED) : VerticalBar

A multi-item gui component for displaying energy levels.

Link copied to clipboard
class FluidBar(height: Int, fluidHolder: FluidHolder, fluidContainer: NetworkedFluidContainer, capacity: Provider<Long>, type: Provider<FluidType?>, amount: Provider<Long>, items: Map<FluidType?, Provider<ItemType>> = DEFAULT_FLUID_BAR_ITEMS) : VerticalBar

A multi-item gui component for displaying fluid levels.

Link copied to clipboard
class StaticFluidBar(height: Int, capacity: Long, type: FluidType, amount: Long, items: Map<FluidType?, Provider<ItemType>> = DEFAULT_FLUID_BAR_ITEMS) : VerticalBar

A multi-item gui component for displaying a constant fluid level.

Link copied to clipboard
abstract class VerticalBar(height: Int, customModelDataIndex: Int = 0) : Supplier<Item>

Properties

Link copied to clipboard
context(dsl: ItemProviderDsl)
val advancedTooltips: DslProperty<Boolean?>

Whether the item has Nova's advanced tooltip, which includes information like the item id.

Link copied to clipboard
val WindowDsl.locale: Provider<Locale>

Functions

Link copied to clipboard
infix fun DslProperty<in ItemStack>.by(itemProvider: Provider<ItemProvider>)
infix fun DslProperty<in ItemStack>.by(itemProvider: ItemProvider)
context(dsl: WindowDsl)
infix fun DslProperty<Component>.by(guiTexture: RegistryEntry.Nova<GuiTexture>)
Link copied to clipboard
fun energyBar(energyHolder: DefaultEnergyHolder, barType: Provider<ItemType> = DefaultGuiItems.TP_BAR_RED, onClick: ClickDsl.() -> Unit = {}): SlotElementSupplier
fun energyBar(energy: Provider<Long>, maxEnergy: Provider<Long>, energyPlus: Provider<Long>, energyMinus: Provider<Long>, barType: Provider<ItemType> = DefaultGuiItems.TP_BAR_RED, onClick: ClickDsl.() -> Unit = {}): SlotElementSupplier

A verticalBar for displaying an energy level. Ranges from energy to maxEnergy. Shows energyPlus and energyMinus in the lore. Uses barType as the bar item type.

Link copied to clipboard
fun fluidBar(fluidHolder: FluidHolder, container: FluidContainer, barTypes: Map<FluidType?, Provider<ItemType>> = DEFAULT_TP_FLUID_BAR_ITEMS, onClick: ClickDsl.() -> Unit = {}): SlotElementSupplier

A verticalBar for displaying a fluid level. Ranges from FluidContainer.amountProvider to FluidContainer.capacityProvider, with the bar item determined by FluidContainer.typeProvider and barTypes. Clicking the bar item with a bucket inserts or extracts fluid to and from the container.

fun fluidBar(type: Provider<FluidType?>, amount: Provider<Long>, capacity: Provider<Long>, barTypes: Map<FluidType?, Provider<ItemType>> = DEFAULT_TP_FLUID_BAR_ITEMS, onClick: ClickDsl.() -> Unit = {}): SlotElementSupplier

A verticalBar for displaying a fluid level. Ranges from amount to capacity, with the bar item determined by type and barTypes.

fun fluidBar(allowedConnectionType: NetworkConnectionType, container: NetworkedFluidContainer, type: Provider<FluidType?>, amount: Provider<Long>, capacity: Provider<Long>, barTypes: Map<FluidType?, Provider<ItemType>> = DEFAULT_TP_FLUID_BAR_ITEMS, onClick: ClickDsl.() -> Unit = {}): SlotElementSupplier

A verticalBar for displaying a fluid level. Ranges from amount to capacity, with the bar item determined by type and barTypes. Clicking the bar item with a bucket inserts or extracts fluid to and from the container.

Link copied to clipboard
inline fun itemProvider(base: Provider<ItemProvider>, itemProvider: ItemProviderDsl.() -> Unit): Provider<ItemProvider>
Link copied to clipboard
fun verticalBar(percentage: Provider<Double>, barType: Provider<ItemType>, modifyItemProvider: ItemProviderDsl.() -> Unit = {}, onClick: ClickDsl.() -> Unit = {}): SlotElementSupplier

A SlotElementSupplier for a vertical bar of barType. Slots provided to this supplier must be in a vertical line with no gaps, otherwise an IllegalArgumentException will be thrown. Each item element supplied by this is a component of the vertical bar, which sections percentage into multiple parts. Each part's sectioned percentage is applied to customModelData.floats[0] of barType.