Record Class WorldWrapper
java.lang.Object
java.lang.Record
kr.toxicity.hud.api.adapter.WorldWrapper
- Record Components:
name- world name
-
Constructor Summary
ConstructorsConstructorDescriptionWorldWrapper(@NotNull String name) Creates an instance of aWorldWrapperrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull WorldWrapperdeserialize(@NotNull com.google.gson.JsonObject data) Finds world from JSON.static @NotNull WorldWrapperdeserialize(@NotNull YamlObject data) Finds world from YAML.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Stringname()Returns the value of thenamerecord component.Serializes to map.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WorldWrapper
-
-
Method Details
-
deserialize
Finds world from YAML.- Parameters:
data- raw data- Returns:
- location
-
deserialize
@NotNull public static @NotNull WorldWrapper deserialize(@NotNull @NotNull com.google.gson.JsonObject data) Finds world from JSON.- Parameters:
data- raw data- Returns:
- location
-
serialize
-
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). -
name
-