Package kr.toxicity.model.api.tracker
Record Class EntityHideOption
java.lang.Object
java.lang.Record
kr.toxicity.model.api.tracker.EntityHideOption
public record EntityHideOption(boolean equipment, boolean fire, boolean visibility, boolean glowing)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntityHideOption(boolean equipment, boolean fire, boolean visibility, boolean glowing) Creates an instance of aEntityHideOptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull EntityHideOption.Builderbuilder()static @NotNull EntityHideOptioncomposite(@NotNull Stream<EntityHideOption> options) static @NotNull EntityHideOptiondeserialize(@NotNull com.google.gson.JsonArray array) final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theequipmentrecord component.booleanfire()Returns the value of thefirerecord component.booleanglowing()Returns the value of theglowingrecord component.final inthashCode()Returns a hash code value for this object.@NotNull com.google.gson.JsonArrayfinal StringtoString()Returns a string representation of this record class.booleanReturns the value of thevisibilityrecord component.
-
Field Details
-
DEFAULT
-
FALSE
-
-
Constructor Details
-
EntityHideOption
public EntityHideOption(boolean equipment, boolean fire, boolean visibility, boolean glowing) Creates an instance of aEntityHideOptionrecord class.- Parameters:
equipment- the value for theequipmentrecord componentfire- the value for thefirerecord componentvisibility- the value for thevisibilityrecord componentglowing- the value for theglowingrecord component
-
-
Method Details
-
composite
@NotNull public static @NotNull EntityHideOption composite(@NotNull @NotNull Stream<EntityHideOption> options) -
deserialize
@NotNull public static @NotNull EntityHideOption deserialize(@NotNull @NotNull com.google.gson.JsonArray array) -
serialize
@NotNull public @NotNull com.google.gson.JsonArray serialize() -
builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 with '=='. -
equipment
public boolean equipment()Returns the value of theequipmentrecord component.- Returns:
- the value of the
equipmentrecord component
-
fire
public boolean fire()Returns the value of thefirerecord component.- Returns:
- the value of the
firerecord component
-
visibility
public boolean visibility()Returns the value of thevisibilityrecord component.- Returns:
- the value of the
visibilityrecord component
-
glowing
public boolean glowing()Returns the value of theglowingrecord component.- Returns:
- the value of the
glowingrecord component
-