类 MMOItemsContentProvider
java.lang.Object
io.github.lijinhong11.mittellib.hook.content.MMOItemsContentProvider
- 所有已实现的接口:
ContentProvider
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voiddestroyBlock(Location loc) Destroy a block@Nullable PackedBlockGet a block by its id@Nullable PackedBlockGet the packed block by its locationGet all block suggestions for tab complete@NotNull StringgetId()Get the content provider's id@Nullable StringgetIdFromItem(@NotNull ItemStack item) Get item's id@Nullable ItemStackGet an item by its idGet all item suggestions (including blocks) for tab complete从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 io.github.lijinhong11.mittellib.iface.ContentProvider
getAllBlocks
-
构造器详细资料
-
MMOItemsContentProvider
public MMOItemsContentProvider()
-
-
方法详细资料
-
getId
从接口复制的说明:ContentProviderGet the content provider's id- 指定者:
getId在接口中ContentProvider
-
getItem
从接口复制的说明:ContentProviderGet an item by its id- 指定者:
getItem在接口中ContentProvider- 参数:
id- the item's id- 返回:
- the item, null if not found
-
getIdFromItem
从接口复制的说明:ContentProviderGet item's id- 指定者:
getIdFromItem在接口中ContentProvider- 参数:
item- the item- 返回:
- the item's id in content provider, null if not found
-
getBlock
从接口复制的说明:ContentProviderGet a block by its id- 指定者:
getBlock在接口中ContentProvider- 参数:
id- the block's id- 返回:
- the block, null if not found
-
destroyBlock
从接口复制的说明:ContentProviderDestroy a block- 指定者:
destroyBlock在接口中ContentProvider- 参数:
loc- the location of the block
-
getItemSuggestions
从接口复制的说明:ContentProviderGet all item suggestions (including blocks) for tab complete- 指定者:
getItemSuggestions在接口中ContentProvider- 返回:
- a list of item suggestion
-
getBlockSuggestions
从接口复制的说明:ContentProviderGet all block suggestions for tab complete- 指定者:
getBlockSuggestions在接口中ContentProvider- 返回:
- a list of block suggestion
-
getBlockByLocation
从接口复制的说明:ContentProviderGet the packed block by its location- 指定者:
getBlockByLocation在接口中ContentProvider- 返回:
- a packed block
-