Commits

Parker Hawke authored and md_5 committed e25c6a75523
#638: Add CreativeCategory API for Materials
No tags

src/main/java/org/bukkit/inventory/CreativeCategory.java

Added
1 +package org.bukkit.inventory;
2 +
3 +/**
4 + * Represents a category in the creative inventory.
5 + */
6 +public enum CreativeCategory {
7 +
8 + /**
9 + * An assortment of building blocks including dirt, bricks, planks, ores
10 + * slabs, etc.
11 + */
12 + BUILDING_BLOCKS,
13 + /**
14 + * Blocks and items typically used for decorative purposes including
15 + * candles, saplings, flora, fauna, fences, walls, carpets, etc.
16 + */
17 + DECORATIONS,
18 + /**
19 + * Blocks used and associated with redstone contraptions including buttons,
20 + * levers, pressure plates, redstone components, pistons, etc.
21 + */
22 + REDSTONE,
23 + /**
24 + * Items pertaining to transportation including minecarts, rails, boats,
25 + * elytra, etc.
26 + */
27 + TRANSPORTATION,
28 + /**
29 + * Miscellaneous items and blocks that do not fit into other categories
30 + * including gems, dyes, spawn eggs, discs, banner patterns, etc.
31 + */
32 + MISC,
33 + /**
34 + * Food items consumable by the player including meats, berries, edible
35 + * drops from creatures, etc.
36 + */
37 + FOOD,
38 + /**
39 + * Equipment items meant for general utility including pickaxes, axes, hoes,
40 + * flint and steel, and useful enchantment books for said tools.
41 + */
42 + TOOLS,
43 + /**
44 + * Equipment items meant for combat including armor, swords, bows, tipped
45 + * arrows, and useful enchantment books for said equipment.
46 + */
47 + COMBAT,
48 + /**
49 + * All items related to brewing and potions including all types of potions,
50 + * their variants, and ingredients to brew them.
51 + */
52 + BREWING;
53 +}

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut