程序包 org.bukkit.packs
接口 DataPackManager
public interface DataPackManager
Manager of data packs.
-
方法概要
修饰符和类型方法说明getDataPack(@NotNull NamespacedKey dataPackKey) Gets aDataPackby its key.Return all the availableDataPacks on the server.getDisabledDataPacks(@NotNull World world) Return all the disabledDataPackin the World.getEnabledDataPacks(@NotNull World world) Return all the enabledDataPackin the World.booleanisEnabledByFeature(@NotNull BlockType blockType, @NotNull World world) Gets if the BlockType is enabled for use by the features in World.booleanisEnabledByFeature(@NotNull EntityType entityType, @NotNull World world) Gets if the EntityType is enabled for use by the Features in World.booleanisEnabledByFeature(@NotNull ItemType itemType, @NotNull World world) Gets if the ItemType is enabled for use by the features in World.booleanisEnabledByFeature(@NotNull Material material, @NotNull World world) Gets if the Material is enabled for use by the features in World.
-
方法详细资料
-
getDataPacks
Return all the availableDataPacks on the server.- 返回:
- a Collection of
DataPack
-
getDataPack
Gets aDataPackby its key. -
getEnabledDataPacks
Return all the enabledDataPackin the World.- 参数:
world- the world to search- 返回:
- a Collection of
DataPack
-
getDisabledDataPacks
Return all the disabledDataPackin the World.- 参数:
world- the world to search- 返回:
- a Collection of
DataPack
-
isEnabledByFeature
Gets if the Material is enabled for use by the features in World.- 参数:
material- Material to check (needs to be anMaterial.isItem()orMaterial.isBlock())world- World to check- 返回:
Trueif the Item/Block related to the material is enabled
-
isEnabledByFeature
@Internal boolean isEnabledByFeature(@NotNull @NotNull ItemType itemType, @NotNull @NotNull World world) Gets if the ItemType is enabled for use by the features in World.- 参数:
itemType- ItemType to checkworld- World to check- 返回:
Trueif the ItemType is enabled
-
isEnabledByFeature
@Internal boolean isEnabledByFeature(@NotNull @NotNull BlockType blockType, @NotNull @NotNull World world) Gets if the BlockType is enabled for use by the features in World.- 参数:
blockType- BlockType to checkworld- World to check- 返回:
Trueif the BlockType is enabled
-
isEnabledByFeature
Gets if the EntityType is enabled for use by the Features in World.- 参数:
entityType- EntityType to checkworld- World to check- 返回:
Trueif the type of entity is enabled
-