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$FullConfig
intermediary net/minecraft/class_8963$class_11349
official edc$b
named normal
intermediary comp_4231
official c
named ominous
intermediary comp_4232
official d
named targetCooldownLength
intermediary comp_4233
official e
named requiredPlayerRange
intermediary comp_4234
official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<TrialSpawnerLogic.FullConfig> static final TrialSpawnerLogic.FullConfig
private final RegistryEntry
<TrialSpawnerConfig> The field for thenormal
record component.private final RegistryEntry
<TrialSpawnerConfig> The field for theominous
record component.private final int
The field for therequiredPlayerRange
record component.private final int
The field for thetargetCooldownLength
record component. -
Constructor Summary
ConstructorsConstructorDescriptionFullConfig
(RegistryEntry<TrialSpawnerConfig> registryEntry, RegistryEntry<TrialSpawnerConfig> registryEntry2, int int2, int int3) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.normal()
Returns the value of thenormal
record component.ominous()
Returns the value of theominous
record component.int
Returns the value of therequiredPlayerRange
record component.int
Returns the value of thetargetCooldownLength
record component.final String
toString()
Returns a string representation of this record class.withEntityType
(EntityType<?> entityType)
-
Field Details
-
normal
The field for thenormal
record component. -
ominous
The field for theominous
record component. -
targetCooldownLength
private final int targetCooldownLengthThe field for thetargetCooldownLength
record component. -
requiredPlayerRange
private final int requiredPlayerRangeThe field for therequiredPlayerRange
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/block/spawner/TrialSpawnerLogic$FullConfig;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_60374
Lnet/minecraft/class_8963$class_11349;field_60374:Lcom/mojang/serialization/MapCodec;
official a
Ledc$b;a:Lcom/mojang/serialization/MapCodec;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULT
Lnet/minecraft/block/spawner/TrialSpawnerLogic$FullConfig;DEFAULT:Lnet/minecraft/block/spawner/TrialSpawnerLogic$FullConfig;
intermediary field_60375
Lnet/minecraft/class_8963$class_11349;field_60375:Lnet/minecraft/class_8963$class_11349;
official b
Ledc$b;b:Ledc$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 withEntityType
Lnet/minecraft/block/spawner/TrialSpawnerLogic$FullConfig;withEntityType(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/block/spawner/TrialSpawnerLogic$FullConfig;
intermediary method_71407
Lnet/minecraft/class_8963$class_11349;method_71407(Lnet/minecraft/class_1299;)Lnet/minecraft/class_8963$class_11349;
official a
Ledc$b;a(Lbzv;)Ledc$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 thenormal
record component.- Returns:
- the value of the
normal
record component
-
ominous
Returns the value of theominous
record component.- Returns:
- the value of the
ominous
record component
-
targetCooldownLength
public int targetCooldownLength()Returns the value of thetargetCooldownLength
record component.- Returns:
- the value of the
targetCooldownLength
record component
-
requiredPlayerRange
public int requiredPlayerRange()Returns the value of therequiredPlayerRange
record component.- Returns:
- the value of the
requiredPlayerRange
record component
-