Package org.bukkit.packs
Interface DataPackManager
public interface DataPackManager
Manager of data packs.
-
Method Summary
Modifier and TypeMethodDescriptiongetDataPack(NamespacedKey dataPackKey) Gets aDataPackby its key.Return all the availableDataPacks on the server.getDisabledDataPacks(World world) Return all the disabledDataPackin the World.getEnabledDataPacks(World world) Return all the enabledDataPackin the World.booleanisEnabledByFeature(BlockType blockType, World world) Gets if the BlockType is enabled for use by the features in World.booleanisEnabledByFeature(EntityType entityType, World world) Gets if the EntityType is enabled for use by the Features in World.booleanisEnabledByFeature(ItemType itemType, World world) Gets if the ItemType is enabled for use by the features in World.booleanisEnabledByFeature(Material material, World world) Gets if the Material is enabled for use by the features in World.
-
Method Details
-
getDataPacks
Return all the availableDataPacks on the server.- Returns:
- a Collection of
DataPack
-
getDataPack
Gets aDataPackby its key. -
getEnabledDataPacks
Return all the enabledDataPackin the World.- Parameters:
world- the world to search- Returns:
- a Collection of
DataPack
-
getDisabledDataPacks
Return all the disabledDataPackin the World.- Parameters:
world- the world to search- Returns:
- a Collection of
DataPack
-
isEnabledByFeature
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:
Trueif the Item/Block related to the material is enabled
-
isEnabledByFeature
Gets if the ItemType is enabled for use by the features in World.- Parameters:
itemType- ItemType to checkworld- World to check- Returns:
Trueif the ItemType is enabled- API Note:
- this method is not ready for public usage yet
-
isEnabledByFeature
Gets if the BlockType is enabled for use by the features in World.- Parameters:
blockType- BlockType to checkworld- World to check- Returns:
Trueif the BlockType is enabled- API Note:
- this method is not ready for public usage yet
-
isEnabledByFeature
Gets if the EntityType is enabled for use by the Features in World.- Parameters:
entityType- EntityType to checkworld- World to check- Returns:
Trueif the type of entity is enabled
-