Package issame.material_beacons.config
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
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 withObjects::equals(Object,Object). -
bases
Returns the value of thebasesrecord component.- Returns:
- the value of the
basesrecord component
-
powers
Returns the value of thepowersrecord component.- Returns:
- the value of the
powersrecord component
-