Package org.bukkit.packs
Interface DataPackManager
public interface DataPackManager
Manager of data packs.
- 
Method SummaryModifier 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- 
getDataPacksReturn all the availableDataPacks on the server.- Returns:
- a Collection of DataPack
 
- 
getDataPackGets aDataPackby its key.
- 
getEnabledDataPacksReturn all the enabledDataPackin the World.- Parameters:
- world- the world to search
- Returns:
- a Collection of DataPack
 
- 
getDisabledDataPacksReturn all the disabledDataPackin the World.- Parameters:
- world- the world to search
- Returns:
- a Collection of DataPack
 
- 
isEnabledByFeatureGets if the Material is enabled for use by the features in World.- Parameters:
- material- Material to check (needs to be an- Material.isItem()or- Material.isBlock())
- world- World to check
- Returns:
- Trueif the Item/Block related to the material is enabled
 
- 
isEnabledByFeatureGets if the ItemType is enabled for use by the features in World.- Parameters:
- itemType- ItemType to check
- world- World to check
- Returns:
- Trueif the ItemType is enabled
- API Note:
- this method is not ready for public usage yet
 
- 
isEnabledByFeatureGets if the BlockType is enabled for use by the features in World.- Parameters:
- blockType- BlockType to check
- world- World to check
- Returns:
- Trueif the BlockType is enabled
- API Note:
- this method is not ready for public usage yet
 
- 
isEnabledByFeatureGets if the EntityType is enabled for use by the Features in World.- Parameters:
- entityType- EntityType to check
- world- World to check
- Returns:
- Trueif the type of entity is enabled
 
 
-