Record Class BedrockRealmStories.Story
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.features.realms.BedrockRealmStories.Story
- Enclosing class:
BedrockRealmStories
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.authorId()Returns the value of theauthorIdrecord component.body()Returns the value of thebodyrecord component.final booleanIndicates whether some other object is "equal to" this one.com.google.gson.JsonObjectevent()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.image()Returns the value of theimagerecord component.booleanliked()Returns the value of thelikedrecord component.root()Returns the value of therootrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Story
public Story(String id, String root, String authorId, String author, String body, String image, String timestamp, com.google.gson.JsonObject event, boolean liked) Creates an instance of aStoryrecord class.- Parameters:
id- the value for theidrecord componentroot- the value for therootrecord componentauthorId- the value for theauthorIdrecord componentauthor- the value for theauthorrecord componentbody- the value for thebodyrecord componentimage- the value for theimagerecord componenttimestamp- the value for thetimestamprecord componentevent- the value for theeventrecord componentliked- the value for thelikedrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
root
Returns the value of therootrecord component.- Returns:
- the value of the
rootrecord component
-
authorId
Returns the value of theauthorIdrecord component.- Returns:
- the value of the
authorIdrecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
image
Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
event
public com.google.gson.JsonObject event()Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
liked
public boolean liked()Returns the value of thelikedrecord component.- Returns:
- the value of the
likedrecord component
-