Package net.minecraft.block.spawner
Record Class TrialSpawnerLogic.FullConfig
java.lang.Object
java.lang.Record
net.minecraft.block.spawner.TrialSpawnerLogic.FullConfig
- Record Components:
normal-ominous-targetCooldownLength-requiredPlayerRange-
- Enclosing class:
TrialSpawnerLogic
public static record TrialSpawnerLogic.FullConfig(RegistryEntry<TrialSpawnerConfig> normal, RegistryEntry<TrialSpawnerConfig> ominous, int targetCooldownLength, int requiredPlayerRange)
extends Record
- Mappings:
Namespace Name named net/minecraft/block/spawner/TrialSpawnerLogic$FullConfigintermediary net/minecraft/class_8963$class_11349official eim$bnamed normalintermediary comp_4231official cnamed ominousintermediary comp_4232official dnamed targetCooldownLengthintermediary comp_4233official enamed requiredPlayerRangeintermediary comp_4234official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TrialSpawnerLogic.FullConfig> static final TrialSpawnerLogic.FullConfigprivate final RegistryEntry<TrialSpawnerConfig> The field for thenormalrecord component.private final RegistryEntry<TrialSpawnerConfig> The field for theominousrecord component.private final intThe field for therequiredPlayerRangerecord component.private final intThe field for thetargetCooldownLengthrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFullConfig(RegistryEntry<TrialSpawnerConfig> registryEntry, RegistryEntry<TrialSpawnerConfig> registryEntry2, int int2, int int3) -
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.intReturns the value of therequiredPlayerRangerecord component.intReturns the value of thetargetCooldownLengthrecord component.final StringtoString()Returns a string representation of this record class.withEntityType(EntityType<?> entityType)
-
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. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/spawner/TrialSpawnerLogic$FullConfig;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_60374Lnet/minecraft/class_8963$class_11349;field_60374:Lcom/mojang/serialization/MapCodec;official aLeim$b;a:Lcom/mojang/serialization/MapCodec;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/block/spawner/TrialSpawnerLogic$FullConfig;DEFAULT:Lnet/minecraft/block/spawner/TrialSpawnerLogic$FullConfig;intermediary field_60375Lnet/minecraft/class_8963$class_11349;field_60375:Lnet/minecraft/class_8963$class_11349;official bLeim$b;b:Leim$b;
-
-
Constructor Details
-
FullConfig
public FullConfig(RegistryEntry<TrialSpawnerConfig> registryEntry, RegistryEntry<TrialSpawnerConfig> registryEntry2, int int2, int int3)
-
-
Method Details
-
withEntityType
- Mappings:
Namespace Name Mixin selector named withEntityTypeLnet/minecraft/block/spawner/TrialSpawnerLogic$FullConfig;withEntityType(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/block/spawner/TrialSpawnerLogic$FullConfig;intermediary method_71407Lnet/minecraft/class_8963$class_11349;method_71407(Lnet/minecraft/class_1299;)Lnet/minecraft/class_8963$class_11349;official aLeim$b;a(Lcee;)Leim$b;
-
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
-