Record Class RendererRepository.Snapshot
java.lang.Object
java.lang.Record
dev.despical.particletext.persistence.RendererRepository.Snapshot
- Enclosing class:
RendererRepository
public static record RendererRepository.Snapshot(org.bukkit.configuration.file.YamlConfiguration configuration, List<RendererData> renderers)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshot(org.bukkit.configuration.file.YamlConfiguration configuration, List<RendererData> renderers) Creates an instance of aSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.configuration.file.YamlConfigurationReturns the value of theconfigurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therenderersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Snapshot
public Snapshot(org.bukkit.configuration.file.YamlConfiguration configuration, List<RendererData> renderers) Creates an instance of aSnapshotrecord class.- Parameters:
configuration- the value for theconfigurationrecord componentrenderers- the value for therenderersrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
configuration
public org.bukkit.configuration.file.YamlConfiguration configuration()Returns the value of theconfigurationrecord component.- Returns:
- the value of the
configurationrecord component
-
renderers
Returns the value of therenderersrecord component.- Returns:
- the value of the
renderersrecord component
-