Package org.sgrewritten.stargate.api
Interface MetadataHolder
- All Known Subinterfaces:
RealPortal
- All Known Implementing Classes:
Metadata
,PortalPosition
,StargatePortal
public interface MetadataHolder
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
Get metadata for this portal.default @Nullable com.google.gson.JsonElement
getMetadata
(String field) Get the metadata of this instancedefault void
setMetadata
(@Nullable com.google.gson.JsonElement data, String field) Set the metadata of this instancevoid
setMetadata
(@Nullable String data) Set metadata for this portal.
-
Method Details
-
setMetadata
Set metadata for this portal. This sets all metadata for this entity, it's advised to usesetMetadata(JsonElement, String)
- Parameters:
data
-The meta data to set
-
getMetadata
Get metadata for this portal. This gets all metadata for this entity, it's advised to use thegetMetadata(String)
method- Returns:
The meta data of this portal
-
setMetadata
Set the metadata of this instance- Parameters:
data
-The data to set
field
-The name of the plugin or field this relates to
-
getMetadata
Get the metadata of this instance- Parameters:
field
-The name of the plugin or field this relates to
- Returns:
The metadata of this instance
-