Class ReplayMetadata

java.lang.Object
com.zenith.feature.replay.ReplayMetadata

public class ReplayMetadata extends Object
  • Constructor Details

    • ReplayMetadata

      public ReplayMetadata()
  • Method Details

    • isSingleplayer

      public boolean isSingleplayer()
    • getServerName

      public String getServerName()
    • getDuration

      public int getDuration()
      Duration of the replay in milliseconds.
    • getDate

      public long getDate()
      Unix timestamp of when the recording was started in milliseconds.
    • getMcversion

      public String getMcversion()
      Minecraft version. (E.g. 1.8)
    • getFileFormat

      public String getFileFormat()
      File format. Defaults to 'MCPR'
    • getFileFormatVersion

      public int getFileFormatVersion()
    • getProtocol

      public int getProtocol()
      Minecraft protocol version. Mandatory for `fileFormatVersion >= 13`.
    • getGenerator

      public String getGenerator()
    • getSelfId

      public int getSelfId()
      The entity id of the player manually added to this replay which represents the recording player. Must be a valid entity id (e.g. must not be -1). May not be set.
    • getPlayers

      public List<String> getPlayers()
      Array of UUIDs of all players which can be seen in this replay.
    • getZenithProxyVersion

      public String getZenithProxyVersion()
    • getZenithProxyCommit

      public String getZenithProxyCommit()
    • getZenithProxyMCVersion

      public String getZenithProxyMCVersion()
    • setServerName

      public void setServerName(String serverName)
    • setDuration

      public void setDuration(int duration)
      Duration of the replay in milliseconds.
    • setDate

      public void setDate(long date)
      Unix timestamp of when the recording was started in milliseconds.
    • setMcversion

      public void setMcversion(String mcversion)
      Minecraft version. (E.g. 1.8)
    • setProtocol

      public void setProtocol(int protocol)
      Minecraft protocol version. Mandatory for `fileFormatVersion >= 13`.
    • setSelfId

      public void setSelfId(int selfId)
      The entity id of the player manually added to this replay which represents the recording player. Must be a valid entity id (e.g. must not be -1). May not be set.
    • setPlayers

      public void setPlayers(List<String> players)
      Array of UUIDs of all players which can be seen in this replay.
    • setZenithProxyVersion

      public void setZenithProxyVersion(String zenithProxyVersion)
    • setZenithProxyCommit

      public void setZenithProxyCommit(String zenithProxyCommit)
    • setZenithProxyMCVersion

      public void setZenithProxyMCVersion(String zenithProxyMCVersion)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object