Record Class BeaconConfig
java.lang.Object
java.lang.Record
issame.material_beacons.config.BeaconConfig
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBeaconConfig(List<String> bases, List<List<BeaconConfig.EffectConfig>> powers) Creates an instance of aBeaconConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbases()Returns the value of thebasesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.powers()Returns the value of thepowersrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
BeaconConfig
Creates an instance of aBeaconConfigrecord class.- Parameters:
bases- the value for thebasesrecord componentpowers- the value for thepowersrecord component
-
-
Method Details
-
getBaseTags
-
getPowerEffects
-
getEffectRanges
-
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). -
bases
-
powers
Returns the value of thepowersrecord component.- Returns:
- the value of the
powersrecord component
-