程序包 org.bukkit.packs
接口 DataPackManager
public interface DataPackManager
Manager of data packs.
-
方法概要
修饰符和类型方法说明getDataPack
(@NotNull NamespacedKey dataPackKey) Gets aDataPack
by its key.Return all the availableDataPack
s on the server.getDisabledDataPacks
(@NotNull World world) Return all the disabledDataPack
in the World.getEnabledDataPacks
(@NotNull World world) Return all the enabledDataPack
in the World.boolean
isEnabledByFeature
(@NotNull BlockType blockType, @NotNull World world) Gets if the BlockType is enabled for use by the features in World.boolean
isEnabledByFeature
(@NotNull EntityType entityType, @NotNull World world) Gets if the EntityType is enabled for use by the Features in World.boolean
isEnabledByFeature
(@NotNull ItemType itemType, @NotNull World world) Gets if the ItemType is enabled for use by the features in World.boolean
isEnabledByFeature
(@NotNull Material material, @NotNull World world) Gets if the Material is enabled for use by the features in World.
-
方法详细资料
-
getDataPacks
Return all the availableDataPack
s on the server.- 返回:
- a Collection of
DataPack
-
getDataPack
Gets aDataPack
by its key. -
getEnabledDataPacks
Return all the enabledDataPack
in the World.- 参数:
world
- the world to search- 返回:
- a Collection of
DataPack
-
getDisabledDataPacks
Return all the disabledDataPack
in 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- 返回:
True
if 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- 返回:
True
if 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- 返回:
True
if 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- 返回:
True
if the type of entity is enabled
-