Package net.minecraft.entity.spawn
Record Class SpawnConditionSelectors
java.lang.Object
java.lang.Record
net.minecraft.entity.spawn.SpawnConditionSelectors
- Record Components:
selectors-
public record SpawnConditionSelectors(List<VariantSelectorProvider.Selector<SpawnContext,SpawnCondition>> selectors)
extends Record
- Mappings:
Namespace Name named net/minecraft/entity/spawn/SpawnConditionSelectorsintermediary net/minecraft/class_10702official dbunamed selectorsintermediary comp_3583official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SpawnConditionSelectors> static final SpawnConditionSelectorsprivate final List<VariantSelectorProvider.Selector<SpawnContext, SpawnCondition>> The field for theselectorsrecord component. -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic SpawnConditionSelectorscreateFallback(int priority) static SpawnConditionSelectorscreateSingle(SpawnCondition condition, int priority) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theselectorsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
selectors
The field for theselectorsrecord component. -
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTYLnet/minecraft/entity/spawn/SpawnConditionSelectors;EMPTY:Lnet/minecraft/entity/spawn/SpawnConditionSelectors;intermediary field_56285Lnet/minecraft/class_10702;field_56285:Lnet/minecraft/class_10702;official aLdbu;a:Ldbu;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/spawn/SpawnConditionSelectors;CODEC:Lcom/mojang/serialization/Codec;intermediary field_56286Lnet/minecraft/class_10702;field_56286:Lcom/mojang/serialization/Codec;official bLdbu;b:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
SpawnConditionSelectors
public SpawnConditionSelectors(List<VariantSelectorProvider.Selector<SpawnContext, SpawnCondition>> list)
-
-
Method Details
-
createSingle
- Mappings:
Namespace Name Mixin selector named createSingleLnet/minecraft/entity/spawn/SpawnConditionSelectors;createSingle(Lnet/minecraft/entity/spawn/SpawnCondition;I)Lnet/minecraft/entity/spawn/SpawnConditionSelectors;intermediary method_67171Lnet/minecraft/class_10702;method_67171(Lnet/minecraft/class_10699;I)Lnet/minecraft/class_10702;official aLdbu;a(Ldbr;I)Ldbu;
-
createFallback
- Mappings:
Namespace Name Mixin selector named createFallbackLnet/minecraft/entity/spawn/SpawnConditionSelectors;createFallback(I)Lnet/minecraft/entity/spawn/SpawnConditionSelectors;intermediary method_67170Lnet/minecraft/class_10702;method_67170(I)Lnet/minecraft/class_10702;official aLdbu;a(I)Ldbu;
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
selectors
Returns the value of theselectorsrecord component.- Returns:
- the value of the
selectorsrecord component
-