Skip to content

API ‐ CreativeContentManager

laz edited this page Jul 6, 2026 · 5 revisions

CreativeContentManager

AddGroup(CreativeItemGroup)

Add new CreativeItemGroup entry with items. This is main function used to add item to creative inventory. Example how to create item group with planks types.

var group = new CreativeItemGroup(CreativeCategoryType.Construction, "itemGroup.name.planks", new OakPlanks());
group.AddItem(new OakPlanks());
group.AddItem(new SprucePlanks());
CreativeContentManager.AddGroup(creativeItemGroup);

CreativeItemGroup can also be initialized with new CreativeItemGroup() or new CreativeItemGroup(CreativeCategoryType) that will make item group that doesn't combine in inventory.

RemoveGroup(string)

Remove CreativeItemGroup that will remove specific group with items from creative inventory.

CreativeContentManager.RemoveGroup("itemGroup.name.planks");

GetGroup(string)

Get CreativeItemGroup object from group name. Useful for modifying group or adding and removing items.

CreativeItemGroup group = CreativeContentManager.GetGroup("itemGroup.name.planks");

CreativeItemGroup

AddItem(Item)

Add item into CreativeItemGroup group.

var creativeItemGroup = new CreativeItemGroup(CreativeCategoryType.Construction, "itemGroup.name.planks", new OakPlanks());
group.AddItem(new OakPlanks());
CreativeContentManager.AddGroup(creativeItemGroup);

GetItemByName(string)

Get Item object from item name.

var group = CreativeContentManager.GetGroup("itemGroup.name.planks");
Item item = group.GetItemByName("minecraft:oak_planks");

RemoveItem(string)

Remove item from CreativeItemGroup.

var group = CreativeContentManager.GetGroup("itemGroup.name.planks");
group.RemoveItem("minecraft:oak_planks");

Clone this wiki locally