Class ServerContainer

java.lang.Object
com.djrapitops.plan.api.data.ServerContainer

@Deprecated(forRemoval=true, since="5.0") public class ServerContainer extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Plan API v4 has been deprecated, use the APIv5 instead (https://github.com/plan-player-analytics/Plan/wiki/APIv5).
Wrapper for a ServerContainer.

The actual object is wrapped to avoid exposing too much API that might change.

The Keys might change in the future, but the Optional API should help dealing with those cases.

  • Constructor Details

    • ServerContainer

      public ServerContainer()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getValue

      public <T> Optional<T> getValue(Key<T> key)
      Deprecated, for removal: This API element is subject to removal in a future version.