CustomCrafterAPI

Properties

Link copied to clipboard
const val API_VERSION: String

Custom Crafter API version.

Link copied to clipboard

Custom Crafter API author names

Link copied to clipboard
const val IS_BETA: Boolean = true

Custom Crafter API is beta or not.

Link copied to clipboard
const val IS_STABLE: Boolean = false

Custom Crafter API is stable or not.

Functions

Link copied to clipboard

Get an item that is used for an all-candidates-menu's not displayable items slot in default.

Link copied to clipboard

Get an item that is used for an all-candidates-menu's not displayable items slot.

Link copied to clipboard
fun getBaseBlock(): Material

Gets a base block type.

Link copied to clipboard

get base block's side size.

Link copied to clipboard

Returns a current CraftUI designer.

Link copied to clipboard

returns an IMMUTABLE list what contains all registered recipes.

Link copied to clipboard

Returns a boolean value that means the Custom Crafter API give result items to players or not.

Link copied to clipboard

Returns a boolean value that means 'Custom Craft UI open' enabled or not.

Link copied to clipboard

Returns a boolean value that means 'multiple result candidate' feature enabled or not.

Link copied to clipboard

Checks full-compatibility

Link copied to clipboard
fun registerRecipe(vararg recipes: CRecipe): Boolean

registers a provided recipe and calls RegisterCustomRecipeEvent.

Link copied to clipboard
fun setAllCandidateNotDisplayableItem(item: ItemStack, loreSupplier: (String) -> List<Component>?)

Set an item that is used for an all-candidates-menu's not displayable items slot. If the specified items material is not Material#isItem, this throws Errors.

Link copied to clipboard
fun setBaseBlock(type: Material, calledAsync: Boolean = false)

Sets base block with given material.

Link copied to clipboard

Sets BaseBlock to Material.GOLD_BLOCK (default value).

Link copied to clipboard
fun setBaseBlockSideSize(size: Int, calledAsync: Boolean = false): Boolean

set base block's side size.

Link copied to clipboard

Sets base block's side size to 3 (default value).

Link copied to clipboard
fun setCraftUIDesigner(designer: CraftUIDesigner, calledAsync: Boolean = false)

Sets a new CraftUI designer if a specified is valid.

Link copied to clipboard

Sets the default CraftUI designer.

Link copied to clipboard

Sets a boolean value that means the Custom Crafter API give result items to players or not.

Link copied to clipboard

Sets ResultGiveCancel to false (default value).

Link copied to clipboard

Sets 'Custom Craft UI open' enables or not.

Link copied to clipboard

Sets 'Custom Craft UI open' enable.

Link copied to clipboard

Sets 'multiple result candidate' feature enables or not.

Sets useMultipleResultCandidateFeature to false (default value).

Link copied to clipboard

Unregisters all registered recipes.

Link copied to clipboard

unregisters a provided recipe and calls UnregisterCustomRecipeEvent.