Record Class BedrockRealmPack
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.features.realms.BedrockRealmPack
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.static BedrockRealmPackcom.google.gson.JsonObjectsettings(int position) subpacks()Returns the value of thesubpacksrecord component.final StringtoString()Returns a string representation of this record class.com.google.gson.JsonArrayversion()Returns the value of theversionrecord component.
-
Constructor Details
-
BedrockRealmPack
public BedrockRealmPack(String id, String name, com.google.gson.JsonArray version, String kind, List<String> subpacks) Creates an instance of aBedrockRealmPackrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentversion- the value for theversionrecord componentkind- the value for thekindrecord componentsubpacks- the value for thesubpacksrecord component
-
-
Method Details
-
read
- Throws:
IOException
-
settings
public com.google.gson.JsonObject settings(int position) -
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
public com.google.gson.JsonArray version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
subpacks
-