Record Class FogState.Layer
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.api.model.FogState.Layer
- Enclosing class:
FogState
public static record FogState.Layer(String identifier, Map<String, FogState.Distance> distances)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLayer(String identifier, Map<String, FogState.Distance> distances) Creates an instance of aLayerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedistancesrecord 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 theidentifierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Layer
Creates an instance of aLayerrecord class.- Parameters:
identifier- the value for theidentifierrecord componentdistances- the value for thedistancesrecord 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). -
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
distances
Returns the value of thedistancesrecord component.- Returns:
- the value of the
distancesrecord component
-