Nightbreak Java API
Toggle table of contents
JVM
Target filter
JVM
Switch theme
Search in API
Skip to content
Nightbreak Java API
FreeMinecraftModels
/
com.magmaguy.freeminecraftmodels.utils
/
ModelItemFactory
Model
Item
Factory
public
final
class
ModelItemFactory
Members
Functions
create
Custom
Item
Link copied to clipboard
public
static
ItemStack
createCustomItem
(
String
itemId
,
PropScriptConfigFields
config
)
Creates a custom item from a model config that has item fields (material, enchantments, etc.).
create
Model
Item
Link copied to clipboard
public
static
ItemStack
createModelItem
(
String
modelId
,
Material
material
)
Creates a model placement item.
enchantment
Profile
Link copied to clipboard
public
static
EnchantmentItemProfile
enchantmentProfile
(
ItemStack
item
)
format
Model
Name
Link copied to clipboard
public
static
String
formatModelName
(
String
modelId
)
Formats a model ID into a human-readable name.