Package net.minecraft.block.spawner
Record Class TrialSpawnerLogic.class_11349
java.lang.Object
java.lang.Record
net.minecraft.block.spawner.TrialSpawnerLogic.class_11349
- Record Components:
normal-ominous-targetCooldownLength-requiredPlayerRange-
- Enclosing class:
TrialSpawnerLogic
public static record TrialSpawnerLogic.class_11349(RegistryEntry<TrialSpawnerConfig> normal, RegistryEntry<TrialSpawnerConfig> ominous, int targetCooldownLength, int requiredPlayerRange)
extends Record
- Mappings:
Namespace Name named net/minecraft/block/spawner/TrialSpawnerLogic$class_11349intermediary net/minecraft/class_8963$class_11349official ebh$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.class_11349> static final TrialSpawnerLogic.class_11349private 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
ConstructorsConstructorDescriptionclass_11349(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.method_71407(EntityType<?> entityType) 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.
-
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. -
field_60374
- Mappings:
Namespace Name Mixin selector named field_60374Lnet/minecraft/block/spawner/TrialSpawnerLogic$class_11349;field_60374:Lcom/mojang/serialization/MapCodec;intermediary field_60374Lnet/minecraft/class_8963$class_11349;field_60374:Lcom/mojang/serialization/MapCodec;official aLebh$b;a:Lcom/mojang/serialization/MapCodec;
-
field_60375
- Mappings:
Namespace Name Mixin selector named field_60375Lnet/minecraft/block/spawner/TrialSpawnerLogic$class_11349;field_60375:Lnet/minecraft/block/spawner/TrialSpawnerLogic$class_11349;intermediary field_60375Lnet/minecraft/class_8963$class_11349;field_60375:Lnet/minecraft/class_8963$class_11349;official bLebh$b;b:Lebh$b;
-
-
Constructor Details
-
class_11349
public class_11349(RegistryEntry<TrialSpawnerConfig> registryEntry, RegistryEntry<TrialSpawnerConfig> registryEntry2, int int2, int int3)
-
-
Method Details
-
method_71407
- Mappings:
Namespace Name Mixin selector named method_71407Lnet/minecraft/block/spawner/TrialSpawnerLogic$class_11349;method_71407(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/block/spawner/TrialSpawnerLogic$class_11349;intermediary method_71407Lnet/minecraft/class_8963$class_11349;method_71407(Lnet/minecraft/class_1299;)Lnet/minecraft/class_8963$class_11349;official aLebh$b;a(Lbyb;)Lebh$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
-