Class ReplayMetadata
java.lang.Object
com.zenith.feature.replay.ReplayMetadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanlonggetDate()Unix timestamp of when the recording was started in milliseconds.intDuration of the replay in milliseconds.File format.intMinecraft version.Array of UUIDs of all players which can be seen in this replay.intMinecraft protocol version.intThe entity id of the player manually added to this replay which represents the recording player.inthashCode()booleanvoidsetDate(long date) Unix timestamp of when the recording was started in milliseconds.voidsetDuration(int duration) Duration of the replay in milliseconds.voidsetMcversion(String mcversion) Minecraft version.voidsetPlayers(List<String> players) Array of UUIDs of all players which can be seen in this replay.voidsetProtocol(int protocol) Minecraft protocol version.voidsetSelfId(int selfId) The entity id of the player manually added to this replay which represents the recording player.voidsetServerName(String serverName) voidsetZenithProxyCommit(String zenithProxyCommit) voidsetZenithProxyMCVersion(String zenithProxyMCVersion) voidsetZenithProxyVersion(String zenithProxyVersion) toString()
-
Constructor Details
-
ReplayMetadata
public ReplayMetadata()
-
-
Method Details
-
isSingleplayer
public boolean isSingleplayer() -
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
Minecraft version. (E.g. 1.8) -
getFileFormat
File format. Defaults to 'MCPR' -
getFileFormatVersion
public int getFileFormatVersion() -
getProtocol
public int getProtocol()Minecraft protocol version. Mandatory for `fileFormatVersion >= 13`. -
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
-
getZenithProxyVersion
-
getZenithProxyCommit
-
getZenithProxyMCVersion
-
setServerName
-
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
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
-
setZenithProxyVersion
-
setZenithProxyCommit
-
setZenithProxyMCVersion
-
equals
-
canEqual
-
hashCode
-
toString
-