Interface DataPackManager


@Experimental @Deprecated(forRemoval=true) public interface DataPackManager
Deprecated, for removal: This API element is subject to removal in a future version.
Manager of data packs.
  • Method Details

    • getDataPacks

      Deprecated, for removal: This API element is subject to removal in a future version.
      Return all the available DataPacks on the server.
      Returns:
      a Collection of DataPack
    • getDataPack

      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a DataPack by its key.
      Parameters:
      dataPackKey - the key of the DataPack
      Returns:
      the DataPack or null if it does not exist
    • getEnabledDataPacks

      Deprecated, for removal: This API element is subject to removal in a future version.
      Return all the enabled DataPack in the World.
      Parameters:
      world - the world to search
      Returns:
      a Collection of DataPack
    • getDisabledDataPacks

      @NotNull @NotNull Collection<DataPack> getDisabledDataPacks(@NotNull @NotNull World world)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return all the disabled DataPack in the World.
      Parameters:
      world - the world to search
      Returns:
      a Collection of DataPack
    • isEnabledByFeature

      boolean isEnabledByFeature(@NotNull @NotNull Material material, @NotNull @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.
      Parameters:
      material - Material to check (needs to be an Material.isItem() or Material.isBlock())
      world - World to check
      Returns:
      True if the Item/Block related to the material is enabled
    • isEnabledByFeature

      boolean isEnabledByFeature(@NotNull @NotNull EntityType entityType, @NotNull @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.
      Parameters:
      entityType - EntityType to check
      world - World to check
      Returns:
      True if the type of entity is enabled