All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.nukkit.item.customitem.data.ItemCreativeCategory Maven / Gradle / Ivy

There is a newer version: 1.20.40-r1
Show newest version
package cn.nukkit.item.customitem.data;

import cn.nukkit.api.PowerNukkitXOnly;
import cn.nukkit.api.Since;

/**
 * 控制自定义物品在创造栏的大分类,例如建材栏,材料栏
 * 
可选值:1 Unknown 2 nature 3 equipment 4 items * * @return 自定义物品的在创造栏的大分类 * @see bedrock wiki */ @PowerNukkitXOnly @Since("1.19.31-r1") public enum ItemCreativeCategory { CONSTRUCTOR, NATURE, EQUIPMENT, ITEMS; public static ItemCreativeCategory fromID(int num) { return switch (num) { case 1 -> CONSTRUCTOR; case 3 -> EQUIPMENT; case 4 -> ITEMS; default -> NATURE; }; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy