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/SpawnConditionSelectors
intermediary net/minecraft/class_10702
official cup
named selectors
intermediary comp_3583
official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<SpawnConditionSelectors> static final SpawnConditionSelectors
private final List
<VariantSelectorProvider.Selector<SpawnContext, SpawnCondition>> The field for theselectors
record component. -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic SpawnConditionSelectors
createFallback
(int priority) static SpawnConditionSelectors
createSingle
(SpawnCondition condition, int priority) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theselectors
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
selectors
The field for theselectors
record component. -
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTY
Lnet/minecraft/entity/spawn/SpawnConditionSelectors;EMPTY:Lnet/minecraft/entity/spawn/SpawnConditionSelectors;
intermediary field_56285
Lnet/minecraft/class_10702;field_56285:Lnet/minecraft/class_10702;
official a
Lcup;a:Lcup;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/entity/spawn/SpawnConditionSelectors;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_56286
Lnet/minecraft/class_10702;field_56286:Lcom/mojang/serialization/Codec;
official b
Lcup;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 createSingle
Lnet/minecraft/entity/spawn/SpawnConditionSelectors;createSingle(Lnet/minecraft/entity/spawn/SpawnCondition;I)Lnet/minecraft/entity/spawn/SpawnConditionSelectors;
intermediary method_67171
Lnet/minecraft/class_10702;method_67171(Lnet/minecraft/class_10699;I)Lnet/minecraft/class_10702;
official a
Lcup;a(Lcum;I)Lcup;
-
createFallback
- Mappings:
Namespace Name Mixin selector named createFallback
Lnet/minecraft/entity/spawn/SpawnConditionSelectors;createFallback(I)Lnet/minecraft/entity/spawn/SpawnConditionSelectors;
intermediary method_67170
Lnet/minecraft/class_10702;method_67170(I)Lnet/minecraft/class_10702;
official a
Lcup;a(I)Lcup;
-
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 theselectors
record component.- Returns:
- the value of the
selectors
record component
-