Interface MetadataHolder

All Known Subinterfaces:
RealPortal
All Known Implementing Classes:
Metadata, PortalPosition, StargatePortal

public interface MetadataHolder
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    Get metadata for this portal.
    default @Nullable com.google.gson.JsonElement
    Get the metadata of this instance
    default void
    setMetadata(@Nullable com.google.gson.JsonElement data, String field)
    Set the metadata of this instance
    void
    setMetadata(@Nullable String data)
    Set metadata for this portal.
  • Method Details

    • setMetadata

      @Internal void setMetadata(@Nullable @Nullable String data)
      Set metadata for this portal. This sets all metadata for this entity, it's advised to use setMetadata(JsonElement, String)
      Parameters:
      data -

      The meta data to set

    • getMetadata

      @Internal @Nullable @Nullable String getMetadata()
      Get metadata for this portal. This gets all metadata for this entity, it's advised to use the getMetadata(String) method
      Returns:

      The meta data of this portal

    • setMetadata

      default void setMetadata(@Nullable @Nullable com.google.gson.JsonElement data, String field)
      Set the metadata of this instance
      Parameters:
      data -

      The data to set

      field -

      The name of the plugin or field this relates to

    • getMetadata

      @Nullable default @Nullable com.google.gson.JsonElement getMetadata(String field)
      Get the metadata of this instance
      Parameters:
      field -

      The name of the plugin or field this relates to

      Returns:

      The metadata of this instance