Record Class TrialSpawner.FullConfig
java.lang.Object
java.lang.Record
net.minecraft.world.level.block.entity.trialspawner.TrialSpawner.FullConfig
- Enclosing class:
 TrialSpawner
public static record TrialSpawner.FullConfig(Holder<TrialSpawnerConfig> normal, Holder<TrialSpawnerConfig> ominous, int targetCooldownLength, int requiredPlayerRange)
extends Record
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TrialSpawner.FullConfigstatic final com.mojang.serialization.MapCodec<TrialSpawner.FullConfig> private final Holder<TrialSpawnerConfig> The field for thenormalrecord component.private final Holder<TrialSpawnerConfig> The field for theominousrecord component.private final intThe field for therequiredPlayerRangerecord component.private final intThe field for thetargetCooldownLengthrecord component. - 
Constructor Summary
ConstructorsConstructorDescriptionFullConfig(Holder<TrialSpawnerConfig> normal, Holder<TrialSpawnerConfig> ominous, int targetCooldownLength, int requiredPlayerRange) Creates an instance of aFullConfigrecord 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.ominous()Returns the value of theominousrecord component.overrideEntity(EntityType<?> pEntity) intReturns the value of therequiredPlayerRangerecord component.intReturns the value of thetargetCooldownLengthrecord 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. - 
targetCooldownLength
private final int targetCooldownLengthThe field for thetargetCooldownLengthrecord component. - 
requiredPlayerRange
private final int requiredPlayerRangeThe field for therequiredPlayerRangerecord component. - 
MAP_CODEC
 - 
DEFAULT
 
 - 
 - 
Constructor Details
- 
FullConfig
public FullConfig(Holder<TrialSpawnerConfig> normal, Holder<TrialSpawnerConfig> ominous, int targetCooldownLength, int requiredPlayerRange) Creates an instance of aFullConfigrecord class.- Parameters:
 normal- the value for thenormalrecord componentominous- the value for theominousrecord componenttargetCooldownLength- the value for thetargetCooldownLengthrecord componentrequiredPlayerRange- the value for therequiredPlayerRangerecord component
 
 - 
 - 
Method Details
- 
overrideEntity
 - 
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. - 
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 
 - 
targetCooldownLength
public int targetCooldownLength()Returns the value of thetargetCooldownLengthrecord component.- Returns:
 - the value of the 
targetCooldownLengthrecord component 
 - 
requiredPlayerRange
public int requiredPlayerRange()Returns the value of therequiredPlayerRangerecord component.- Returns:
 - the value of the 
requiredPlayerRangerecord component 
 
 -