Package org.bukkit.packs
Interface DataPackManager
Deprecated, for removal: This API element is subject to removal in a future version.
Manager of data packs.
-
Method Summary
Modifier and TypeMethodDescriptiongetDataPack
(@NotNull NamespacedKey dataPackKey) Deprecated, for removal: This API element is subject to removal in a future version.Gets aDataPack
by its key.Deprecated, for removal: This API element is subject to removal in a future version.Return all the availableDataPack
s on the server.getDisabledDataPacks
(@NotNull World world) Deprecated, for removal: This API element is subject to removal in a future version.Return all the disabledDataPack
in the World.getEnabledDataPacks
(@NotNull World world) Deprecated, for removal: This API element is subject to removal in a future version.Return all the enabledDataPack
in the World.boolean
isEnabledByFeature
(@NotNull Material material, @NotNull World world) Deprecated, for removal: This API element is subject to removal in a future version.Gets if the Material is enabled for use by the features in World.boolean
isEnabledByFeature
(@NotNull BlockType blockType, @NotNull World world) Deprecated, for removal: This API element is subject to removal in a future version.Gets if the BlockType is enabled for use by the features in World.boolean
isEnabledByFeature
(@NotNull EntityType entityType, @NotNull World world) Deprecated, for removal: This API element is subject to removal in a future version.Gets if the EntityType is enabled for use by the Features in World.boolean
isEnabledByFeature
(@NotNull ItemType itemType, @NotNull World world) Deprecated, for removal: This API element is subject to removal in a future version.Gets if the ItemType is enabled for use by the features in World.
-
Method Details
-
getDataPacks
Deprecated, for removal: This API element is subject to removal in a future version.Return all the availableDataPack
s on the server.- Returns:
- a Collection of
DataPack
-
getDataPack
Deprecated, for removal: This API element is subject to removal in a future version.Gets aDataPack
by its key. -
getEnabledDataPacks
Deprecated, for removal: This API element is subject to removal in a future version.Return all the enabledDataPack
in the World.- Parameters:
world
- the world to search- Returns:
- a Collection of
DataPack
-
getDisabledDataPacks
Deprecated, for removal: This API element is subject to removal in a future version.Return all the disabledDataPack
in the World.- Parameters:
world
- the world to search- Returns:
- a Collection of
DataPack
-
isEnabledByFeature
Deprecated, for removal: This API element is subject to removal in a future version.Gets if the Material is enabled for use by the features in World.- Parameters:
material
- Material to check (needs to be anMaterial.isItem()
orMaterial.isBlock()
)world
- World to check- Returns:
True
if the Item/Block related to the material is enabled
-
isEnabledByFeature
@Internal boolean isEnabledByFeature(@NotNull @NotNull ItemType itemType, @NotNull @NotNull World world) Deprecated, for removal: This API element is subject to removal in a future version.Gets if the ItemType is enabled for use by the features in World.- Parameters:
itemType
- ItemType to checkworld
- World to check- Returns:
True
if the ItemType is enabled- API Note:
- this method is not ready for public usage yet
-
isEnabledByFeature
@Internal boolean isEnabledByFeature(@NotNull @NotNull BlockType blockType, @NotNull @NotNull World world) Deprecated, for removal: This API element is subject to removal in a future version.Gets if the BlockType is enabled for use by the features in World.- Parameters:
blockType
- BlockType to checkworld
- World to check- Returns:
True
if the BlockType is enabled- API Note:
- this method is not ready for public usage yet
-
isEnabledByFeature
Deprecated, for removal: This API element is subject to removal in a future version.Gets if the EntityType is enabled for use by the Features in World.- Parameters:
entityType
- EntityType to checkworld
- World to check- Returns:
True
if the type of entity is enabled
-
DatapackManager