Record Class TrialSpawnerConfigs.Keys
java.lang.Object
java.lang.Record
net.minecraft.world.level.block.entity.trialspawner.TrialSpawnerConfigs.Keys
- Enclosing class:
TrialSpawnerConfigs
static record TrialSpawnerConfigs.Keys(ResourceKey<TrialSpawnerConfig> normal, ResourceKey<TrialSpawnerConfig> ominous)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceKey<TrialSpawnerConfig> The field for thenormalrecord component.private final ResourceKey<TrialSpawnerConfig> The field for theominousrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionKeys(ResourceKey<TrialSpawnerConfig> normal, ResourceKey<TrialSpawnerConfig> ominous) Creates an instance of aKeysrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.normal()Returns the value of thenormalrecord component.static TrialSpawnerConfigs.Keysominous()Returns the value of theominousrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
normal
The field for thenormalrecord component. -
ominous
The field for theominousrecord component.
-
-
Constructor Details
-
Keys
Keys(ResourceKey<TrialSpawnerConfig> normal, ResourceKey<TrialSpawnerConfig> ominous) Creates an instance of aKeysrecord class.- Parameters:
normal- the value for thenormalrecord componentominous- the value for theominousrecord component
-
-
Method Details
-
of
-
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). -
normal
Returns the value of thenormalrecord component.- Returns:
- the value of the
normalrecord component
-
ominous
Returns the value of theominousrecord component.- Returns:
- the value of the
ominousrecord component
-