createNew

abstract fun createNew(player: HumanEntity, inventory: T): T?

Creates a new instance of the inventory for refreshing.

Return

The new inventory instance, or null to close

Since

2.0.0

Parameters

player

The player to create the inventory for

inventory

The existing inventory instance