Record Class TrialSpawnerConfigs.Keys
java.lang.Object
java.lang.Record
net.minecraft.world.level.block.entity.trialspawner.TrialSpawnerConfigs.Keys
- Enclosing class:
TrialSpawnerConfigs
private 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
ConstructorsModifierConstructorDescriptionprivateKeys(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
Creates an instance of aKeysrecord class.- Parameters:
normal- the value for thenormalrecord componentominous- the value for theominousrecord component
-
-
Method Details
-
of
-
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). -
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
-